Getting Started with Arch Linux 06 - Managing Packages

From Wiki
Jump to navigation Jump to search


In the sixth video of the Arch Linux series, we look more closely at installing packages with pacman.

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