Posted: . At: 11:45 AM. This was 5 years ago. Post ID: 12947
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


How to update package repositories on Arch Linux easily.


Updating Arch Linux does not need to be hard. I am using Arch labs and it is easy to update and configure.

To update package repositories on Arch Linux, use this command.

pacman -Syu

List all packages that are no longer required on the system.

pacman -Qdt

Download a package to your Arch Linux system without installing it.

pacman -Sw

Create a list of all installed packages on your system.

pacman -Qqe > pkglist.txt

Install all packages from a previously created list.

pacman -S --needed $(comm -12 <(pacman -Slq | sort) <(sort pkglist.txt))

Install packages from a local repository on a CD or DVD disk.

https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks#Installing_packages_from_a_CD/DVD_or_USB_stick.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.