# Install clojure with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Dynamic, general-purpose programming language. Version 1.12.5.1654 via Homebrew; verified 2026-05-29.

## Install

```sh
sudo av install brew:clojure
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install clojure
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install clojure
```

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

### Linux

- apk (92%):

```sh
sudo apk add clojure
```

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

- Debian apt (92%):

```sh
sudo apt install clojure
```

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

- dnf (92%):

```sh
sudo dnf install clojure
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#clojure
```

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

- pacman (92%):

```sh
sudo pacman -S clojure
```

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

- zypper (92%):

```sh
sudo zypper install clojure
```

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

## Package facts

- **Package key:** brew:clojure
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/clojure>
- **Version:** 1.12.5.1654
- **Source summary:** Dynamic, general-purpose programming language
- **Homepage:** <https://clojure.org>
- **Repository:** <https://github.com/clojure/brew-install>
- **Upstream docs:** <https://clojure.org/api/api>
- **License:** EPL-1.0
- **Source archive:** <https://github.com/clojure/brew-install/releases/download/1.12.5.1654/clojure-tools-1.12.5.1654.tar.gz>
- **Last updated:** 2026-05-29T15:30:41Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- clj (cli)
- clojure (cli)
- clj (alias)
- clojure (alias)

## Dependencies

- openjdk
- rlwrap

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.12.5.1654
- Package-manager updated: 2026-05-29
- Local data: ok
- Upstream repository: https://github.com/clojure/brew-install
- info: No cached GitHub release or tag data was available.
## Project history and usage

Clojure is a dynamic, general-purpose Lisp hosted on the JVM. Its official rationale frames it as a pragmatic language design effort for Java-class infrastructure, functional programming, persistent immutable data, and built-in concurrency support.

### Project history

Clojure was created by Rich Hickey as a modern Lisp for an established host platform. The official rationale says it embraces the JVM, modernizes Lisp, fosters functional programming with immutable persistent data structures, and provides concurrency support through software transactional memory and agents.

The official releases page lists Clojure 1.0.0 in July 2009 and current stable Clojure 1.12.5 in May 2026. The official history page points to Rich Hickey's HOPL-IV paper, 'A History of Clojure,' as the project's long-form historical record.

### Adoption history

Clojure adoption is tied to both JVM library distribution and command-line tools. The official downloads page gives Maven and deps.edn coordinates for the language artifact, and the Clojure CLI reference describes clj and clojure commands that run programs, start REPLs, invoke functions, run tools, and construct classpaths from deps.edn sources.

The supplied input shows broad package-manager distribution for the CLI package: apk, Homebrew, Debian, dnf, MacPorts, Nix, pacman, Ubuntu, and zypper.

### How it is used

The Clojure CLI is invoked as clojure or clj. Official CLI docs describe using deps.edn files to configure dependencies and classpaths, starting a REPL, executing functions with -X, running tools with -T, and running main namespaces or scripts with -M.

The deps.edn reference describes project paths, dependencies, aliases, Maven dependencies, Git dependencies, local dependencies, and tool definitions. User configuration lives in the Clojure CLI config directory, computed from CLJ_CONFIG, XDG_CONFIG_HOME, or ~/.clojure.

### Why package nerds care

Clojure is package-nerd significant because the language runtime is a Maven artifact, the CLI is an OS-packageable tool, and deps.edn makes dependency coordinates a plain data file. That split lets the CLI version, the language artifact version, and project dependencies be reasoned about separately.

For Unix package managers, the brew formula ships the clj and clojure commands, while real Clojure programs commonly resolve org.clojure/clojure and libraries from Maven repositories. The official CLI docs also make tools executable through the same dependency-resolution model.

### Timeline

- 2009: Clojure 1.0.0 listed on the official older releases page.
- 2010: Clojure 1.1.0 and 1.2.x listed on the official older releases page.
- 2017: Clojure 1.9.0 released with official release notes.
- 2018: Clojure 1.10.0 released with official release notes.
- 2021: HOPL-IV conference talk and Q&A for 'A History of Clojure.'
- 2024: Clojure 1.12.0 released with official release notes.
- 2026: Clojure 1.12.5 listed as stable release on May 12, 2026.

