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

Brand-New Course!

Discount Vouchers

Receive 5% off an LPI exam voucher!

Exclusive Member Features

Support the channel and receive exclusive perks!