Skip to content

Arch linux

October 16, 2023
December 8, 2014

Arch Linux - Wikiwand
Arch Linux Wiki
Community Wiki | Antergos
Arch Linux ARM

Arch Linux - ArchWiki The Arch Way
The Arch Way | The Arch Action Show! - YouTube
The Arch Way - YouTube DistroTube
greg-js/arch-wiki-man: Search a local, updated copy of the entire Arch Wiki and open the article in man
The Arch Linux Handbook

ALFA: https://haavard.me/files/alfa.pdf Arch Linux Fuck-up Assessment Form

Beginners' guide - ArchWiki
System maintenance - ArchWiki
[Arch Linux Survival Guide] : LinuxActionShow
Arch Linux guide: the always up-to-date Arch Linux tutorial | Linux Veda
Why I always recommend Arch Linux
5 Ways to Make Arch Linux More Stable - Make Tech Easier
Arch Linux for Devs
Traveling through the Arch — Vol. 2
Traveling through the Arch — Vol. 3
Traveling through the Arch — Vol. 4

Going to try Arch Linux. Any advice? : linux
Arch compared to other distributions - ArchWiki
arch-announce Info Page

Arch Distros

DistroWatch.com: based on Arch
Top 9 User-friendly Arch-Based Linux Distributions [2020]

EndeavourOS – A terminal-centric distro with a dynamic and friendly community in its core any DE, close to Arch, less UI apps, focus on community, successor of Antergos
DE: Xfce, LXQt, MATE, i3-wm, GNOME 3, Plasma, Cinnamon, Budgie, Deepin
Garuda Linux | Home
Eagle themed distro focuses on performance, BTRFS by default
DE: GNOME, Xfce, Cinnamon, MATE, LXQt-kwin, Deepin, Wayfire, BSPWM and i3wm.
Reborn OS – Made for You – Made by You any DE, supports RPi
DE: KDE, GNOME, Cinnamon, Mate, Deepin, Apricity, Budgie, OpenBox, i3, Xfce, Enlightenment, Openbox or LXQT
Manjaro Linux iso torrent uses own repo, quirky
DE (official): Xfce, GNOME, KDE, CLI
DE (community): LXQt, LXDE, Openbox, Cinnamon, MATE, Enlightenment, Budgie, Deepin
ChimeraOS Gaming OS
ArchBang iso
DE: Openbox
SwagArch GNU/Linux | A simple and beautiful Everyday Arch Desktop
DE: Xfce
Archman GNU / Linux – Support Platform for Arch Linux-based distributions – Manjaro, Antergos, Apricity …
DE: i3-wm
DE (community): gnome, mate, lxqt
Namib GNU/Linux Arch + any DE, fork of Manjaro?
DE: Budgie, Cinnamon, GNOME, KDE, MATE, Xfce

ArcoLinux.info | Linux Made Easy and Beautiful
Arcolinux.com | Linux Made Easy and Beautiful focus more on teaching you how to install Arch
DE: Xfce, Openbox, i3 (ArcoLinux); varies (ArcoLinuxD/ArcoLinuxB)

ParabolaWiki GNU only

Liri Arch + Qt + Wayland + Hawaii + Papyros
not active
Antergos Linux discontinued
DE: GNOME 3, KDE, Cinnamon, Xfce, Openbox, LXQt, MATE, CLI
remove antergos block form /etc/pacman.conf

ArcoLinux

arcolinux
arcolinuxd

ArcoLinux in a nutshell | ArcoLinux.info

Erik Dubois - YouTube
ArcoLinuxD - YouTube
ArcoLinux : 523 ArcoLinux the what, who, where, want, why, when, way and how - YouTube
ArcoLinux : 431 what is ArcoLinux and what is Arch Linux - difference - YouTube

1 – Installation of ArcoLinuxD Cinnamon | Arcolinuxd.com

Manjaro NET-Edition

This provides a minimal install of Manjaro Arch, boots to terminal only.
Install graphic driver and DE yourself.

Installation Guide for the NET Edition 0.8.10 - Manjaro Linux
Installation Guide for Experienced Users 0.8.2 - Manjaro Linux
UEFI - Install Guide - Manjaro Linux

# [Configure Graphics Cards - Manjaro Linux](https://wiki.manjaro.org/index.php?title=Configure_Graphics_Cards)
sudo mhwd -a pci nonfree 0300

