pkg.soopen package index

brew / rank 206

Install llama.cpp with Homebrew, dnf, Nix, pacman, apk, MacPorts, winget

LLM inference in C/C++. Version 0.4.1 via Homebrew; verified 2026-09-18. Also installable with nix: nix profile install nixpkgs#llama-cpp.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install llama.cpp

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install llama.cpp

MacPorts ports tree · llm/llama.cpp/Portfile · source: api.github.com

Linux

Fedora dnfverified · 92%
sudo dnf install llama-cpp

Fedora Rawhide package metadata · llama-cpp · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#llama-cpp

nixpkgs package indexes · pkgs/by-name/ll/llama-cpp/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S llama-cpp

Arch Linux sync databases · llama-cpp · source: geo.mirror.pkgbuild.com

Alpine Linux apkverified · 92%
sudo apk add llama-batched

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

Windows

Windows Package Managerverified · 92%
winget install --id ggml.llamacpp -e

Windows Package Manager source index · ggml.llamacpp · source: cdn.winget.microsoft.com

overview

Package summary

LLM inference in C/C++

Commands and aliases

  • llama
  • llama-batched
  • llama-batched-bench
  • llama-bench
  • llama-cli
  • llama-completion
  • llama-debug
  • llama-diffusion-cli
  • llama-embedding
  • llama-eval-callback
  • llama-finetune
  • llama-fit-params
  • llama-gen-docs
  • llama-gguf
  • llama-gguf-hash
  • llama-gguf-split
  • llama-idle
  • llama-imatrix
  • llama-lookahead
  • llama-lookup
  • llama-lookup-create
  • llama-lookup-merge
  • llama-lookup-stats
  • llama-mtmd-cli
  • llama-parallel
  • llama-passkey
  • llama-perplexity
  • llama-quantize
  • llama-results
  • llama-retrieval
  • llama-server
  • llama-simple

history

Project history and usage

llama.cpp is one of the defining packages of the local-LLM era: a C/C++ inference stack that made it practical to run quantized transformer models on laptops, desktops, servers, and small devices without a heavyweight Python runtime.

Project history

The repository was created on GitHub on March 10, 2023, shortly after Meta's LLaMA model release changed the center of gravity for local language-model experimentation. The README states the project goal as LLM inference with minimal setup and strong performance across local and cloud hardware.

The project is closely tied to ggml. Its README describes llama.cpp as the main playground for developing new ggml features, and the implementation grew around plain C/C++, integer quantization, CPU backends, and hardware accelerators such as Metal, CUDA, Vulkan, SYCL, HIP, and related GPU paths.

As model support broadened beyond the original LLaMA family, llama.cpp became a runtime and tooling umbrella: converters, quantizers, benchmarking tools, embedding tools, an OpenAI-compatible server, multimodal support, and many model-family loaders are represented in the command set and documentation.

Adoption history

Package adoption spread because llama.cpp lowered the cost of trying local inference: build from source, install from Homebrew, Nix, winget, conda-forge, Docker, or download release binaries, then run a model file or fetch one from Hugging Face-oriented workflows.

The README's bindings list shows the surrounding ecosystem that formed around the C/C++ core, including Python, Go, Node.js, Ruby, browser/Wasm, editor-completion plugins, and server clients. That ecosystem made llama.cpp both an end-user CLI and a library/runtime target for other packages.

Its high-frequency build-tag release pattern reflects active downstream pressure: package managers, bindings, model hubs, and local-AI applications all depend on fast propagation of backend, quantization, and model-format changes.

How it is used

Users run llama-cli for local prompts, llama-server for an OpenAI-compatible HTTP API, llama-bench for performance testing, llama-quantize for smaller model files, and many auxiliary tools for embeddings, perplexity, retrieval, tokenization, and model-file manipulation.

The package is especially useful when a developer wants a self-contained inference engine: compile once, point it at a model, and choose a CPU/GPU backend without adopting a full ML framework stack.

Why package nerds care

