Skip to content

Instantly share code, notes, and snippets.

@kapillamba4
Created November 15, 2017 07:57
Show Gist options
  • Save kapillamba4/6822a9cada6a864806590d21bbaf005e to your computer and use it in GitHub Desktop.
Save kapillamba4/6822a9cada6a864806590d21bbaf005e to your computer and use it in GitHub Desktop.
ArchLinux Pacman Cheatsheet

Update package list

sudo pacman -Syy

Update and upgrade all

sudo pacman -Syu

Install specific package

sudo pacman -S pkgname

Find available packages

sudo pacman -Ss keyword

Find available local packages

sudo pacman -Qs keyword

List all files from package

pacman -Ql pkgname

Pacman log file

/var/log/pacman.log

Screen recording

gtk-recordmydesktop

Mount iso file

fuseiso -p testimage.iso testimagemountpoint

To unmount

fusermount -u

To remove a package and its dependencies which are not required by any other installed package

sudo pacman -Rs package_name

List all packages no longer required as dependencies

sudo pacman -Qdt

Get IP address

ip addr

Update and upgrade yaourt packages

yaourt -Syua

Get distro version

lsb_release -a

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