# [Install Desktop Environments - Manjaro Linux](https://wiki.manjaro.org/index.php?title=Install_Desktop_Environments)
sudo pacman -S cinnamon
sudo pacman -S gnome-terminal

### Antergos

Antergos LiveCD boots into GNOME3 and comes with a Cnchi graphical installer.
It is better to update Cnchi (pacman -Syu cnchi) before installation.
The good (may be bad for you) things about Antergos are:

  1. it does not install LibreOffice by default
  2. it downloads the latest packages from network during install (but the install is slower)

ArchBang

ArchBang kick-start you with OpenBox WM.

Announcements page

ArchBang Brings Arch Linux's Greatest Features to Your PC Without the Stressful Installation

Installation

Installation guide - ArchWiki

Installing Arch Linux (Standard Procedure) - YouTube 2015-10
Full Arch Linux Install (SAVAGE Edition!) - YouTube 2018-03
How to install Arch Linux with the Guided Installer - Jeremy Morgan's Tech Blog 2021-09

picodotdev/alis: Arch Linux Install Script (alis) installs unattended, automated and customized Arch Linux system.
slayerizer/arch_installer: script to install arch linux very quickly
MatMoul/archfi: Arch Linux Fast Installer : tutorial installer
helmuthdu/aui: Archlinux Ultimate Install
ChrisTitusTech/ArchTitus: Automated Arch Linux Install

Anarchy Installer
ArchLabs Linux – Inspired by BunsenLabs. Powered by Arch Linux.
ArchLabs Review: A Quick Look At The Rising Arch Based Linux Distribution - It's FOSS

Zen Installer download | SourceForge.net
spookykidmm/zen_installer: Graphical installer for Arch Linux

Architect Installer for Arch Linux
Installation with Manjaro Architect - Manjaro Linux

Arch Linux Challenge: Tips & Tricks
Arch Linux OS Challenge: Install Arch 'The Easy Way' With These 2 Alternative Methods
picodotdev/alis: Arch Linux Install Script (alis) installs unattended, automated and customized Arch Linux system.
Zen Installer download | SourceForge.net

Arch Linux Tutorial [updated April 2015] | Linux Veda
Arch Linux 2014.05.01 Released - Installation and Configuration Guide with Screenshots
How To Install Arch Linux
Arch Linux Installation and Configuration on UEFI Machines
Build a Killer Customized Arch Linux Installation (and Learn All About Linux in the Process)
Installing GUI (Cinnamon Desktop) and Basic Softwares in Arch Linux
Setting up my Arch-Linux-based production environment: II

Security

Security - ArchWiki
[Solved] How to configure 3 bad login attempts 10min lockout? / Applications & Desktop Environments / Arch Linux Forums

Troubleshooting

"Failed to set default locale"

sudo vi /etc/locale.gen
# enable "en_US.UTF8    UTF-8"
sudo locale-gen

/ space used up

