ArchLinux Cheatsheet

Getting help / Accessing the manual

  # help
usage:  pacman  […]
 operations:
     pacman {-h --help}
     pacman {-V --version}
     pacman {-D --database}  
     pacman {-F --files}    [options] [package(s)]
     pacman {-Q --query}    [options] [package(s)]
     pacman {-R --remove}   [options] 
     pacman {-S --sync}     [options] [package(s)]
     pacman {-T --deptest}  [options] [package(s)]
     pacman {-U --upgrade}  [options] 

Syntax:  # <command> -h

Example: # pacman -h
         # pacman -S -h
         # pacman -S -h

pacman / yaourt

update system
 # pacman -Syu
search packages
 # pacman -Ss 
install packages
 # pacman -S 
list installed packages
 # pacman -Q
search installed packages
 # pacman -Qs 
clean old packages in cache
 # pacman -Sc
list packages no longer required by others
 # pacman -Qdtq
remove package, its dependencies and config file backups
 syntax: # pacman {-R --remove} [options] 
 # pacman -Rns 

systemd

start/stop a service
 # systemctl (start|stop) 
list running units
 $ systemctl
check status
 $ systemctl status 
reload systemd
 # systemctl daemon-reload
enable/disable a service at bootup
 # systemctl (enable|disable) 

Manual AUR packages install

update repositories
 # pacman -Sy
build and install
 $ makepkg -si
change into package directory
 $ cd <package>
grab the package
 $ curl -O <https://aur.source.dom/dir-sub/file.tar.gz)
untar package
 $ tar xzvf 

Create Arch Linux boot media

1 Find the USB media (Boot-media)
  $ sudo fdisk -l
2 Format the USB media
  $ sudo pacman -S dosfstools
  $ sudo umount /dev/sdd  !UNmount before format
  $ sudo mkfs.vfat /dev/sdd  !format media
3 Write the .iso image
  syntax: $ sudo dd bs=4M if=input.iso of=pathToBOOTmedia
  example: $ sudo dd bs=4M if=/root/media/archlinux-2021.03.01-x86_64.iso of=/dev/sdd
4 Finalize
  $ sync

troublehsoot

could not satisfy dependencies:installing perl (5.32.1-1) breaks dependency 'perl<5.31' required by perl-gtk2-unique

fix: pacman -Rdd perl-gtk2-unique && pacman -Syu

Arch Linux URL’s

* pacman/Tips and tricks
* Arch install guide
* download ISO