# Install fastjar with Homebrew, apk, apt, MacPorts, Nix, pacman, zypper

Implementation of Sun's jar tool. Version 0.98 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:fastjar
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install fastjar
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fastjar
```

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

### Linux

- apk (92%):

```sh
sudo apk add fastjar
```

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

- Debian apt (92%):

```sh
sudo apt install fastjar
```

  Evidence: Debian stable package indexes: fastjar from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#fastjar
```

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

- pacman (92%):

```sh
sudo pacman -S fastjar
```

  Evidence: Arch Linux sync databases: fastjar from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install fastjar
```

  Evidence: openSUSE Tumbleweed package metadata: fastjar from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:fastjar
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/fastjar>
- **Version:** 0.98
- **Source summary:** Implementation of Sun's jar tool
- **Homepage:** <https://savannah.nongnu.org/projects/fastjar>
- **Repository:** <https://cvs.savannah.nongnu.org/viewvc/fastjar>
- **Upstream docs:** <https://gcc.gnu.org/onlinedocs/gcc-4.0.4/fastjar>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://download.savannah.nongnu.org/releases/fastjar/fastjar-0.98.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- fastjar (cli)
- grepjar (cli)
- fastjar (alias)
- grepjar (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.98
- Local data: ok
- Upstream repository: https://savannah.nongnu.org/projects/fastjar
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

fastjar is a free-software implementation of the Java JAR command, paired with grepjar, that survived as a small Unix package because it let GCC/GNU Java-era systems create and inspect JAR archives without depending on Sun's proprietary toolchain.

### Project history

The Savannah project page records fastjar as a non-GNU project registered on March 21, 2006, with GPL-2.0-or-later licensing and a CVS source repository. GCC hosted a manual titled Guide to GNU jar utilities, documenting fastjar and grepjar as command-line utilities.

### Adoption history

fastjar's adoption has been historical and distribution-driven rather than community-growth driven. It appears in Unix package managers as a compatibility tool for older Java/GNU Classpath and GCC Java workflows, while modern Java installations generally provide jar through the JDK.

### How it is used

The GCC manual describes fastjar as the tool to invoke for JAR archive operations and grepjar as the companion search utility. In practice it is installed when a small, standalone jar-compatible command is needed in old build recipes or minimal packaging environments.

### Why package nerds care

Package maintainers care about fastjar mostly as fossil infrastructure: it is a reminder of the period when free Java tooling had to replace proprietary pieces one command at a time, and it remains packaged because old build graphs sometimes still name fastjar explicitly.

### Timeline

- 2006: fastjar project registered on Savannah.
- 2006: GCC 4.0-era online docs published the fastjar and grepjar manual.
- 2026: Homebrew still packages fastjar 0.98 as an implementation of Sun's jar tool.

### Related projects

- Sun/Oracle jar is the tool fastjar implements.
- grepjar is shipped and documented as fastjar's companion utility.
- GNU Classpath and GCC Java-era packaging are the ecosystem context in which fastjar mattered most.

### Sources

- <https://savannah.nongnu.org/projects/fastjar>
- <https://gcc.gnu.org/onlinedocs/gcc-4.0.4/fastjar>
- <https://formulae.brew.sh/formula/fastjar>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** fastjar
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - fastjar - 2:0.98-7: normalized package name match | Debian stable package indexes: fastjar from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Jar creation utility
- Nix - fastjar: normalized package name match | nixpkgs package indexes: pkgs/by-name/fa/fastjar/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - fastjar - 2:0.98-7: normalized package name match | Ubuntu 24.04 LTS package indexes: fastjar from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Jar creation utility
- apk - fastjar - 0.98-r5: normalized package name match | Alpine Linux edge package indexes: fastjar from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A fast implementation of Java Archiver | http://savannah.nongnu.org/projects/fastjar
- apk - fastjar-doc - 0.98-r5: normalized package name match | Alpine Linux edge package indexes: fastjar-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A fast implementation of Java Archiver (documentation) | http://savannah.nongnu.org/projects/fastjar
- pacman - fastjar - 0.98-7: normalized package name match | Arch Linux sync databases: fastjar from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Sun java jar compatible archiver | https://savannah.nongnu.org/projects/fastjar
- zypper - fastjar - 0.98-28.3: normalized package name match | openSUSE Tumbleweed package metadata: fastjar from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Java package archiver | https://savannah.nongnu.org/projects/fastjar/
- MacPorts - fastjar: normalized package name match | MacPorts ports tree: archivers/fastjar/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Archive and compression packages](https://www.automicvault.com/pkg/archive-compression-tools/) - Matched archive or compression metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [tiny-remapper](https://www.automicvault.com/pkg/brew/tiny-remapper/) - Shares av.db curated category or tags: cli, developer-tools, jar, java.
- [bnd](https://www.automicvault.com/pkg/brew/bnd/) - Shares av.db curated category or tags: cli, developer-tools, java.
- [byteman](https://www.automicvault.com/pkg/brew/byteman/) - Shares av.db curated category or tags: cli, developer-tools, java.
- [cfr-decompiler](https://www.automicvault.com/pkg/brew/cfr-decompiler/) - Shares av.db curated category or tags: cli, developer-tools, java.
- [checkstyle](https://www.automicvault.com/pkg/brew/checkstyle/) - Shares av.db curated category or tags: cli, developer-tools, java.
- [gcviewer](https://www.automicvault.com/pkg/brew/gcviewer/) - Shares av.db curated category or tags: cli, developer-tools, java.
- [helidon](https://www.automicvault.com/pkg/brew/helidon/) - Shares av.db curated category or tags: cli, developer-tools, java.
- [ivy](https://www.automicvault.com/pkg/brew/ivy/) - Shares av.db curated category or tags: cli, developer-tools, java.

## Combined YAML source

View the package source record on GitHub. [combined/fastjar.yml](https://github.com/automic-vault/db/blob/main/combined/fastjar.yml)


## Sources

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