Tag Archive : arch linux

/ arch linux

Arch Linux ARM is a Linux operating system distribution for ARM architecture. This distribution is one of recommended OS for Raspberry Pi board.

By default, Arch Linux ARM has a global repositories. On some point, the repository can redirect your pacman to appropriate (other) repository based on your location. But sometimes, it’s not enough.

In this article, we will discuss about how to change ArchLinux ARM repository manually.


Make sure your Pi has Arch Linux ARM inside. You should also make sure your Pi can connect to internet.

You need to acquire root privileges. We need root privileges to edit pacman configuration file.


First see the /etc/pacman.d/mirrorlist and search location closest to you. If you see a preferrable repository, you can start edit this file.

Comment out line under “Geo-IP based mirror selection and load balancing”:

# Server = http://mirror.archlinuxarm.org/armv6h/$repo

and uncomment the mirror server you choose, for example I choose Finland:

Server = http://fi.mirror.archlinuxarm.org/armv6h/$repo

If you have another mirror which are not listed there (you have to really sure about it), you can comment out every line and add new line at the bottom. For example, the mirror server is http://archarm.xathrya.web.id, then you write following line:

Server = http://archarm.xathrya.id/armv6h/$repo

Arch Linux Pacage Manager Command List

December 9, 2015 | Article | No Comments

Here is the list of useful commands for pacman. Pacman is a package manager for Arch Linux.

Whether you use x86, amd64, or ARM architecture, the command should remain same.

Update Package List

The repository is consists of many package. To update the package list, we do:

pacman -Syy

Upgrade Packages

This will update all packages on the system.

pacman -Suy

Perform Full Upgrade

This is necessary if some libraries are missing to recompile system properly.

pacman -Syyu

Install New Package

Install specific package.

pacman -S $PACKAGE

where $PACKAGE is the package name you want to install. For example: xorg-server

Install package groups


where $PACKAGE is the package group. For example: gnome.

Remove Package

Remove package, normally.

pacman -R $PACKAGE

where $PACKAGE is the package name you want to remove. This will remove a single package and leaving all of its dependencies installed.

If you want to remove a package and its dependencies which are note required by any other package, do following:

pacman -Rs $PACKAGE

If you want to remove a package, its dependencies, and all of the dependent (packages depend on it)

pacman -Rsc $PACKAGE

Search for Package

Will search the package database on given keyword

pacman -Ss $KEYWORD

where $KEYWORD is the keyword, can be parts of package name, description, etc.

List of Package Installed

List of packages

pacman -Q

List the package installed with given keyword

pacman -Q | grep $KEYWORD

List the packages installed as dependencies but not used anymore.

pacman -Qdt

List the packages installed, and not needed by other packages (not bein depended on)

pacman -Qet

List of files installed with package (content of package)

pacman -Ql $PACKAGE

Social Share Buttons and Icons powered by Ultimatelysocial