pkg.soopen package index

brew / rank 3827

Install shc with Homebrew, apk, dnf, MacPorts, Nix, apt

Shell Script Compiler. Version 4.0.3 via Homebrew; verified 2026-09-13. Also installable with nix: nix profile install nixpkgs#shc.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install shc

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install shc

MacPorts ports tree · devel/shc/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add shc

Alpine Linux edge package indexes · shc · source: dl-cdn.alpinelinux.org

Fedora dnfverified · 92%
sudo dnf install shc

Fedora Rawhide package metadata · shc · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#shc

nixpkgs package indexes · pkgs/by-name/sh/shc/package.nix · source: api.github.com

Ubuntu aptverified · 92%
sudo apt install shc

Ubuntu 24.04 LTS package indexes · shc · source: archive.ubuntu.com

overview

Package summary

Shell Script Compiler

Commands and aliases

  • shc

history

Project history and usage

shc packages shell scripts as executable binaries by generating C source that decrypts and runs the original script through its designated shell.

Project history

shc was created as a generic shell-script-to-executable tool. It encodes and encrypts a script, emits C source, and invokes the system compiler to produce a stripped executable.

The current official project is maintained in the neurobin GitHub repository and documents experimental anti-tracing hardening alongside its traditional expiration and obfuscation capabilities.

Adoption history

shc is packaged for multiple Unix-like systems, including Alpine, Fedora-family distributions, Ubuntu, Nix, MacPorts, and Homebrew.

How it is used

A typical invocation is shc -f script.sh -o binary. The resulting executable behaves like the source script but remains dependent on the shell named by its shebang.

Users should test generated binaries carefully. The official documentation notes argument-size limits and describes the -H hardening mode as experimental.

Why package nerds care

shc occupies an unusual niche between packaging, obfuscation, and compilation. It can turn a script into a conventional executable artifact, but the result still depends on the script's original interpreter.

Its limitations matter to packagers: shc does not produce a truly self-contained native program, and generated executables remain constrained by shell availability and system argument-size limits.

Timeline

  • Current project era: Development and releases are maintained in the neurobin/shc repository.

Related projects

  • The generated program relies on a system C compiler during creation and the script's shebang interpreter at runtime.

security posture

Risk level: yellow

generalized runtime or code generation signal.

Risk classifier

yellow risk · medium confidence · runtime

Why

  • generalized runtime or code generation signal

Signals

  • text:shell

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 12 platform targets.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
shccliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-09-19
manager version4.0.3
manager updated2026-09-13
local dataok
upstreamcurrent
latest detected4.0.3

https://github.com/neurobin/shc

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:shc
Version4.0.3
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/shc
Homepagehttps://neurobin.github.io/shc
Repositoryhttps://github.com/neurobin/shc
Upstream docshttps://neurobin.github.io/shc
LicenseGPL-3.0-or-later
Source archivehttps://github.com/neurobin/shc/archive/refs/tags/4.0.3.tar.gz
Last updated2026-09-13T09:33:53Z
Pulseupdated
Bottleavailable (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameshc
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

shc

nix profile install nixpkgs#shc
  • normalized package name match
  • Matched by: Shc
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/sh/shc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

shc 4.0.3-1

Shell script compiler

https://neurobin.org/projects/softwares/unix/shc/

sudo apt install shc
  • Section: universe/devel
  • Architecture: amd64
  • 1 dependencies
  • normalized package name match
  • Matched by: Shc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: shc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

shc 4.0.3-r2

A generic shell script compiler.

https://neurobin.org/projects/softwares/unix/shc/

sudo apk add shc
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: shc
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Shc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: shc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
dnf95%

shc 4.0.3-17.fc45

Shell script compiler

https://neurobin.org/projects/softwares/unix/shc/

sudo dnf install shc
  • License: GPL-3.0-only
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: shc
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Shc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: shc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/652278618dec9c023176a80c435a32a2c8154869fb0eb662c267a54df28d77d9-primary.xml.zst
MacPorts95%

shc

sudo port install shc
  • normalized package name match
  • Matched by: Shc
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/shc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation