Pacman

From PacBSD Wiki
Jump to: navigation, search

Package install

pacman -S package_name

Remove a package

pacman -R package_name

Update system

pacman -Su
  • Also sync repos and update
pacman -Syu

Group packages install

pacman -S gnome
pacman -S kde

Download a package without installation

pacman -Sw package_name

Install a local package

pacman -U /path/to/package


Show installed packages with versions

pacman -Q 
  • Also you could save the list in a file in order to replicate your installation
pacman -Q > installed

Remove a package with all dependencies

pacman -Rsc package_name

Remove a package and configuration files

pacman -Rn package_name

Search for a package

pacman -Ss package_name

Find out which package owns a file

pacman -Qo /path/to/file

Find out which installed package provides a file

pacman -Ql 

List orphan packages with no dependencies

pacman -Qdt

Show package dependecies as tree

pactree package_name