Skip to content

Instantly share code, notes, and snippets.

Last active May 23, 2023 14:46
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Arch Linux Tips & Tricks

Required Packages

sudo pacman -S xdelta3 ccache axel


sudo cp /etc/pacman.conf /etc/pacman.conf.backup
sudo nano /etc/pacman.conf

Search & replace:

XferCommand = /usr/bin/axel -n 2 -v -a -o %o %u
  • Uses axel instead of curl for faster downloads.
UseDelta = 0.75
  • Use Binary Deltas for packages for faster downloads.
# Misc options
  • Use color on the terminal, display download totals, check free space before download.


sudo cp /etc/makepkg.conf /etc/makepkg.conf.backup
sudo nano /etc/makepkg.conf

Search & replace:

DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
          'http::/usr/bin/axel -n 2 -v -a -o %o %u'
          'https::/usr/bin/axel -n 2 -v -a -o %o %u'
          'rsync::/usr/bin/rsync --no-motd -z %u %o'
          'scp::/usr/bin/scp -C %u %o')
  • Uses axel instead of curl for faster downloads.
COMPRESSGZ=(gzip -c -f -n -p)
COMPRESSBZ2=(bzip2 -c -f -p$(nproc))
COMPRESSXZ=(xz -c -z - --threads=$(nproc))
COMPRESSLRZ=(lrzip -q --threads=$(nproc))
  • Uses Multi-Threading for Compression tools for faster installs.
BUILDENV=(!distcc color ccache check !sign)
  • Use ccache for faster installs/compilations.
CFLAGS="-march=native -mtune=native -O2 -pipe -fstack-protector-strong"
CXXFLAGS="-march=native -mtune=native -O2 -pipe -fstack-protector-strong"
  • Make compilers optimize compiled binaries for your CPU for faster executables.


Clean out, Delete old unused rotated Logs, leaving the most recent last one:

sudo journalctl --vacuum-files=1

Disable Logging logs to disk:

sudo nano /etc/systemd/journald.conf

Edit it like:


Delete old packages:

sudo pacman -Scc
  • Delete old Pacman package Caches, you can reply y to all questions.
sudo pacman -R libgo
  • If you installed/compiled a Go lang app, it leaves you a 50~90Mb lib on GCC folders, only used to develop on Go, if you are not a go lang developer you can just delete it.


sudo cp /etc/hosts /etc/hosts.backup
sudo nano /etc/hosts

Add on the bottom:

  • Block Ads, make Spotify dont play/display Ads.

Optional Packages

sudo pacman -S kalu

Skip nvidia upgrades to avoid video breakage

Add to bottom of /etc/pacman.conf:

IgnorePkg = lib32-nvidia-utils libvdpau libxnvctrl nvidia nvidia-dkms nvidia-settings nvidia-utils opencl-nvidia xf86-video-amdgpu

Copy link

sudo service rsyslog stop
sudo service atd stop
sudo service lxcfs stop
sudo service snapd stop
sudo service chronyd stop
sudo service unattended-upgrades stop
sudo service lvm2-lvmetad stop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment