Linux Essentials: The pacman command

From Wiki
Revision as of 09:51, 16 February 2021 by Jay (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


In this episode of the Linux Essentials series, we look at the pacman command.

Relevant Links
Original Video
Pacman mirrorlist Generator

Commands Used in this Video

Search for a package

pacman -Ss <search-term>

Install a package

pacman -S <package>

Remove a package

pacman -R <package>

Update installed packages

pacman -Syu

View contents of the mirrorlist file

cat /etc/pacman.d/mirrorlist

Backup current mirrorlist file

cd /etc/pacman.d
sudo cp mirrorlist mirrorlist.bak

Empty current mirrorlist file (use with care)

sudo truncate -s 0 /etc/pacman.d/mirrorlist

Update repository index (after updating mirrorlist file)

sudo pacman -Syyy