Pacman

From Dev Wiki
Revision as of 19:21, 23 October 2020 by Brodriguez (talk | contribs) (Create page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Similar to Apt-Get, pacman is a command line interface to update and install packages on a Arch Linux system.

For a list of useful packages to install via Pacman, see Pacman Packages.


Installing Packages

To install a new package, run:

sudo pacman -S <package_name>

See Pacman Packages for common packages.


Updating Packages

To apply package updates:

sudo pacman -Syu


Listing Installed Packages

To show all packages installed through apt:

pacman -Qs

To limit output to a given package name (or partial name):

pacman -Qs <partial_package_name>


Searching through Known Packages

If you don't know the exact name of a program you want to install, you can search through pacman's known repositories with the following:

pacman -Ss <keyword>

Where <keyword> is the string to compare with.

  • Ex: If you want to see what nvidia drivers are available, you can type pacman -Ss nvidia to display all matches with "nvidia".


Uninstalling Packages

If you installed a package through pacman, you can remove it by running the command:

sudo pacman -R <package_name>

To also uninstall any package dependencies:

sudo pacman -Rs <package_name>