-
pacman -Q <package name>
Outputs name of the found package in the local repo and it's current installed version.
Click to see example
$ pacman -Q xclip
xclip 0.13-3 -
pacman -Qi <package name>
Outputs verbose information about the found package in the local repo.
Click to see example
$ pacman -Qi xclip
Name : xclip
Version : 0.13-3
Description : Command line interface to the X11 clipboard
Architecture : x86_64
URL : https://github.com/astrand/xclip
Licenses : GPL
Groups : None
Provides : None
Depends On : libxmu
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 34.39 KiB
Packager : Felix Yan
Build Date : Sat 16 May 2020 03:56:14 PM UTC
Install Date : Sun 21 Feb 2021 11:09:59 AM UTC
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
-
pacman -Ql <package name>
Lists the files installed by the found package in the local repo.
Click to see example
$ pacman -Ql xclip
xclip /usr/
xclip /usr/bin/
xclip /usr/bin/xclip
xclip /usr/bin/xclip-copyfile
xclip /usr/bin/xclip-cutfile
xclip /usr/bin/xclip-pastefile
xclip /usr/share/
xclip /usr/share/man/
xclip /usr/share/man/man1/
xclip /usr/share/man/man1/xclip-copyfile.1.gz
xclip /usr/share/man/man1/xclip.1.gz
-
pacman -Qo <file>
Outputs the package which owns the specified file.
Click to see example
$ pacman -Qo /usr/include/SDL2/SDL.h
/usr/include/SDL2/SDL.h is owned by sdl2 2.0.14-1 -
pacman -Qe
Outputs the explicitly installed packages.
Click to see example
$ pacman -Qe
acpi 1.7-3
acpid 2.0.32-2
alsa-firmware 1.2.4-2
alsa-utils 1.2.4-2
android-tools 30.0.5-1
android-udev 20201003-1
apparmor 3.0.1-1
appimagelauncher 2.2.0-4
ark 20.12.2-1
autoconf 2.71-1
... -
pacman -Qm
Outputs the foreign packages such as those installed from AUR (Arch User Repo)
Click to see example
$ pacman -Qm
plex-media-player 2.58.0-4
ttf-ms-fonts 2.0-12
-
pacman -Qdt
Outputs the orphan packages (packages that were installed as dependencies but are no longer needed)
Click to see example
$ pacman -Qdt
go 2:1.48.0-2
-
pacman -Qs <regexp>
Searches for packages using a regular expression in the local repo.
Click to see example
$ pacman -Qs clip
local/xclip 0.13-3
Command line interface to the X11 clipboard
-
pacman -S <package name>
Installs the specified package from official repos.
Click to see example
$ sudo pacman -S xclip
[sudo] password for username: resolving dependencies... looking for conflicting packages...Packages (1) xclip-0.13-3
Total Installed Size: 0.03 MiB Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n]
-
pacman -Ss <regexp>
Searches for packages using a regular expression in the local repo.
Click to see example
$ pacman -Ss clip
extra/eclipse-ecj 4.6.3-2
Eclipse java bytecode compiler
extra/gpaste 3.38.5-1
Clipboard management system
extra/xclip 0.13-3 [installed]
Command line interface to the X11 clipboard
extra/xfce4-clipman-plugin 1.6.1-1 (xfce4-goodies)
A clipboard plugin for the Xfce4 panel
extra/xorg-xclipboard 1.1.3-3
X clipboard manager
-
pacman -Syu
Refresh sync databases and upgrade packages.
Click to see example
$ sudo pacman -Syu
[sudo] password for username:
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
:: Starting full system upgrade...
there is nothing to do
-
pacman -Si <package name>
Outputs verbose information about the found package in the official repos.
Click to see example
$ pacman -Si xclip
Repository : extra
Name : xclip
Version : 0.13-3
Description : Command line interface to the X11 clipboard
Architecture : x86_64
URL : https://github.com/astrand/xclip
Licenses : GPL
Groups : None
Provides : None
Depends On : libxmu
Optional Deps : None
Conflicts With : None
Replaces : None
Download Size : 14.98 KiB
Installed Size : 34.39 KiB
Packager : Felix Yan
Build Date : Sat 16 May 2020 03:56:14 PM UTC
Validated By : MD5 Sum SHA-256 Sum Signature
-
pacman -Sg <group name>
Lists all the packages that are in a group.
Click to see example
$ pacman -Sg base-devel
base-devel autoconf
base-devel automake
base-devel binutils
base-devel bison
base-devel fakeroot
base-devel file
base-devel findutils
base-devel flex
base-devel gawk
base-devel gcc
base-devel gettext
base-devel grep
base-devel groff
base-devel gzip
base-devel libtool
base-devel m4
base-devel make
base-devel pacman
base-devel patch
base-devel pkgconf
base-devel sed
base-devel sudo
base-devel texinfo
base-devel which
-
pacman -Sw <package name>
Downloads a package from the official repos.
Click to see example
$ sudo pacman -Sw xclip
[sudo] password for username:resolving dependencies...
Packages (1) xclip-0.13-3
Total Download Size: 0.00 MiB
:: Proceed with download? [Y/n]
-
pacman -Sc
Removes packages from local cache.
Click to see example
$ sudo pacman -Sc
[sudo] password for username:
Packages to keep:
All locally installed packages
Cache directory: /var/cache/pacman/pkg/
:: Do you want to remove all other packages from cache? [Y/n]
-
pacman -R <package name>
Removes/Uninstalls the specified package.
Click to see example
$ sudo pacman -R plex-media-player
[sudo] password for username:
checking dependencies...Packages (1) plex-media-player-2.58.0-4
Total Removed Size: 33.42 MiB
:: Do you want to remove these packages? [Y/n]
-
pacman -Rs <package name>
Removes/Uninstalls the specified package along with it's dependencies which are not required by other packages.
Click to see example
$ sudo pacman -Rs plex-media-player
[sudo] password for username:
checking dependencies...Packages (8) libcec-6.0.2-1 mpv-1:0.33.0-4 mujs-1.0.9-1 p8-platform-2.1.0.1-4 rubberband-1.9-1 uchardet-0.0.7-1 vamp-plugin-sdk-2.10.0-1 plex-media-player-2.58.0-4
Total Removed Size: 42.56 MiB
:: Do you want to remove these packages? [Y/n]
-
pacman -U <file name>
Adds a file package to the database and installs it.
Click to see example
$ sudo pacman -U teamviewer-15.14.5-1-x86_64.pkg.tar.zst
[sudo] password for username:
loading packages...
resolving dependencies...
looking for conflicting packages...
Packages (1) teamviewer-15.14.5-1
Total Installed Size: 68.97 MiB
:: Proceed with installation? [Y/n]