Ihar Hancharenka 5dff80e88e first
2023-03-27 16:52:17 +03:00

67 строки
1.5 KiB
Plaintext
Исходник Ответственный История

Этот файл содержит неоднозначные символы Юникода

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Query a SYNC package DB:
pacman -S --help
pacman -S <package>
install package (docky)
pacman -Ss <search-str>
search all the package by string
pacman -Sg <grp-str>
list all the package groups, or packages which belong to <grp-str>
pacman -Syu [package]
y --refresh - download and refresh sync database
u --sysupgrade - upgrade all the outdated
i.e: pacman -Syu fontconfig
Query local package DB:
pacman -Q --help
-q
quiet
pacman -Qs <package>
search locally installed package for names or descriptions
if <package> is absent - list all the installed packages
pacman -Qo /path/to/file_name
which package a file belongs to
pacman -Qi <package> <package>
extensive info about the installed package
pacman -Ql <package>
list all the files of package
pacman -Qn
list all the native (sync database) packages
pacman -Qe
list all the explicitly-installed packages
pacman -Qm
-Qmdq
list all the foreign packages
pacman -Qqem
list all the installed + foreign packages (from AUR)
Remove packages:
pacman -R --help
pacman -Rns <package>
remove with config files [and dependencies]
options
--noconfirm
Bypass any and all “Are you sure?” messages. Its not a good idea to do this unless you want to run pacman from a script.
upgrade options (-S, -U)
--needed
Do not reinstall the targets that are already up-to-date.
sample
sudo pacman -S --needed --noconfirm expac yay
yay -S --rebuildtree $(pacman -Qmq $(expac %N python))