macOS
brew install bashlocal Homebrew formula metadata
sudo port install bashMacPorts ports tree · shells/bash/Portfile · Source: api.github.com
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de bash pour les workflows d'agents IA.
installation
brew install bashlocal Homebrew formula metadata
sudo port install bashMacPorts ports tree · shells/bash/Portfile · Source: api.github.com
sudo apk add bashAlpine Linux edge package indexes · bash · Source: dl-cdn.alpinelinux.org
sudo apt install bashDebian stable package indexes · bash · Source: deb.debian.org
sudo dnf install bashFedora Rawhide package metadata · bash · Source: dl.fedoraproject.org
nix profile install nixpkgs#bashnixpkgs package indexes · bash · Source: raw.githubusercontent.com
sudo pacman -S bashArch Linux sync databases · bash · Source: geo.mirror.pkgbuild.com
sudo zypper install bashopenSUSE Tumbleweed package metadata · bash · Source: download.opensuse.org
aperçu
Bourne-Again SHell, a UNIX command interpreter
historique
GNU Bash, the Bourne-Again SHell, is the GNU Project's command language interpreter and one of the defining packages of Unix-like systems. It is both an interactive shell and a scripting language, sitting in the path between POSIX `sh`, the historical Bourne shell, GNU userlands, Linux distributions, macOS compatibility, and modern CI automation.
The GNU Bash manual describes Bash as the shell for the GNU operating system and explains that its name is a pun on the Bourne shell, the traditional Unix shell written by Stephen Bourne. Chet Ramey's Bash information page describes Bash as a complete implementation of the IEEE POSIX and Open Group shell specification with interactive command-line editing, job control, history substitution, brace expansion, and many other features.
Bash became the practical GNU answer to `/bin/sh`: compatible enough for shell scripts, featureful enough for interactive use, and free software under the GNU General Public License. The official Bash page identifies the Savannah repository as the main Git repository and the GNU FTP area as the archive for previous releases.
Bash history is also readline history. The package's interactive identity is built around line editing, history, completion, job control, shell variables, functions, and startup files. The official manual's startup-file section documents the familiar split between login files such as `~/.bash_profile`, `~/.bash_login`, and `~/.profile`, interactive non-login `~/.bashrc`, and non-interactive `BASH_ENV`.
Bash became standard infrastructure across GNU/Linux distributions. Chet Ramey's distribution notes state directly that Bash is the standard shell on GNU/Linux systems, and the batch input shows it packaged across Alpine, Homebrew, Debian, Fedora/DNF, MacPorts, Nix, Arch, Ubuntu, and openSUSE.
Its adoption also spread beyond GNU/Linux. The official Bash page documents Bash in BSD ports/packages, macOS as `/bin/sh` and `/bin/bash` beginning with Jaguar/Mac OS X 10.2, Solaris, AIX, HP-UX, Minix, Cygwin, and Windows Subsystem for Linux environments. The same page notes Apple's long-lived Bash 3.2 choice, which made Homebrew and MacPorts important for users who wanted newer Bash on macOS.
Bash also became a de facto automation substrate. Makefiles, configure scripts, release scripts, CI pipelines, container entrypoints, package build recipes, dotfiles, and system administration scripts often assume either POSIX shell behavior or Bash-specific extensions. That ubiquity is why a shell package can be both boring and critical.
Users run Bash interactively as a login shell or terminal shell, execute scripts with `bash script`, use it as a POSIX-like `/bin/sh` implementation when invoked that way, and customize sessions through startup files. The manual documents command invocation, startup-file behavior, variables, builtins, functions, shell expansions, redirection, job control, completion, and POSIX mode.
For package managers, Bash is also build infrastructure. Formulae, ports, distro build scripts, test harnesses, and upstream install scripts routinely rely on it. Installing Bash from Homebrew on macOS is a common way to get a newer GNU Bash than Apple's system `/bin/bash`, while Linux packages keep it in the base system dependency graph.
Bash is package-nerd bedrock. It is not just a package you install; it is a package many other packages assume exists during configure, build, test, install, and runtime scripting. A broken Bash upgrade can affect interactive users, init scripts, CI jobs, package formulas, and build systems all at once.
It is also one of the clearest examples of interface stability as a cultural contract. Bash has POSIX compatibility, decades of scripts, GNU extensions, platform-specific patches, startup-file expectations, and security-sensitive parsing behavior. Package maintainers care about patch levels, default paths, shell registration, codesigning or sandbox constraints on macOS, and whether `/bin/sh` points to Bash, dash, or another shell.
Historically, Bash carries the GNU/Linux story in one executable: free replacement shell, interactive convenience layer, script language, and distribution default. It is why package nerds still argue about Bashisms, POSIX portability, shebangs, `/usr/bin/env bash`, and whether a script really needed Bash in the first place.
posture de sécurité
doc example: shell runtime.
risque yellow · confiance élevé · runtime
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des 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.
~/.bashrc~/.bash_profile~/.bash_login~/.profileCredential-bearing paths to review before unattended agent runs.
~/.bashrc~/.bash_profile~/.bash_login~/.profileexécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
bash | cli | exécutable global | |
bashbug | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://www.gnu.org/software/bash/
métadonnées d'installation
| Clé du paquet | brew:bash |
|---|---|
| Version | 5.3.15 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/bash |
| Page d'accueil | https://www.gnu.org/software/bash/ |
| Dépôt | https://git.savannah.gnu.org/git/bash.git |
| Docs amont | https://www.gnu.org/software/bash |
| Licence | GPL-3.0-or-later |
| Archive source | https://ftpmirror.gnu.org/gnu/bash/bash-5.3.tar.gz |
| Dernière mise à jour | 2026-06-11T00:44:57Z |
| Pulse | updated |
| Dépendances | gettext, ncurses, readline |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
| Précautions | DEFAULT_LOADABLE_BUILTINS_PATH: $HOMEBREW_PREFIX/lib/bash:/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. |
faits du registre
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | bash |
| 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 |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
bash 5.2.37-2+b9
GNU Bourne Again SHell
http://tiswww.case.edu/php/chet/bash/bashtop.html
sudo apt install bashbash-builtins 5.2.37-2+b9
Bash loadable builtins - headers & examples
http://tiswww.case.edu/php/chet/bash/bashtop.html
sudo apt install bash-builtinsbash-doc 5.2.37-2
Documentation and examples for the GNU Bourne Again SHell
http://tiswww.case.edu/php/chet/bash/bashtop.html
sudo apt install bash-docbash-static 5.2.37-2+b9
GNU Bourne Again SHell (static version)
http://tiswww.case.edu/php/chet/bash/bashtop.html
sudo apt install bash-staticbash
nix profile install nixpkgs#bashbash 5.2.21-2ubuntu4
GNU Bourne Again SHell
http://tiswww.case.edu/php/chet/bash/bashtop.html
sudo apt install bashbash-builtins 5.2.21-2ubuntu4
Bash loadable builtins - headers & examples
http://tiswww.case.edu/php/chet/bash/bashtop.html
sudo apt install bash-builtinsbash-doc 5.2.21-2ubuntu4
Documentation and examples for the GNU Bourne Again SHell
http://tiswww.case.edu/php/chet/bash/bashtop.html
sudo apt install bash-docbash-static 5.2.21-2ubuntu4
GNU Bourne Again SHell (static version)
http://tiswww.case.edu/php/chet/bash/bashtop.html
sudo apt install bash-staticbash 5.3.9-r1
The GNU Bourne Again shell
https://www.gnu.org/software/bash/bash.html
sudo apk add bashbash-dbg 5.3.9-r1
The GNU Bourne Again shell (debug symbols)
https://www.gnu.org/software/bash/bash.html
sudo apk add bash-dbgbash-dev 5.3.9-r1
The GNU Bourne Again shell (development files)
https://www.gnu.org/software/bash/bash.html
sudo apk add bash-devbash-doc 5.3.9-r1
The GNU Bourne Again shell (documentation)
https://www.gnu.org/software/bash/bash.html
sudo apk add bash-docbash 5.3.9-3.fc44
The GNU Bourne Again shell
https://www.gnu.org/software/bash
sudo dnf install bashbash-devel 5.3.9-3.fc44
Development headers for bash
https://www.gnu.org/software/bash
sudo dnf install bash-develbash-doc 5.3.9-3.fc44
Documentation files for bash
https://www.gnu.org/software/bash
sudo dnf install bash-docpiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.