# 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

```sh
sudo av install brew:astyle
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install astyle
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install astyle
```

  Evidence: MacPorts ports tree: devel/astyle/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add astyle
```

  Evidence: Alpine Linux edge package indexes: astyle from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install astyle
```

  Evidence: Debian stable package indexes: astyle from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install astyle
```

  Evidence: Fedora Rawhide package metadata: astyle from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#astyle
```

  Evidence: nixpkgs package indexes: pkgs/by-name/as/astyle/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S astyle
```

  Evidence: Arch Linux sync databases: astyle from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install astyle
```

  Evidence: openSUSE Tumbleweed package metadata: astyle from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install astyle
```

  Evidence: Chocolatey community package catalog: astyle from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='7.756','razer-synapse-3'

- Scoop (92%):

```sh
scoop install main/astyle
```

  Evidence: Scoop official bucket manifest trees: bucket/astyle.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:astyle
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/astyle>
- **Version:** 3.6.17
- **Source summary:** Source code beautifier for C, C++, C#, and Java
- **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
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- astyle (cli)
- astyle (alias)

## Build dependencies

- cmake

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 3.6.17
- Package-manager updated: 2026-07-07
- Local data: ok
- Upstream repository: https://astyle.sourceforge.net/
- info: Release/tag comparison is only available for GitHub repositories.
## 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.

### Sources

- <https://astyle.sourceforge.net/>
- <https://astyle.sourceforge.net/astyle.html>
- <https://astyle.sourceforge.net/news.html>
- <https://astyle.sourceforge.net/notes.html>
- <https://astyle.sourceforge.net/notesArchives.html>
- <https://astyle.sourceforge.net/subversion.html>
- <https://gitlab.com/saalen/astyle>


## Security Notes

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.



## 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

- Unix: ~/.astylerc, <project>/.astylerc, <project>/_astylerc
- Windows: %APPDATA%\astylerc, <project>\.astylerc, <project>\_astylerc
## Source Database Details

- **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:** head, stable

## Other Package-Manager Records

- Debian apt - astyle - 3.1-3+b3: normalized package name match | Debian stable package indexes: astyle from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Source code indenter for C, C++, Objective-C, C#, and Java | http://astyle.sourceforge.net/
- Debian apt - libastyle-dev - 3.1-3+b3: normalized package name match | Debian stable package indexes: libastyle-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library header files for Artistic Style | http://astyle.sourceforge.net/
- Debian apt - libastyle3 - 3.1-3+b3: normalized package name match | Debian stable package indexes: libastyle3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Shared library for Artistic Style | http://astyle.sourceforge.net/
- Debian apt - libastylej-jni - 3.1-3+b3: normalized package name match | Debian stable package indexes: libastylej-jni from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Java JNI library for Artistic Style | http://astyle.sourceforge.net/
- Nix - astyle: normalized package name match | nixpkgs package indexes: pkgs/by-name/as/astyle/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - astyle - 3.1-3build1: normalized package name match | Ubuntu 24.04 LTS package indexes: astyle from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Source code indenter for C, C++, Objective-C, C#, and Java | http://astyle.sourceforge.net/
- Ubuntu apt - libastyle-dev - 3.1-3build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libastyle-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Library header files for Artistic Style | http://astyle.sourceforge.net/
- Ubuntu apt - libastyle3 - 3.1-3build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libastyle3 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Shared library for Artistic Style | http://astyle.sourceforge.net/
- Ubuntu apt - libastylej-jni - 3.1-3build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libastylej-jni from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Java JNI library for Artistic Style | http://astyle.sourceforge.net/
- apk - astyle - 3.6.16-r0: normalized package name match | Alpine Linux edge package indexes: astyle from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Automatic code formatter | https://sourceforge.net/projects/astyle/
- apk - astyle-dev - 3.6.16-r0: normalized package name match | Alpine Linux edge package indexes: astyle-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Automatic code formatter (development files) | https://sourceforge.net/projects/astyle/
- apk - astyle-doc - 3.6.16-r0: normalized package name match | Alpine Linux edge package indexes: astyle-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Automatic code formatter (documentation) | https://sourceforge.net/projects/astyle/
- apk - astyle-libs - 3.6.16-r0: normalized package name match | Alpine Linux edge package indexes: astyle-libs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Automatic code formatter (libraries) | https://sourceforge.net/projects/astyle/
- dnf - astyle - 3.6.16-1.fc45: normalized package name match | Fedora Rawhide package metadata: astyle from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Source code formatter for C-like programming languages | https://astyle.sourceforge.net/
- dnf - astyle-devel - 3.6.16-1.fc45: normalized package name match | 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 | Source code formatter for C-like programming languages | https://astyle.sourceforge.net/
- pacman - astyle - 3.6.16-1: normalized package name match | Arch Linux sync databases: astyle from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A free, fast and small automatic formatter for C, C++, C#, and Java source code | http://astyle.sourceforge.net/


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [creduce](https://www.automicvault.com/pkg/brew/creduce/) - Popular package that depends on this formula.
- [google-java-format](https://www.automicvault.com/pkg/brew/google-java-format/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter, java.
- [uncrustify](https://www.automicvault.com/pkg/brew/uncrustify/) - Shares av.db curated category or tags: c, cli, code-formatting, developer-tools, java.
- [air](https://www.automicvault.com/pkg/brew/air/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [alejandra](https://www.automicvault.com/pkg/brew/alejandra/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [black](https://www.automicvault.com/pkg/brew/black/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [cbfmt](https://www.automicvault.com/pkg/brew/cbfmt/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [darker](https://www.automicvault.com/pkg/brew/darker/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [djhtml](https://www.automicvault.com/pkg/brew/djhtml/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [findent](https://www.automicvault.com/pkg/brew/findent/) - Local package facts share a topical domain. Shared terms: beautifier, cli, code, code-formatting, developer.

## Combined YAML source

View the package source record on GitHub. [combined/astyle.yml](https://github.com/automic-vault/db/blob/main/combined/astyle.yml)


## Sources

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