• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

guix package Command Examples in Linux

by admin

guix package is a command-line tool used to manage packages in the Guix System, which is a distribution of the GNU operating system that uses the GNU Guix package manager. guix package provides a variety of subcommands that you can use to install, upgrade, remove, and manage packages on your system.

The basic usage of guix package is guix package [subcommand] [options], where subcommand is the action you want to perform (e.g. install, upgrade, remove) and options are any additional options you want to pass to the subcommand.

Some of the most commonly used guix package subcommands are:

  • guix package -i [package-name]: Install a package. For example, guix package -i emacs installs the emacs package.
  • guix package -r [package-name]: Remove a package. For example, guix package -r emacs removes the emacs package.
  • guix package -s [package-name]: Show information about a package, including its version, description, and dependencies.
  • guix package -l [package-name]: Display the list of generations of a package, and rollback to a specific generation

One of the key benefits of using guix package is its ability to rollback to previous configurations. It uses a transactional approach to package management, which means that it keeps track of all the changes made to the system and allows you to rollback to a previous configuration if something goes wrong. This is done by keeping a list of generations of a package, you can use guix package -l [package-name] to display the list and rollback to a specific generation with guix package -r [package-name]@[generation-number]

Filed Under: Linux

Some more articles you might also be interested in …

  1. lslogins Command Examples in Linux
  2. CentOS / RHEL : How to backup/restore configuration using authconfig
  3. iwconfig Command Examples in Linux
  4. du Command Examples in Linux
  5. How to (Correctly) Change the UID and GID of a user/group in Linux
  6. awk: command not found
  7. “sudo: /etc/sudoers is world writable” – How to correct the permissions of sudoers file
  8. How to Check vendor of installed RPM packages in Linux
  9. powerstat Command Examples in Linux
  10. pw-cli Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright