Package Manager (pacman)#
Update and Upgrade#
Update package list#
sudo pacman -Syy
Update and upgrade all#
sudo pacman -Syu
Update and upgrade aur packages#
yaourt -Syu --aur
Update and upgrade yaourt packages#
yaourt -Syua
Get distro version#
lsb_release -a
Install or find Package#
Install specific package#
sudo pacman -S pkgname
Find available packages#
sudo pacman -Ss keyword
Find available local packages#
sudo pacman -Qs keyword
Show packages of group xorg#
pacman -Sg xorg
List all files from package#
pacman -Ql pkgname
Pacman log file#
/var/log/pacman.log
Remove Package#
Remove only a package#
pacman -R package_name
To remove a package and its dependencies which are not required by any other installed package#
sudo pacman -Rs package_name
List all packages no longer required as dependencies#
sudo pacman -Qdt
Clean package cache#
pacman -Sc
Screen recording#
gtk-recordmydesktop
Mount iso file#
fuseiso -p testimage.iso testimagemountpoint
To unmount#
fusermount -u <mountpoint>
Get IP address#
ip addr
Operators#
used like |
Specifications |
---|---|
-D, –database |
Operate on the package database |
-Q, –query |
Query the package database |
-R, –remove |
Remove package(s) from the system |
-S, –sync |
Synchronize packages |
-T, –deptest |
Check dependencies |
-U, –upgrade |
Upgrade or add package(s) to the system |
-F, –files |
Query the files database |
-V, –version |
Display version and exit |
-h, –help |
Display syntax for the given operation |
Options#
used like |
Specifications |
---|---|
-b, –dbpath |
Specify an alternative database location |
-r, –root |
Specify an alternative installation root |
-v, –verbose |
Output paths such as as the Root, Conf File, DB Path, Cache Dirs |
–arch <arch> |
Specify an alternate architecture |
–cachedir <dir> |
Specify al alternative package cache location |
–color <when> |
Specify when to enable coloring |
–config <file> |
Specify an alternate configuration file |
–debug |
Display debug messages |
–gpgdir <dir> |
Specify a directory of files used by GnuPG to verify package signatures |
–hookdir <dir> |
Specify an alternate directory containing hook files |
–logfile <file> |
Specify an alternate log file |
–noconfirm |
Bypass any and all “Are you sure?” messages |
–confirm |
Cancels the effects of a previous –noconfirm |
–disable-download-timeout |
Disable defaults for low speed limit and timeout on downloads |
–sysroot <dir> |
Specify an alternative system root |