Automic VaultAutomic Vault

brew

Install astyle with Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, scoop, zypper

Source code beautifier for C, C++, C#, and Java. Version 3.6.17 via Homebrew; verified 2026-07-07.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install astyle

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install astyle

MacPorts ports tree · devel/astyle/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add astyle

Alpine Linux edge package indexes · astyle · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install astyle

Debian stable package indexes · astyle · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install astyle

Fedora Rawhide package metadata · astyle · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#astyle

nixpkgs package indexes · pkgs/by-name/as/astyle/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S astyle

Arch Linux sync databases · astyle · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install astyle

openSUSE Tumbleweed package metadata · astyle · source: download.opensuse.org

Windows

Chocolateyverified · 92%
choco install astyle

Chocolatey community package catalog · astyle · source: community.chocolatey.org

Scoopverified · 92%
scoop install main/astyle

Scoop official bucket manifest trees · bucket/astyle.json · source: api.github.com

overview

Package summary

Source code beautifier for C, C++, C#, and Java

Commands and aliases

  • astyle

history

Project history and usage

Artistic Style, usually installed as astyle, is a long-running source code formatter for C, C++, C++/CLI, Objective-C, C#, Java, and related brace-heavy languages. It predates many modern formatter ecosystems and remains a compact command-line beautifier with a library build option.

Project history

The official release archive traces the lineage back to ASBeautifier 0.8.0, described as the first public release and a direct C++ port of JSBeautifier 1.1.1 with extensions for C++ indentation. Artistic Style 1.0.0 followed on November 24, 1998, with behavior that retained the original filename and wrote the preformatted source to a .orig backup.

By 1999 the project had added a formatting layer around the beautifier, brace placement modes, and operator padding. The 1.x line accumulated C, C++, Java, namespace, pointer, reference, and recursive processing behavior over several years; later 2.x releases broadened language handling and build support, while 3.x releases modernized the codebase and options.

The current project site describes Artistic Style as free, fast, and small, written in C++, usable either as a command-line program or as a library. The official source repository page says day-to-day development now happens in the GitLab repository, while the SourceForge SVN repository is kept up to date regularly.

Adoption history

AStyle became widely packaged because it solved a boring cross-language problem with a small native binary and no editor dependency. The input package facts list packages across Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, Chocolatey, Scoop, MacPorts, Nix, and openSUSE.

Its adoption path also runs through editors and IDEs. The official site notes applications that use Artistic Style as contributed software, either embedding it or calling the command-line program, and it documents compile options for shared and static libraries, JNI, and examples for multiple host languages.

How it is used

Users invoke astyle on one or more source files, with options controlling brace style, indentation, padding, pointer/reference alignment, recursive processing, backup suffixes, and language mode. By default, formatted files retain their original names and backups are created unless disabled.

Option files are a core part of real-world usage. The manual documents default option files such as ~/.astylerc on Unix-like systems and %APPDATA%\astylerc on Windows, plus project option files named .astylerc or _astylerc found from the project root or parent paths. Command-line options override project options, which override default options.

Why package nerds care

AStyle is the sort of formatter that package managers keep forever: tiny, native, scriptable, no runtime service, and useful both before and after editor integrations. It sits in the same historical shelf as indent-style tools that developers wired into Makefiles, hooks, IDE commands, and release scripts before opinionated single-language formatters took over.

Its long release archive is also valuable package archaeology. You can watch a formatter evolve from ASBeautifier and early brace placement into modern C++ support, project config files, fuzzing fixes, CMake builds, shell completions, and issue-driven maintenance.

Timeline

  • 1998: ASBeautifier 0.8.0 was published as the first public release.
  • 1998-11-24: Artistic Style 1.0.0 was released.
  • 2010-11: Artistic Style 2.01 was released.
  • 2017-04: Artistic Style 3.0 was released.
  • 2018-01: Artistic Style 3.1 added project option files and changed the Windows default option path to APPDATA.
  • 2022-11-20: The GitLab project record was created for the current day-to-day Git repository.
  • 2024-08: Artistic Style 3.6 was released.
  • 2025-07: Artistic Style 3.6.10 appeared in the official release notes.

Related projects

  • ASBeautifier and JSBeautifier are the named predecessors in the official release archive.
  • Editor and IDE integrations commonly call AStyle or embed its library.
  • clang-format is a later formatter often compared with AStyle in C and C++ workflows, though it is not an upstream dependency.

security posture

No protected-tool coverage found yet

No matching local secret-handling manifest was found for astyle. Nucleus package metadata is still published here so future coverage has a stable package URL.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/.astylerc<project>/.astylerc<project>/_astylerc
Windows
%APPDATA%\astylerc<project>\.astylerc<project>\_astylerc

executables

Installed executables

CommandKindExposureNote
astylecliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version3.6.17
manager updated2026-07-07
local dataok
upstreamnot checked
latest detectednot detected

