Arch Linux, first released by Judd Vinet in 2002, favors simplicity in the sense of few layers and few assumptions. You get a small base system and decide what to add. It expects you to read documentation.
Rolling release
Arch has no version numbers to upgrade between. New package versions arrive continuously, and one command brings the system up to date:
$ sudo pacman -Syu
:: Synchronizing package databases...
:: Starting full system upgrade...
there is nothing to do-S is sync, y refreshes the package databases and u upgrades installed packages. Check the news on archlinux.org before big updates, because some need manual steps.
Everyday pacman
$ sudo pacman -S htop
$ pacman -Ss htop
$ pacman -Qi htop
$ sudo pacman -Rs htopThese install, search the repositories, show information about an installed package, and remove it along with dependencies nothing else needs.
Avoid partial upgrades. Running pacman -Sy htop refreshes the databases and installs one package without upgrading the rest, which can break library dependencies. Arch does not support this. Use pacman -Syu.
The AUR
The Arch User Repository holds build scripts, called PKGBUILD files, contributed by users. It is not part of the official repositories and its contents are not vetted the same way. Read a PKGBUILD before building it.
$ git clone https://aur.archlinux.org/package-name.git
$ cd package-name
$ less PKGBUILD
$ makepkg -siReplace package-name with a real one. You need the base-devel package and git, and you run makepkg as a normal user, not root. -s installs missing dependencies from the repositories and -i installs the result.
Installing and learning
You can follow the manual Installation Guide, or run the archinstall script included on the installation image. The ArchWiki is detailed and often useful even on other distributions, though commands and paths may differ.
Official Arch targets x86_64. Other architectures come from separate projects.
Try it
In a virtual machine, install Arch, then run sudo pacman -Syu and pacman -Qi bash. List the files of a package with pacman -Ql bash. If paths like /usr/bin and /etc are new to you, work through the packages and disk lab.
Check your understanding
Arch Linux
All 4 sections ยท no timer
Unlimited retries
Questions from every section are combined into one assessment. Answer them all correctly to complete the article.
Your completion saves in this browser. Sign in to sync it to your account.