Pacman
From PacBSD Wiki
Contents
- 1 Package install
- 2 Remove a package
- 3 Update system
- 4 Group packages install
- 5 Download a package without installation
- 6 Install a local package
- 7 Show installed packages with versions
- 8 Remove a package with all dependencies
- 9 Remove a package and configuration files
- 10 Search for a package
- 11 Find out which package owns a file
- 12 Find out which installed package provides a file
- 13 List orphan packages with no dependencies
- 14 Show package dependecies as tree
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