https://astyle.sourceforge.net/

install metadata

Package metadata

Package keybrew:astyle
Version3.6.17
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/astyle
Homepagehttps://astyle.sourceforge.net/
Repositoryhttps://gitlab.com/saalen/astyle
Upstream docshttps://astyle.sourceforge.net/astyle.html
LicenseMIT
Source archivehttps://downloads.sourceforge.net/project/astyle/astyle/astyle%203.6/astyle-3.6.17.tar.bz2
Last updated2026-07-07T20:43:51Z
Pulseupdated
Build dependenciescmake
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameastyle
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

astyle 3.1-3+b3

Source code indenter for C, C++, Objective-C, C#, and Java

http://astyle.sourceforge.net/

sudo apt install astyle
  • Section: devel
  • Architecture: amd64
  • Source Package: astyle
  • 2 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Astyle
Debian stable package indexes · deb.debian.org · Debian stable package indexes: astyle from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libastyle-dev 3.1-3+b3

Library header files for Artistic Style

http://astyle.sourceforge.net/

sudo apt install libastyle-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: astyle
  • 1 dependencies
  • normalized package name match
  • Matched by: Astyle
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libastyle-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libastyle3 3.1-3+b3

Shared library for Artistic Style

http://astyle.sourceforge.net/

sudo apt install libastyle3
  • Section: libs
  • Architecture: amd64
  • Source Package: astyle
  • 2 dependencies
  • normalized package name match
  • Matched by: Astyle
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libastyle3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libastylej-jni 3.1-3+b3

Java JNI library for Artistic Style

http://astyle.sourceforge.net/

sudo apt install libastylej-jni
  • Section: libs
  • Architecture: amd64
  • Source Package: astyle
  • 2 dependencies
  • normalized package name match
  • Matched by: Astyle
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libastylej-jni from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

astyle

nix profile install nixpkgs#astyle
  • normalized package name match
  • Matched by: Astyle
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/as/astyle/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

astyle 3.1-3build1

Source code indenter for C, C++, Objective-C, C#, and Java

http://astyle.sourceforge.net/

sudo apt install astyle
  • Section: universe/devel
  • Architecture: amd64
  • 2 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Astyle
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: astyle from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libastyle-dev 3.1-3build1

Library header files for Artistic Style

http://astyle.sourceforge.net/

sudo apt install libastyle-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: astyle
  • 1 dependencies
  • normalized package name match
  • Matched by: Astyle
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libastyle-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libastyle3 3.1-3build1

Shared library for Artistic Style

http://astyle.sourceforge.net/

sudo apt install libastyle3
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: astyle
  • 2 dependencies
  • normalized package name match
  • Matched by: Astyle
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libastyle3 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libastylej-jni 3.1-3build1

Java JNI library for Artistic Style

http://astyle.sourceforge.net/

sudo apt install libastylej-jni
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: astyle
  • 2 dependencies
  • normalized package name match
  • Matched by: Astyle
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libastylej-jni from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

astyle 3.6.16-r0

Automatic code formatter

https://sourceforge.net/projects/astyle/

sudo apk add astyle
  • License: MIT
  • Architecture: x86_64
  • Source Package: astyle
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Astyle
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: astyle from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

astyle-dev 3.6.16-r0

Automatic code formatter (development files)

https://sourceforge.net/projects/astyle/

sudo apk add astyle-dev
  • License: MIT
  • Architecture: x86_64
  • Source Package: astyle
  • 1 dependencies
  • normalized package name match
  • Matched by: Astyle
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: astyle-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

astyle-doc 3.6.16-r0

Automatic code formatter (documentation)

https://sourceforge.net/projects/astyle/

sudo apk add astyle-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: astyle
  • normalized package name match
  • Matched by: Astyle
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: astyle-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

astyle-libs 3.6.16-r0

Automatic code formatter (libraries)

https://sourceforge.net/projects/astyle/

sudo apk add astyle-libs
  • License: MIT
  • Architecture: x86_64
  • Source Package: astyle
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Astyle
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: astyle-libs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

astyle 3.6.16-1.fc45

Source code formatter for C-like programming languages

https://astyle.sourceforge.net/

sudo dnf install astyle
  • License: MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: astyle
  • 4 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Astyle
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: astyle from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

astyle-devel 3.6.16-1.fc45

Source code formatter for C-like programming languages

https://astyle.sourceforge.net/

sudo dnf install astyle-devel
  • License: MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: astyle
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Astyle
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: astyle-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

astyle 3.6.16-1

A free, fast and small automatic formatter for C, C++, C#, and Java source code

http://astyle.sourceforge.net/

sudo pacman -S astyle
  • License: LGPL-3.0-only
  • Architecture: x86_64
  • 3 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Astyle
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: astyle from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment