LinuxCommandLibrary

guix-package

manages packages in GNU Guix, a functional package manager

TLDR

Install a package

$ guix package -i [package]
copy
Remove a package
$ guix package -r [package]
copy
Search for packages
$ guix package -s "[search_pattern]"
copy
List installed packages
$ guix package -I
copy
List generations (previous configurations)
$ guix package -l
copy
Roll back to the previous generation
$ guix package --roll-back
copy

SYNOPSIS

guix package [options]

DESCRIPTION

guix package manages packages in GNU Guix, a functional package manager. Unlike traditional package managers, Guix keeps multiple versions and configurations in separate generations, allowing easy rollback to previous states.
Each operation creates a new generation, preserving the previous state. This transactional approach means failed upgrades don't leave the system in a broken state, and users can always return to a known-good configuration.
Packages are installed per-user by default, not requiring root privileges. The functional model ensures reproducible builds and the ability to run multiple versions of the same package.

PARAMETERS

-i, --install PACKAGE

Install specified package
-r, --remove PACKAGE
Remove specified package
-s, --search PATTERN
Search package database using regex pattern
-I, --list-installed
List all installed packages
-l, --list-generations
List all generations (snapshots)
--roll-back
Switch to the previous generation
-u, --upgrade
Upgrade installed packages

CAVEATS

Guix uses a different filesystem hierarchy than traditional systems, with packages in /gnu/store. Shell integration may require sourcing Guix profile. Build times can be long when substitutes aren't available.

HISTORY

GNU Guix was announced in 2012 by Ludovic Courtès as a functional package manager based on Nix concepts but using GNU Guile Scheme. It evolved into a full GNU/Linux distribution (Guix System) while remaining usable as a package manager on other distributions.

SEE ALSO

guix(1), guix-pull(1), guix-gc(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community