Install Link to heading
- Update all pacakges:
sudo pacman -Syu
- Install a package:
sudo pacman -S packagename
- Install a package from a file:
sudo pacman -U /path/to/package
Remove Link to heading
- Remove a package:
sudo pacman -Rns packagename
- Remove orphan packages:
sudo pacman -Rns $(pacman -Qtdq)
- Clear cache:
sudo paccache -r
- Remove uninstalled packages from cache:
sudo pacman -Sc
Search Link to heading
- Search for a package:
sudo pacman -Ss package
- Search for a local file:
sudo pacman -Qo filename
- Search for a remote file:
# First sync the file database
sudo pacman -Fy
# Then you can search
sudo pacman -F filename
Display Link to heading
- View all installed pacakges:
sudo pacman -Q
- View all packages explicitly installed:
sudo pacman -Qet
- View package dependencies:
# As a list
pactree -u packagename
# As a tree
pactree packagename
- View package reverse dependencies
pacman -Sii packagename
- List orphan packages:
sudo pacman -Qtdq
- Inspect package metadata:
pacman -Qi packagename
Configure Link to heading
- Install keyring:
sudo pacman -Sy --noconfirm archlinux-keyring manjaro-keyring
- Populate keyring:
sudo pacman-key --populate archlinux manjaro
- Refresh keys:
sudo pacman-key --refresh-keys
- Use the closest mirrors:
sudo pacman-mirrors --geoip
Other Link to heading
The rest, you can find it here: