Automic VaultAutomic Vault

brew

使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop 安装 astyle

查看 astyle 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install astyle

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install astyle

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add astyle

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

Debian apt已验证 · 92%
sudo apt install astyle

Debian stable package indexes · astyle · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install astyle

Fedora Rawhide package metadata · astyle · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#astyle

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

Arch Linux pacman已验证 · 92%
sudo pacman -S astyle

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

openSUSE zypper已验证 · 92%
sudo zypper install astyle

openSUSE Tumbleweed package metadata · astyle · 来源: download.opensuse.org

Windows

Chocolatey已验证 · 92%
choco install astyle

Chocolatey community package catalog · astyle · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/astyle

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

概览

软件包摘要

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

命令和别名

  • astyle

历史

项目历史与用法

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.

时间线

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

安全态势

尚未找到受保护工具覆盖

没有找到 astyle 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
astylecli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本3.6.17
管理器更新时间2026-07-07
本地数据OK
上游not checked
检测到的最新版本未检测到

https://astyle.sourceforge.net/

安装元数据

软件包元数据

软件包键brew:astyle
版本3.6.17
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/astyle
主页https://astyle.sourceforge.net/
仓库https://gitlab.com/saalen/astyle
上游文档https://astyle.sourceforge.net/astyle.html
许可证MIT
源码归档https://downloads.sourceforge.net/project/astyle/astyle/astyle%203.6/astyle-3.6.17.tar.bz2
最后更新2026-07-07T20:43:51Z
Pulseupdated
构建依赖cmake
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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