pacman
Mirrors
sudo pacman-mirrors --country India && sudo pacman -Syyu
switching mirrors for fast downloads (only in manjaro).
Browsing Packages
-
pacman -Qq
gives a list of installed packages. -
gives a interactive list using fuzzy finder using
fzf
file.
pacman -Qq |
fzf --preview 'pacman -Qil {}' \
--layout=reverse \
--bind 'enter:execute(pacman -Qil {} | less)'
pacman -Slq | fzf --preview 'pacman -Si {}' --layout=reverse'
to browse all installed and not yet installed packages.
Package files size description
pacman -Qlq package | grep -v '/$' | xargs -r du -h | sort -h
gives list of files associated with the package and their size.
Installing Package
pacman -S package_name1, package_name2 ...
install packagespacman -S $(pacman -Ssq package_regex)
install packages by specifying some package regexpacman -S extra/package_name
multiple versions of same software? then specify the one you want(in this caseextra
repo is used)pacman -S gnome
install a group, (in this casegnome
de package), it will prompt you select the packages after thispacman -Sg gnome
see the packages in group gnome
Uninstalling Packages
pacman -R package_name
- remove a packagepacman -Rs package_name
- remove a package and it's dependencies which are not required by other packagespacman -Rsu package_name
- in case the above command don't work
Querying package databases
pacman -Ss string1 string2 ...
searches for the string in the package name, descriptionpacman -Ss '^vim-'
search in the package name only :-)pacman -Qs string1 string2 ...
- search in already installed packagespacman -F string1 string2 ...
- search in remote packages