pacman ====== view logs: /var/log/pacman.log update system # pacman -Syu list installed packages # pacman -Q list packages no longer required by others # pacman -Qdtq search installed packages # pacman -Qs search packages # pacman -Ss install packages # pacman -S remove package, its dependencies and config file backups # pacman -Rns clean old packages in cache # pacman -Sc yaourt ====== same as pacman systemd ======= unit files: /usr/lib/systemd/system/ or /etc/systemd/system/ list running units $ systemctl check status $ systemctl status start/stop a service # systemctl (start|stop) enable/disable a service at bootup # systemctl (enable|disable) reload systemd # systemctl daemon-reload manual install of AUR packages ============================== update repositories # pacman -Sy grab the package $ curl -O (e.g. https://aur.archlinux.org/packages/ya/yaourt/yaourt.tar.gz) untar package $ tar xzvf change into package directory $ cd build and install $ makepkg -si java environments ================= check status $ archlinux-java status set default version # archlinux-java set