### Related projects

- Officially related projects include ClojureScript, ClojureCLR, tools.deps, the Clojure CLI, and the broader JVM/Maven ecosystem. clojure-lsp and ClojureScript build on Clojure's language and tooling conventions.

### Sources

- <https://clojure.org/about/rationale>
- <https://clojure.org/about/history>
- <https://clojure.org/releases/downloads>
- <https://clojure.org/releases/downloads_older>
- <https://clojure.org/reference/clojure_cli>
- <https://clojure.org/reference/deps_edn>
- <https://github.com/clojure/clojure>


## Security Notes

generalized runtime or code generation signal.

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


## 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

- Unix: deps.edn, $CLJ_CONFIG/deps.edn, $XDG_CONFIG_HOME/clojure/deps.edn, ~/.clojure/deps.edn
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** clojure
- **Version Scheme:** 1
- **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 - clojure - 1.12.0-1: normalized package name match | Debian stable package indexes: clojure from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Lisp dialect for the JVM | http://clojure.org
- Debian apt - libclojure-java - 1.12.0-1: normalized package name match | Debian stable package indexes: libclojure-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Lisp dialect for the JVM (library) | http://clojure.org
- Nix - clojure: normalized package name match | nixpkgs package indexes: pkgs/by-name/cl/clojure/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - clojure - 1.11.1-2: normalized package name match | Ubuntu 24.04 LTS package indexes: clojure from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Lisp dialect for the JVM | http://clojure.org
- Ubuntu apt - libclojure-java - 1.11.1-2: normalized package name match | Ubuntu 24.04 LTS package indexes: libclojure-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Lisp dialect for the JVM (library) | http://clojure.org
- apk - clojure - 1.12.5-r0: normalized package name match | Alpine Linux edge package indexes: clojure from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The Clojure Programming Language | https://clojure.org
- apk - clojure-doc - 1.12.5-r0: normalized package name match | Alpine Linux edge package indexes: clojure-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The Clojure Programming Language (documentation) | https://clojure.org
- dnf - clojure - 1.12.4-3.fc44: normalized package name match | Fedora Rawhide package metadata: clojure from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A dynamic programming language that targets the Java Virtual Machine | http://clojure.org/
- pacman - clojure - 1.12.5.1654-1: normalized package name match | Arch Linux sync databases: clojure from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Lisp dialect for the JVM | https://clojure.org/
- zypper - clojure - 1.12.3.1577-1.2: normalized package name match | openSUSE Tumbleweed package metadata: clojure from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A dynamic programming language that targets the JVM | https://clojure.org/
- MacPorts - clojure: normalized package name match | MacPorts ports tree: lang/clojure/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openjdk](https://www.automicvault.com/pkg/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [rlwrap](https://www.automicvault.com/pkg/brew/rlwrap/) - Runtime dependency declared by Homebrew.
- [kawa](https://www.automicvault.com/pkg/brew/kawa/) - Shares av.db curated category or tags: cli, jvm, language-runtime, lisp, programming-language.
- [hy](https://www.automicvault.com/pkg/brew/hy/) - Shares av.db curated category or tags: cli, language-runtime, lisp, programming-language, repl.
- [fennel](https://www.automicvault.com/pkg/brew/fennel/) - Shares av.db curated category or tags: cli, language-runtime, lisp, programming-language.
- [flix](https://www.automicvault.com/pkg/brew/flix/) - Shares av.db curated category or tags: cli, jvm, language-runtime, programming-language.
- [frege](https://www.automicvault.com/pkg/brew/frege/) - Shares av.db curated category or tags: cli, jvm, language-runtime, programming-language.
- [frege-repl](https://www.automicvault.com/pkg/brew/frege-repl/) - Shares av.db curated category or tags: cli, jvm, language-runtime, repl.
- [gosu](https://www.automicvault.com/pkg/brew/gosu/) - Shares av.db curated category or tags: cli, jvm, language-runtime, programming-language.
- [groovy](https://www.automicvault.com/pkg/brew/groovy/) - Shares av.db curated category or tags: cli, jvm, language-runtime, programming-language.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
