← 返回命令列表

Linux command

guix-package 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Install

guix package -i [package]

Remove

guix package -r [package]

Search

guix package -s "[search_pattern]"

Example

guix package -I

Example

guix package -l

Roll back

guix package --roll-back

说明

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.

参数

-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

FAQ

What is the guix-package command used for?

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.

How do I run a basic guix-package example?

Run `guix package -i [package]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -i, --install _PACKAGE_ do in guix-package?

Install specified package