About pacman.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 28 Nov 2022 01:04:47 +0200
changeset 2541 c41a01871780
parent 2540 d699ee7377a4
child 2542 79885bc317d2
About pacman.
pacman.rst
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pacman.rst	Mon Nov 28 01:04:47 2022 +0200
@@ -0,0 +1,98 @@
+
+========================
+ pacman package manager
+========================
+.. contents::
+   :local:
+
+Documentation
+=============
+
+https://wiki.archlinux.org/title/Pacman
+  Arch wiki.
+https://wiki.archlinux.org/title/Pacman/Tips_and_tricks
+  Tips & tricks.
+https://www.msys2.org/docs/package-management/
+  MSYS2 / Mingw64 package management with pacman.
+
+Package management
+==================
+
+List installed packages::
+
+  pacman -Q
+
+Info about a package::
+
+  pacman -Qi $NAME
+
+Finding dependencies of a package::
+
+  pactree $PKG
+
+Install a package::
+
+  $ pacman -Ss $NAME
+
+Update system::
+
+  pacman -Syy
+
+Upgrade system::
+
+  pacman -Syu
+
+Remove a package::
+
+  pacman -R $NAME
+
+Remove a package with unused dependencies::
+
+  pacman -Rs $NAME
+
+Remove a package with all dependencies::
+
+  pacman -Rcns $NAME
+
+Download a package::
+
+  pacman -Sw $PKG
+
+Install a package from a file::
+
+   pacman -U $PKG.zst
+   pacman -U $PKG.tar.xz
+
+Search for a package
+====================
+
+By name among remote available packages::
+
+  pacman -Ss $REGEX
+
+Among already installed::
+
+  pacman -Qs $NAME
+
+To search for a package by a file name among installed packages::
+
+  pacman -Qo $FULL_PATH
+
+To search for a package by a file name in remote packages::
+
+  pacman -F $NAME
+
+To weaken search for packages with a given subscring in a file name::
+
+  pacman -Fx $NAME
+
+To update file name package database::
+
+  pacman -Fy
+
+To list files from a remote package::
+
+  pacman -Fl $PKG
+
+
+