mirror of https://github.com/cheat/cheat.git
Added pacman (archlinux PACkage MANager) cheatsheet
This commit is contained in:
parent
2a9220bb6d
commit
221c1ce190
|
@ -0,0 +1,32 @@
|
||||||
|
# All the following command work as well with multiple package names
|
||||||
|
|
||||||
|
# To search for a package
|
||||||
|
pacman -Ss <package name>
|
||||||
|
|
||||||
|
# To update the local package base and upgrade all out of date packages
|
||||||
|
pacman -Suy
|
||||||
|
|
||||||
|
# To install a package
|
||||||
|
pacman -S <package name>
|
||||||
|
|
||||||
|
# To uninstall a package
|
||||||
|
pacman -R <package name>
|
||||||
|
|
||||||
|
# To uninstall a package and his depedencies, removing all new orphans
|
||||||
|
pacman -Rcs <package name>
|
||||||
|
|
||||||
|
# To get informations about a package
|
||||||
|
pacman -Si <package name>
|
||||||
|
|
||||||
|
# To install a package from builded package file (.tar.xz)
|
||||||
|
pacman -U <file name/file url>
|
||||||
|
|
||||||
|
# To list the commands provided by an installed package
|
||||||
|
pacman -Ql nvidia-utils | sed -n -e 's/.*\/bin\///p' | tail -n +2
|
||||||
|
|
||||||
|
# To list explicitly installed packages
|
||||||
|
pacman -Qe
|
||||||
|
|
||||||
|
# To list orphan packages (installed as dependencies and not required anymore)
|
||||||
|
pacman -Qdt
|
||||||
|
|
Loading…
Reference in New Issue