Info

Some initial setup also applies to ArchLinux,

Go to Initial Setup to see them.

Note

There are some commonly used software packages:

Go to Useful packages to see them.

Pacman commands

# Remove unused dependencies
sudo pacman -Rs $(sudo pacman -Qtdq)
paru -Rs $(sudo pacman -Qtdq)
 
# Remove <packages/dependence packages>
sudo pacman -Rs <packagename>
paru -Rs <packagename>
 
# Remove <packages/dependences/config files> (Purge Packages)
sudo pacman -Rsn <packagename>
paru -Rsn <packagename>

Debtap

Debtap can convert .deb packages to Arch Linux packages (tar.zst)

# Install
paru -S debtap
 
# Update debtap database
sudo debtap -u
 
# Convert .deb packages
debtap <package-name>.deb
 
# Install converted packages by pacman
sudo pacman -U <package-name>.tar.zst

Add ArchLinux CN Repository

vim /etc/pacman.conf
-----
[archlinuxcn]  
Server = https://mirrors.bfsu.edu.cn/archlinuxcn/$arch
-----
 
# Trust farseerfc's key manually
## https://arch.icekylin.online/guide/rookie/desktop-env-and-app.html#_6-%E5%AE%89%E8%A3%85%E5%9F%BA%E7%A1%80%E5%8A%9F%E8%83%BD%E5%8C%85
sudo pacman-key --lsign farseerfc@archlinux.org
 
# Install archlinuxcn-keyring
sudo pacman -S archlinuxcn-keyring

Pacman config

vim /etc/pacman.conf
-----
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup  
IgnorePkg   = proxmox-backup-client  
#IgnoreGroup =
...
# Misc options
#UseSyslog
Color
#NoProgressBar
CheckSpace
#VerbosePkgLists
ParallelDownloads = 5
-----

Paru configs

vim /etc/paru.conf
-----
...
BottomUp
SkipReview
-----

Makepkg configs

vim /etc/makepkg.conf
-----
MAKEFLAGS="-j8"
-----

Store Git passwords in the KDE wallet

paru -S kwalletmanager
git config --global core.askpass /usr/bin/ksshaskpass

Disable Btrfs Quota

sudo btrfs quota disable /

Balance btrfs filesystem metadata

# suling @ archlinux in ~ [20:39:53]
$ btrfs filesystem df /
Data, single: total=58.00GiB, used=56.73GiB
System, DUP: total=32.00MiB, used=16.00KiB
Metadata, DUP: total=54.00GiB, used=1.15GiB
GlobalReserve, single: total=109.53MiB, used=0.00B
 
# suling @ archlinux in ~ [20:39:53]
$ sudo btrfs balance start -v -musage=0 /
Dumping filters: flags 0x6, state 0x0, force is off
  METADATA (flags 0x2): balancing, usage=0
  SYSTEM (flags 0x2): balancing, usage=0
Done, had to relocate 50 out of 104 chunks
 
# suling @ archlinux in ~ [20:41:38]
$ btrfs filesystem df /
Data, single: total=49.00GiB, used=29.50GiB
System, DUP: total=32.00MiB, used=16.00KiB
Metadata, DUP: total=4.00GiB, used=1.06GiB
GlobalReserve, single: total=109.53MiB, used=0.00B