Next: , Up: Packages   [Contents][Index]


3.1 Package Commands

There are multiple commands to display a list of Guix packages. You can either perform some actions in such “package-list” buffer, or “describe” package(s) in “package-info” buffer using RET.

The following commands use the current profile, which can be changed globally with M-x guix-set-current-profile (see Profile Commands). Alternatively, if you call any of the following commands with a prefix argument (C-u), you will be prompted for a profile just for that command.

M-x guix-all-packages

Display all available packages.

M-x guix-installed-packages
M-x guix-installed-user-packages
M-x guix-installed-system-packages

Display installed packages. As explained above, M-x guix-installed-packages uses an arbitrary profile that you can specify, while the other commands display packages installed in 2 special profiles: ~/.guix-profile and /run/current-system/profile (only on Guix System).

M-x guix-obsolete-packages

Display obsolete or unknown packages (the packages that are installed in a profile but cannot be found among the available packages).

M-x guix-superseded-packages

Display packages that are superseded by the other packages.

M-x guix-hidden-packages

Display packages that are hidden from user interfaces (usually because they are for internal use only).

M-x guix-dependent-packages

Display packages that depend on the specified package(s). This command is analogous to guix refresh --list-dependent shell command (see Invoking guix refresh in The GNU Guix Reference Manual). You’ll be prompted for a package name (or multiple names, separated by commas) and a dependency type (it should be either “all” or “direct”).

M-x guix-packages-by-name

Display package(s) with the specified name.

M-x guix-packages-by-regexp

Search for packages by a specified regexp. By default, “name”, “synopsis” and “description” of the packages will be searched. This can be changed by modifying guix-package-search-params variable.

M-x guix-packages-by-name-regexp

Search for packages with names matching a specified regexp. This command is the same as guix-packages-by-regexp, except only a package “name” is searched.

M-x guix-packages-by-license

Display package(s) with the specified license.

M-x guix-packages-by-location

Display package(s) located in the specified file. These files usually have the following form: gnu/packages/emacs.scm, but don’t type them manually! Press TAB to complete the file name.

M-x guix-package-from-file

Display package that the code within the specified file evaluates to. See --install-from-file in The GNU Guix Reference Manual, for an example of what such a file may look like.

M-x guix-packages-from-system-config-file

Display packages from the specified file with operating-system declaration (see Using the Configuration System in The GNU Guix Reference Manual).

By default, these commands display each package output on a separate line. If you prefer to see a list of packages—i.e., a list with a package per line, use the following setting:

(setq guix-package-list-type 'package)

Next: , Up: Packages   [Contents][Index]