Linux Crash Course: The pacman command

YouTube player

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

Check out the Shop!

Support Linux Learning and get yourself some cool Linux swag!


Support LearnLinuxTV and receive 5% off an LPI exam voucher!