Automic VaultAutomic Vault

brew

Install cp2k with Homebrew, apt, dnf, Nix

Quantum chemistry and solid state physics software package. Version 2026.1 via Homebrew; verified 2026-06-27.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install cp2k

local Homebrew formula metadata

Linux

Debian aptverified · 92%
sudo apt install cp2k

Debian stable package indexes · cp2k · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install cp2k

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

Nixverified · 92%
nix profile install nixpkgs#cp2k

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

overview

Package summary

Quantum chemistry and solid state physics software package

Commands and aliases

  • cp2k.psmp
  • dbm_miniapp.psmp
  • dbt_tas_unittest.psmp
  • dbt_unittest.psmp
  • dumpdcd.psmp
  • gemm_square_unittest.psmp
  • graph.psmp
  • grid_miniapp.psmp
  • grid_unittest.psmp
  • gx_ac_unittest.psmp
  • libcp2k_unittest.psmp
  • memory_utilities_unittest.psmp
  • nequip_unittest.psmp
  • parallel_rng_types_unittest.psmp
  • xyz2dcd.psmp

history

Project history and usage

CP2K is an open-source quantum chemistry and solid-state physics package for atomistic simulations of molecular, periodic, materials, crystal, liquid, and biological systems.

Project history

The official CP2K site describes the program as a Fortran 2008 code supporting DFT, DFTB, MP2, RPA, semi-empirical methods, classical force fields, molecular dynamics, Monte Carlo, metadynamics, vibrational analysis, and related simulation workflows. It is GPL-licensed and developed openly on GitHub.

The official version history shows a long release line, with entries at least back to version 2.0 and continuing through date-based releases such as 2026.1. The project also documents trunk development in Git, indicating an active development branch alongside released versions.

Adoption history

CP2K's official download page explicitly lists both source releases and distribution channels, including Debian, Fedora, Ubuntu, Arch, Homebrew, Docker, NVIDIA NGC, EasyBuild, Spack, conda-forge, Nix, and FreeBSD. That breadth reflects its role as an HPC/scientific package that downstream package systems carry for reproducible simulation environments.

The version history records packaging-relevant platform work such as migration from SVN to Git in version 7.1, macOS build fixes in 9.1, ARM64 support in 8.2, container support in 2023.2, and GPU/offload work across multiple releases.

How it is used

Users run CP2K for computational chemistry and materials-science simulations, usually through input files and HPC-style execution rather than as an interactive desktop tool. The official site emphasizes both the manual and scientific references because results depend on the selected methods and modules.

Why package nerds care

CP2K is package-manager-significant because it combines a large Fortran scientific codebase, MPI/OpenMP/GPU build variants, bundled and external numerical libraries, test/regression expectations, and heavy downstream demand from HPC environments. Its official distribution list spans both general-purpose OS repositories and specialist scientific package managers.

Timeline

  • 2.0: Earliest release listed on the official version-history page.
  • 2019: Version 7.1 notes that development moved from SVN to Git.
  • 2021: Version 8.2 added ARM64 support.
  • 2023: Version 2023.2 added Apptainer/Singularity container support.
  • 2026: Version 2026.1 was released on January 6, 2026.

Related projects

  • The official site names DBCSR as CP2K's sparse matrix library and documents its standalone availability. The version history also references integrations and adjacent scientific tools such as SIRIUS, COSMA, ELPA, libxc, Docker, Spack, and conda-forge.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 9 runtime dependencies.
  • Build metadata lists 3 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
cp2k.psmpcliglobal executable
dbm_miniapp.psmpcliglobal executable
dbt_tas_unittest.psmpcliglobal executable
dbt_unittest.psmpcliglobal executable
dumpdcd.psmpcliglobal executable
gemm_square_unittest.psmpcliglobal executable
graph.psmpcliglobal executable
grid_miniapp.psmpcliglobal executable
grid_unittest.psmpcliglobal executable
gx_ac_unittest.psmpcliglobal executable
libcp2k_unittest.psmpcliglobal executable
memory_utilities_unittest.psmpcliglobal executable
nequip_unittest.psmpcliglobal executable
parallel_rng_types_unittest.psmpcliglobal executable
xyz2dcd.psmpcliglobal 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-07-08
manager version2026.1
manager updated2026-06-27
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/cp2k/cp2k

install metadata

Package metadata

Package keybrew:cp2k
Version2026.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/cp2k
Homepagehttps://www.cp2k.org/
Repositoryhttps://github.com/cp2k/cp2k
Upstream docshttps://manual.cp2k.org/
LicenseGPL-2.0-or-later
Source archivehttps://github.com/cp2k/cp2k/releases/download/v2026.1/cp2k-2026.1.tar.bz2
Last updated2026-06-27T22:40:14Z
Pulseupdated
Dependenciesdbcsr, fftw, gcc, libint, libomp, libxc, open-mpi, openblas, scalapack
Build dependenciescmake, fypp, pkgconf
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 Namecp2k
Version Scheme0
Revision2
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • 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.

Debian apt95%

cp2k 2025.1-1.1

Ab Initio Molecular Dynamics

http://www.cp2k.org

sudo apt install cp2k
  • Section: science
  • Architecture: amd64
  • 16 dependencies
  • normalized package name match
  • Matched by: Cp2k
Debian stable package indexes · deb.debian.org · Debian stable package indexes: cp2k from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

cp2k-data 2025.1-1.1

Ab Initio Molecular Dynamics (data files)

http://www.cp2k.org

sudo apt install cp2k-data
  • Section: science
  • Architecture: all
  • Source Package: cp2k
  • normalized package name match
  • Matched by: Cp2k
Debian stable package indexes · deb.debian.org · Debian stable package indexes: cp2k-data from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

cp2k

nix profile install nixpkgs#cp2k
  • normalized package name match
  • Matched by: Cp2k
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/cp/cp2k/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
dnf95%

cp2k 2025.1-5.fc44

Ab Initio Molecular Dynamics

https://www.cp2k.org/

sudo dnf install cp2k
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: cp2k
  • 18 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Cp2k
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: cp2k from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

cp2k-common 2025.1-5.fc44

Molecular simulations software - common files

https://www.cp2k.org/

sudo dnf install cp2k-common
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: cp2k
  • 1 provides
  • normalized package name match
  • Matched by: Cp2k
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: cp2k-common from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

cp2k-devel 2025.1-5.fc44

Development files for cp2k

https://www.cp2k.org/

sudo dnf install cp2k-devel
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: cp2k
  • 3 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Cp2k
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: cp2k-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

cp2k-mpich 2025.1-5.fc44

Molecular simulations software - mpich version

https://www.cp2k.org/

sudo dnf install cp2k-mpich
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: cp2k
  • 21 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Cp2k
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: cp2k-mpich from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

cp2k-mpich-devel 2025.1-5.fc44

Development files for cp2k

https://www.cp2k.org/

sudo dnf install cp2k-mpich-devel
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: cp2k
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Cp2k
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: cp2k-mpich-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

cp2k-openmpi 2025.1-5.fc44

Molecular simulations software - openmpi version

https://www.cp2k.org/

sudo dnf install cp2k-openmpi
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: cp2k
  • 23 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Cp2k
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: cp2k-openmpi from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

cp2k-openmpi-devel 2025.1-5.fc44

Development files for cp2k

https://www.cp2k.org/

sudo dnf install cp2k-openmpi-devel
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: cp2k
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Cp2k
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: cp2k-openmpi-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

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
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment