# Install shc

Shell Script Compiler. Version 4.0.3 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:shc
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install shc
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install shc
```

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

### Linux

- apk (92%):

```sh
sudo apk add shc
```

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

- dnf (92%):

```sh
sudo dnf install shc
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#shc
```

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

- Ubuntu apt (92%):

```sh
sudo apt install shc
```

  Evidence: Ubuntu 24.04 LTS package indexes: shc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

## Package Facts

- **Package key:** brew:shc
- **Package manager:** Homebrew
- **Package manager URL:** <https://formulae.brew.sh/formula/shc>
- **Version:** 4.0.3
- **Source summary:** Shell Script Compiler
- **Homepage:** <https://neurobin.github.io/shc>
- **Repository:** <https://github.com/neurobin/shc>
- **Upstream docs:** <https://github.com/neurobin/shc#readme>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://github.com/neurobin/shc/archive/refs/tags/4.0.3.tar.gz>
- **Generated:** 2026-06-10T07:18:26+00:00

## Executables

- shc (cli)
- shc (alias)

## Install Behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-06-10
- Package-manager version: 4.0.3
- Local data status: ok
- Upstream repository: https://github.com/neurobin/shc
- Upstream latest detected: 4.0.3 (current)
- info: No package-manager update timestamp was available.

## 安全说明

generalized runtime or code generation signal.

- **Geiger risk:** yellow / medium
- generalized runtime or code generation signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** shc
- **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

- Nix - shc: normalized package name match | nixpkgs package indexes: pkgs/by-name/sh/shc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - shc - 4.0.3-1: normalized package name match | Ubuntu 24.04 LTS package indexes: shc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Shell script compiler | https://neurobin.org/projects/softwares/unix/shc/
- apk - shc - 4.0.3-r2: normalized package name match | Alpine Linux edge package indexes: shc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | A generic shell script compiler. | https://neurobin.org/projects/softwares/unix/shc/
- dnf - shc - 4.0.3-16.fc44: normalized package name match | Fedora Rawhide package metadata: shc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst | Shell script compiler | https://neurobin.org/projects/softwares/unix/shc/
- MacPorts - shc: normalized package name match | MacPorts ports tree: devel/shc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related Links

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [fish](https://www.automicvault.com/zh-hans/pkg/brew/fish/) - Shares av.db curated category or tags: cli, developer-tools, shell, unix.
- [zsh](https://www.automicvault.com/zh-hans/pkg/brew/zsh/) - Shares av.db curated category or tags: cli, developer-tools, shell, unix.
- [shellcheck](https://www.automicvault.com/zh-hans/pkg/brew/shellcheck/) - Shares av.db curated category or tags: cli, developer-tools, shell.
- [zoxide](https://www.automicvault.com/zh-hans/pkg/brew/zoxide/) - Shares av.db curated category or tags: cli, developer-tools, shell.
- [parallel](https://www.automicvault.com/zh-hans/pkg/brew/parallel/) - Shares av.db curated category or tags: cli, developer-tools, shell.
- [powershell](https://www.automicvault.com/zh-hans/pkg/brew/powershell/) - Shares av.db curated category or tags: cli, developer-tools, shell.
- [shfmt](https://www.automicvault.com/zh-hans/pkg/brew/shfmt/) - Shares av.db curated category or tags: cli, developer-tools, shell.
- [emscripten](https://www.automicvault.com/zh-hans/pkg/brew/emscripten/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [cc65](https://www.automicvault.com/zh-hans/pkg/brew/cc65/) - Local package facts share a topical domain. Shared terms: cli, compilation, compiler, developer, developer-tools.

## Sources

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