For package maintainers, llama.cpp is unusually dynamic: hardware backend flags, model-format transitions, CLI renames, bundled tools, and release cadence all matter. It turned local AI into something package managers had to treat like a fast-moving systems tool rather than a single Python application.

It is also a packaging bridge between model hubs and Unix tooling. The same project can be installed as a formula, used as a server daemon, linked by language bindings, wrapped by desktop apps, or embedded in another inference product.

Timeline

  • 2023: ggml-org/llama.cpp repository created on March 10.
  • 2023: The project manifesto discussion documented goals and direction for the early community.
  • 2024: llama.cpp issue trackers began maintaining separate API changelogs for libllama and llama-server.
  • 2025: Multimodal support reached llama-server through the upstream pull request and documentation referenced from the README.
  • 2026: Homebrew, Nix, winget, conda-forge, Docker, and release binaries were documented installation paths in the upstream README.

Related projects

  • ggml is the closest related project, because llama.cpp is the main development playground for that tensor library.
  • Important downstream and adjacent projects include llama-cpp-python, node-llama-cpp, go-llama.cpp, wllama, llama.vscode, llama.vim, and applications that wrap llama-server's OpenAI-compatible API.

security posture

No protected-tool coverage found yet

No matching local secret-handling manifest was found for llama.cpp. Package metadata is still published here so future coverage has a stable package URL.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 2 runtime dependencies.
  • Build metadata lists 1 build dependencies.

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
llamacliglobal executable
llama-batchedcliglobal executable
llama-batched-benchcliglobal executable
llama-benchcliglobal executable
llama-clicliglobal executable
llama-completioncliglobal executable
llama-debugcliglobal executable
llama-diffusion-clicliglobal executable
llama-embeddingcliglobal executable
llama-eval-callbackcliglobal executable
llama-finetunecliglobal executable
llama-fit-paramscliglobal executable
llama-gen-docscliglobal executable
llama-ggufcliglobal executable
llama-gguf-hashcliglobal executable
llama-gguf-splitcliglobal executable
llama-idlecliglobal executable
llama-imatrixcliglobal executable
llama-lookaheadcliglobal executable
llama-lookupcliglobal executable
llama-lookup-createcliglobal executable
llama-lookup-mergecliglobal executable
llama-lookup-statscliglobal executable
llama-mtmd-clicliglobal executable
llama-parallelcliglobal executable
llama-passkeycliglobal executable
llama-perplexitycliglobal executable
llama-quantizecliglobal executable
llama-resultscliglobal executable
llama-retrievalcliglobal executable
llama-servercliglobal executable
llama-simplecliglobal executable
llama-simple-chatcliglobal executable
llama-speculativecliglobal executable
llama-speculative-simplecliglobal executable
llama-tokenizecliglobal executable
llama-ttscliglobal 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 version0.4.1
manager updated2026-09-18
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/ggml-org/llama.cpp

install metadata

Package metadata

Package keybrew:llama.cpp
Version0.4.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/llama.cpp
Homepagehttps://llama.app
Repositoryhttps://github.com/ggml-org/llama.cpp
Upstream docshttps://llama.app
LicenseMIT
Source archivehttps://github.com/ggml-org/llama.cpp.git
Last updated2026-09-18T13:15:15+02:00
Pulseupdated
Dependenciesggml, openssl@3
Build dependenciescmake
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namellama.cpp
Version Scheme1
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%

llama-cpp

nix profile install nixpkgs#llama-cpp
  • normalized package name match
  • Matched by: Llama Cpp
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ll/llama-cpp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

llama-batched 0.2.0-r1

llama-batched tool from llama.cpp

https://github.com/ggml-org/llama.cpp

sudo apk add llama-batched
  • License: MIT
  • Architecture: x86_64
  • Source Package: llama.cpp
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Llama Cpp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llama-batched from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

llama-batched-bench 0.2.0-r1

llama-batched-bench tool from llama.cpp

https://github.com/ggml-org/llama.cpp