sudo du -hs /var/*
sudo baobab /
  1. clean pacman/yay cache

    # remove all cache !!CAUTION!!
    sudo pacman -Sc
    yay -Sc  # clean yay cache`
  2. clean journal

    journalctl --disk-usage
    sudo journalctl --vacuum-size=500M

    systemd not cleaning up old journal entries | two minutes hate

  3. clean coredump

    sudo rm -rf /var/lib/systemd/coredump/*
  4. use smallfiles for MongoDB
    linux - Is it safe to delete the journal file of mongodb? - Stack Overflow

/home space used up

future key (Manjaro issue)

I encountered a PGP key error complaining my local key is created in the future in a Manjaro installation.

sudo pacman-key --refresh-keys
# verify PGP key
sudo pacman-key --refresh

# backup invalid key
sudo mv /etc/pacman.d/gnupg/ /etc/pacman.d/gnupgold

# delete backup
sudo rm -rf /etc/pacman.d/gnupgold

dirmngr (Manjaro issue)

If GPG reports gpg: keyserver refresh failed: No dirmngr:

sudo rm -rf ~/.gnupg /root/.gnupg
dirmngr --debug-level guru  # then breaks
sudo su
dirmngr --debug-level guru  # then breaks
# touch dirmngr_ldapservers.conf if needed
sudo pacman-key --refresh

# this is also suggested
sudo -i dirmngr < /dev/null

emergency mode

You boot into emergency/rescue mode when error occurs during boot.

journalctl -xb to list boot log, look for errors.
dbcpcd (mnemonic: client daemon) to kick off network.
sudo mount -o remount,rw / to make root file system writable.

You may then modify files and use pacman to try fix issues.

systemctrl default/Ctrl+D to start a normal boot.

hardware probing

Hardware Probing Via Command-line | Linux.org
ubuntu - Linux retrieve monitor names - Stack Overflow

partition probing

Block ID is recommended for fstab

sudo blkid
lsblk
ls /dev/disk/by-{id,label,uuid}

Examining partitions on Linux systems | Network World

Package manager

Powerpill - ArchWiki
bauerbill

Jguer/yay: Yet another Yogurt - An AUR Helper written in Go
trizen/trizen: Lightweight AUR Package Manager

pacman

Pacman Home Page
pacman - ArchWiki
pacman/Tips and tricks - ArchWiki
Pacman Overview - Manjaro Linux
Pacman basic commands – Endeavour OS
Getting started with Pacman - OSTechNix
Improve pacman performance - ArchWiki
Pacman troubleshooting - Manjaro Linux

/etc/pacman.conf

Arch Linux - pacman-contrib 1.3.0-1 (x86_64)

Koans

repo source

pacman only installs from official repositories: core, extra, community. But the gem of Arch Linux in the Arch User Repository (AUR). You can find literally any linux apps there. If it is not there, you can create a PKGBUILD and submit to it.

Arch Linux - Package Search
AUR (en) - Packages

Arch Linux - Mirror Overview
Arch Linux - Pacman Mirrorlist Generator
http://repo.manjaro.org

sudo pacman-mirrors -i # or -g

# mirror list is located at
sudo vi /etc/pacman.d/mirrorlist

Arch Linux News

Arch Linux - News

AUR (en) - informant

Arch Linux - pacmatic 20150126-2 (any)
Pacmatic: Get emails about pending system updates with cron-pacmatic

Just use pacmatic instead of pacman.

Installing old version of package

Arch Linux Archive - ArchWiki
Index of /packages/
Arch Linux Historical Archive : Free Software : Free Download, Borrow and Streaming : Internet Archive

pacman -U oldpackage.pkg.tar.zst

Then add the package to IgnorePkg line in /etc/pacman.conf

package key management

pacman/Package signing - ArchWiki

# this init `~/.gpg`
gpg --list-keys
# add key
gpg --recv-keys 1D1F0DC78F173680
gpg --keyserver pool.sks-keyservers.net --recv-keys 931FF8E79F0876134EDDBDCCA87FF9DF48BF1C90

pacman-key is a wrapper around gpg

# if antergos-keyring reports unknown trust
sudo pacman -Sy archlinux-keyring && sudo pacman -Su

# change key server
# keyserver hkp://keyserver.ubuntu.com
# keyserver hkps://hkps.pool.sks-keyservers.net:443

sudo pacman-key --populate archlinux
sudo pacman-key --refresh-keys

# install a specific key
sudo pacman-key -r 1D1F0DC78F173680
sudo pacman-key -r 9D893EC4DAAF9129
# backup invalid key
sudo mv /etc/pacman.d/gnupg/ /etc/pacman.d/gnupgold

# this takes some while
sudo pacman-key --init
sudo pacman-key --populate archlinux manjaro
sudo pacman-key --refresh

# delete backup
sudo rm -rf /etc/pacman.d/gnupgold

Add pacman's key to ~/.gnupg/gpg.conf:

keyring /etc/pacman.d/gnupg/pubring.gpg

or add key automatically:

keyserver-options auto-key-retrieve

sync database (-S -y|--refresh)

# sync the database
pacman -Sy
# force sync the database
pacman -Syy

# optimze after update
pacman-optimize && sync

updating (-S -u|--sysupgrade)

# check packages that can be updated
checkupdates

# check arch news
pacmatic
# update packages
pacman -Su
# sync and update
pacman -Syu

# overwrite files
pacman -Syu --overwrite <files>

installing (-S|--sync)

pacman -S package_name
# fix broken package
pacman -Syu package_name
pacman -S testing/package_name
pacman -S group_name
# local package
pacman -U /package_path/package_name.pkg.tar.xz
pacman -U /package_path/package_name.pkg.tar.zst
pacman -Ss package_name/package_regex
# name only
pacman -Ssq package_name/package_regex
# package info
pacman -Si package_name
pacman -Sii package_name
# resolve group
pacman -Sg group_name

clean cache (-S -c|--clean)

sudo pacman -Scc
# pacman only keeps install version so it is not possible to rollback

remove (-R|--remove)

pacman -R package_name
# also remove unneeded dependencies
pacman -Rs package_name
# remove orphaned packages
pacman -Rsn $(pacman -Qdtq)

query installed (-Q|--query)

# query installed packages, with version
pacman -Q
# backup installed packages
pacman -Q > arch-installed
# use `yay -Ss` to show package info
pacman -Qq | xargs -I@ yay -Ss ^@$
# query manual installs, use `pac-info` to show package info
pacman -Qeq | xargs -n1 pac-info
# search installed packages
pacman -Qs <query>
# query files in packages
pacman -Ql package_name
# query broken packages
pacman -Qkk [package_name]
# query package that installed the file
pacman -Qo <file path>
# query orphaned packages
# https://wiki.manjaro.org/index.php?title=Orphan_Package_Removal
pacman -Qdt
# query packages installed from sync db
pacman -Qen
# query explicitly installed (and not as dependency)
pacman -Qet
# query packages installed from AUR
pacman -Qem

tools

# tree view of dependencies
pactree -c package_name

# show reverse dependencies
pactree -cru package_name
# wrapper, requires `pkgtools`
whoneeds package_name

using AUR

Arch User Repository - ArchWiki
AUR helpers - ArchWiki
[SOLVED] Should I install programs using pacman or packer? (Page 1) / Pacman/Packages / ArchBang Forums
Speed Up Compilation Process When Installing Packages From AUR

Don't Install Yaourt! Use These Alternatives for AUR in Arch Linux
ericm/yup: Arch Linux AUR Helper with ncurses functionality and better searching and sorting

yay

Jguer/yay: Yet another Yogurt - An AUR Helper written in Go yay-bin in AUR
Yay - Yet Another Reliable AUR Helper Written In GO - OSTechNix

cd /tmp && git clone 'https://aur.archlinux.org/yay.git' && cd /tmp/yay && makepkg -si && cd ~ && rm -rf /tmp/yay/

Make sure you have the Color option in your /etc/pacman.conf

# system update
yay

# force install from AUR
yay -S --aur package_name
# `-G` download the package and allows you to edit `PKGBUILD`
yay -G yay
sudo pacman -R yay
sudo pacman -Syu
cd yay && makepkg -si
yay

pacaur

E5ten/pacaur: An AUR helper that minimizes user interaction
How to Install and Use Pacaur on Arch Linux
How To Install Pacaur In Arch Linux - OSTechNix

yaourt

obsolete

Yaourt - ArchWiki
yaourt: a pacman frontend « Archlinux.fr
AUR (en) - yaourt
How To Use Yaourt to Easily Download Arch Linux Community Packages | DigitalOcean

Yaourt uses AUR automatically.

# update packages from official repo and AUR
yaourt -Syua

~/.yaourtrc:

#! .rcfile for yaourt
# http://archlinux.fr/man/yaourtrc.5.html

## PROMPT OPTIONS
SUDONOVERIF=1
EDITFILES=0
BUILD_NOCONFIRM=1

## COMMAND OPTIONS
PACMAN="pacmatic"
DIFFEDITCMD="meld"

packer

obsolete

Install Packer on Arch Linux | DominicMDominicM
Packer and the Arch User Repository | Rory Garand

Same command as pacman, but also checks AUR.

creating package

Arch Linux 的靈魂:PKGBUILD、AUR 和 ABS | Tyrant's Arch Linux
Arch Build System - ArchWiki
Arch packaging standards - ArchWiki
PKGBUILD - ArchWiki
makepkg - ArchWiki

Creating An Arch PKGBUILD: A Step By Step Guide - YouTube
Arch Linux: Let's Get A New Package Onto The AUR - YouTube

Creating Packages For The Arch User Repository (AUR) - YouTube
Creating Packages For Arch Linux With Help From Bigpod - YouTube

How To Convert DEB Packages Into Arch Linux Packages - OSTechNix
AUR (en) - sunloginclient

makepkg  # loads `PKGBUILD`
sudo pacman -U package.pkg.tar

makepkg -si # install dependencies and install after packaging