macOS
brew install astylelocal Homebrew formula metadata
sudo port install astyleMacPorts ports tree · devel/astyle/Portfile · source: api.github.com
brew
Source code beautifier for C, C++, C#, and Java. Version 3.6.17 via Homebrew; verified 2026-07-07.
install
brew install astylelocal Homebrew formula metadata
sudo port install astyleMacPorts ports tree · devel/astyle/Portfile · source: api.github.com
sudo apk add astyleAlpine Linux edge package indexes · astyle · source: dl-cdn.alpinelinux.org
sudo apt install astyleDebian stable package indexes · astyle · source: deb.debian.org
sudo dnf install astyleFedora Rawhide package metadata · astyle · source: dl.fedoraproject.org
nix profile install nixpkgs#astylenixpkgs package indexes · pkgs/by-name/as/astyle/package.nix · source: api.github.com
sudo pacman -S astyleArch Linux sync databases · astyle · source: geo.mirror.pkgbuild.com
sudo zypper install astyleopenSUSE Tumbleweed package metadata · astyle · source: download.opensuse.org
choco install astyleChocolatey community package catalog · astyle · source: community.chocolatey.org
scoop install main/astyleScoop official bucket manifest trees · bucket/astyle.json · source: api.github.com
overview
Source code beautifier for C, C++, C#, and Java
history
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.
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.
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.
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.
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.
security posture
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.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
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.
Config paths the tool may read or write during local use.
~/.astylerc<project>/.astylerc<project>/_astylerc%APPDATA%\astylerc<project>\.astylerc<project>\_astylercexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
astyle | cli | global executable |
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.
https://astyle.sourceforge.net/
install metadata
| Package key | brew:astyle |
|---|---|
| Version | 3.6.17 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/astyle |
| Homepage | https://astyle.sourceforge.net/ |
| Repository | https://gitlab.com/saalen/astyle |
| Upstream docs | https://astyle.sourceforge.net/astyle.html |
| License | MIT |
| Source archive | https://downloads.sourceforge.net/project/astyle/astyle/astyle%203.6/astyle-3.6.17.tar.bz2 |
| Last updated | 2026-07-07T20:43:51Z |
| Pulse | updated |
| Build dependencies | cmake |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | astyle |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
astyle 3.1-3+b3
Source code indenter for C, C++, Objective-C, C#, and Java
http://astyle.sourceforge.net/
sudo apt install astylelibastyle-dev 3.1-3+b3
Library header files for Artistic Style
http://astyle.sourceforge.net/
sudo apt install libastyle-devlibastyle3 3.1-3+b3
Shared library for Artistic Style
http://astyle.sourceforge.net/
sudo apt install libastyle3libastylej-jni 3.1-3+b3
Java JNI library for Artistic Style
http://astyle.sourceforge.net/
sudo apt install libastylej-jniastyle
nix profile install nixpkgs#astyleastyle 3.1-3build1
Source code indenter for C, C++, Objective-C, C#, and Java
http://astyle.sourceforge.net/
sudo apt install astylelibastyle-dev 3.1-3build1
Library header files for Artistic Style
http://astyle.sourceforge.net/
sudo apt install libastyle-devlibastyle3 3.1-3build1
Shared library for Artistic Style
http://astyle.sourceforge.net/
sudo apt install libastyle3libastylej-jni 3.1-3build1
Java JNI library for Artistic Style
http://astyle.sourceforge.net/
sudo apt install libastylej-jniastyle 3.6.16-r0
Automatic code formatter
https://sourceforge.net/projects/astyle/
sudo apk add astyleastyle-dev 3.6.16-r0
Automatic code formatter (development files)
https://sourceforge.net/projects/astyle/
sudo apk add astyle-devastyle-doc 3.6.16-r0
Automatic code formatter (documentation)
https://sourceforge.net/projects/astyle/
sudo apk add astyle-docastyle-libs 3.6.16-r0
Automatic code formatter (libraries)
https://sourceforge.net/projects/astyle/
sudo apk add astyle-libsastyle 3.6.16-1.fc45
Source code formatter for C-like programming languages
https://astyle.sourceforge.net/
sudo dnf install astyleastyle-devel 3.6.16-1.fc45
Source code formatter for C-like programming languages
https://astyle.sourceforge.net/
sudo dnf install astyle-develastyle 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 astylesource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.