sudo apk add llama-batched-bench
  • License: MIT
  • Architecture: x86_64
  • Source Package: llama.cpp
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Llama Cpp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llama-batched-bench from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

llama-completion 0.2.0-r1

llama-completion tool from llama.cpp

https://github.com/ggml-org/llama.cpp

sudo apk add llama-completion
  • License: MIT
  • Architecture: x86_64
  • Source Package: llama.cpp
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Llama Cpp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llama-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

llama-debug 0.2.0-r1

llama-debug tool from llama.cpp

https://github.com/ggml-org/llama.cpp

sudo apk add llama-debug
  • License: MIT
  • Architecture: x86_64
  • Source Package: llama.cpp
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Llama Cpp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llama-debug from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

llama-diffusion-cli 0.2.0-r1

llama-diffusion-cli tool from llama.cpp

https://github.com/ggml-org/llama.cpp

sudo apk add llama-diffusion-cli
  • License: MIT
  • Architecture: x86_64
  • Source Package: llama.cpp
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Llama Cpp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llama-diffusion-cli from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

llama-embedding 0.2.0-r1

llama-embedding tool from llama.cpp

https://github.com/ggml-org/llama.cpp

sudo apk add llama-embedding
  • License: MIT
  • Architecture: x86_64
  • Source Package: llama.cpp
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Llama Cpp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llama-embedding from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

llama-eval-callback 0.2.0-r1

llama-eval-callback tool from llama.cpp

https://github.com/ggml-org/llama.cpp

sudo apk add llama-eval-callback
  • License: MIT
  • Architecture: x86_64
  • Source Package: llama.cpp
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Llama Cpp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llama-eval-callback from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

llama-finetune 0.2.0-r1

llama-finetune tool from llama.cpp

https://github.com/ggml-org/llama.cpp

sudo apk add llama-finetune
  • License: MIT
  • Architecture: x86_64
  • Source Package: llama.cpp
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Llama Cpp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llama-finetune from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

llama-fit-params 0.2.0-r1

llama-fit-params tool from llama.cpp

https://github.com/ggml-org/llama.cpp

sudo apk add llama-fit-params
  • License: MIT
  • Architecture: x86_64
  • Source Package: llama.cpp
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Llama Cpp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llama-fit-params from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

llama-gen-docs 0.2.0-r1

llama-gen-docs tool from llama.cpp

https://github.com/ggml-org/llama.cpp

sudo apk add llama-gen-docs
  • License: MIT
  • Architecture: x86_64
  • Source Package: llama.cpp
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Llama Cpp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llama-gen-docs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

llama-gguf 0.2.0-r1

llama-gguf tool from llama.cpp

https://github.com/ggml-org/llama.cpp

sudo apk add llama-gguf
  • License: MIT
  • Architecture: x86_64
  • Source Package: llama.cpp
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Llama Cpp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llama-gguf from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

llama-gguf-hash 0.2.0-r1

llama-gguf-hash tool from llama.cpp

https://github.com/ggml-org/llama.cpp

sudo apk add llama-gguf-hash
  • License: MIT
  • Architecture: x86_64
  • Source Package: llama.cpp
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Llama Cpp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llama-gguf-hash from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

llama-gguf-split 0.2.0-r1

llama-gguf-split tool from llama.cpp

https://github.com/ggml-org/llama.cpp

sudo apk add llama-gguf-split
  • License: MIT
  • Architecture: x86_64
  • Source Package: llama.cpp
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Llama Cpp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llama-gguf-split from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

llama-idle 0.2.0-r1

llama-idle tool from llama.cpp

https://github.com/ggml-org/llama.cpp

sudo apk add llama-idle
  • License: MIT
  • Architecture: x86_64
  • Source Package: llama.cpp
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Llama Cpp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llama-idle from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

llama-imatrix 0.2.0-r1

llama-imatrix tool from llama.cpp

https://github.com/ggml-org/llama.cpp

sudo apk add llama-imatrix
  • License: MIT
  • Architecture: x86_64
  • Source Package: llama.cpp
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Llama Cpp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llama-imatrix from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

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