pacman
Mirrors
sudo pacman-mirrors --country India && sudo pacman -Syyuswitching mirrors for fast downloads (only in manjaro).
Browsing Packages
-
pacman -Qqgives a list of installed packages. -
gives a interactive list using fuzzy finder using
fzffile.
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 -hgives 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_namemultiple versions of same software? then specify the one you want(in this caseextrarepo is used)pacman -S gnomeinstall a group, (in this casegnomede package), it will prompt you select the packages after thispacman -Sg gnomesee 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