# astyle mit Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für astyle in AI-Agent-Workflows.

## Installation

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

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install astyle
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install astyle
```

  Evidenz: 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
```

  Evidenz: 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
```

  Evidenz: 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
```

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

- Nix (92%):

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

  Evidenz: 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
```

  Evidenz: 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
```

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

### Windows

- Chocolatey (92%):

```sh
choco install astyle
```

  Evidenz: Chocolatey community package catalog: astyle from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='7.9764','dropkick'

- Scoop (92%):

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

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

## Paketfakten

- **Paketschlüssel:** brew:astyle
- **Paketmanager:** Homebrew
- **Version:** 3.6.17
- **Quellzusammenfassung:** Source code beautifier for C, C++, C#, and Java
- **Homepage:** <https://astyle.sourceforge.net/>
- **Zuletzt aktualisiert:** 2026-07-07T20:43:51Z
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- astyle (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 3.6.17
## Projektgeschichte und Nutzung

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.

### Projektgeschichte

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.

### Adoptionsgeschichte

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.

### Wie es verwendet wird

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.

### Warum Paket-Nerds sich dafür interessieren

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.

### Zeitleiste

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

### Quellen

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


## Sicherheitshinweise

Für astyle wurde kein passendes lokales Secret-Handling-Manifest gefunden. Nucleus-Paketmetadaten bleiben hier veröffentlicht, damit künftige Abdeckung eine stabile Paket-URL hat.



## 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
## Andere Paketmanager-Einträge

- 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.17-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.17-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.17-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.17-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-2.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Source code formatter for C-like programming languages | https://astyle.sourceforge.net/
- dnf - astyle-devel - 3.6.16-2.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Source code formatter for C-like programming languages | https://astyle.sourceforge.net/
- pacman - astyle - 3.6.17-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/


## Combined YAML source

View the package source record on GitHub. [combined/astyle.yml](https://github.com/mxcl/pkgdb/blob/main/combined/astyle.yml)


## Quellen

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
