2541
|
1 |
|
|
2 |
========================
|
|
3 |
pacman package manager
|
|
4 |
========================
|
|
5 |
.. contents::
|
|
6 |
:local:
|
|
7 |
|
|
8 |
Documentation
|
|
9 |
=============
|
|
10 |
|
|
11 |
https://wiki.archlinux.org/title/Pacman
|
|
12 |
Arch wiki.
|
|
13 |
https://wiki.archlinux.org/title/Pacman/Tips_and_tricks
|
|
14 |
Tips & tricks.
|
|
15 |
https://www.msys2.org/docs/package-management/
|
|
16 |
MSYS2 / Mingw64 package management with pacman.
|
|
17 |
|
|
18 |
Package management
|
|
19 |
==================
|
|
20 |
|
|
21 |
List installed packages::
|
|
22 |
|
|
23 |
pacman -Q
|
|
24 |
|
|
25 |
Info about a package::
|
|
26 |
|
|
27 |
pacman -Qi $NAME
|
|
28 |
|
|
29 |
Finding dependencies of a package::
|
|
30 |
|
|
31 |
pactree $PKG
|
|
32 |
|
|
33 |
Install a package::
|
|
34 |
|
|
35 |
$ pacman -Ss $NAME
|
|
36 |
|
|
37 |
Update system::
|
|
38 |
|
|
39 |
pacman -Syy
|
|
40 |
|
|
41 |
Upgrade system::
|
|
42 |
|
|
43 |
pacman -Syu
|
|
44 |
|
|
45 |
Remove a package::
|
|
46 |
|
|
47 |
pacman -R $NAME
|
|
48 |
|
|
49 |
Remove a package with unused dependencies::
|
|
50 |
|
|
51 |
pacman -Rs $NAME
|
|
52 |
|
|
53 |
Remove a package with all dependencies::
|
|
54 |
|
|
55 |
pacman -Rcns $NAME
|
|
56 |
|
|
57 |
Download a package::
|
|
58 |
|
|
59 |
pacman -Sw $PKG
|
|
60 |
|
|
61 |
Install a package from a file::
|
|
62 |
|
|
63 |
pacman -U $PKG.zst
|
|
64 |
pacman -U $PKG.tar.xz
|
|
65 |
|
|
66 |
Search for a package
|
|
67 |
====================
|
|
68 |
|
|
69 |
By name among remote available packages::
|
|
70 |
|
|
71 |
pacman -Ss $REGEX
|
|
72 |
|
|
73 |
Among already installed::
|
|
74 |
|
|
75 |
pacman -Qs $NAME
|
|
76 |
|
|
77 |
To search for a package by a file name among installed packages::
|
|
78 |
|
|
79 |
pacman -Qo $FULL_PATH
|
|
80 |
|
|
81 |
To search for a package by a file name in remote packages::
|
|
82 |
|
|
83 |
pacman -F $NAME
|
|
84 |
|
|
85 |
To weaken search for packages with a given subscring in a file name::
|
|
86 |
|
|
87 |
pacman -Fx $NAME
|
|
88 |
|
|
89 |
To update file name package database::
|
|
90 |
|
|
91 |
pacman -Fy
|
|
92 |
|
|
93 |
To list files from a remote package::
|
|
94 |
|
|
95 |
pacman -Fl $PKG
|
|
96 |
|
|
97 |
|
|
98 |
|