mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-20 18:44:25 +00:00
Added pacman notes to the knowledge base
This commit is contained in:
39
knowledge base/pacman.md
Normal file
39
knowledge base/pacman.md
Normal file
@@ -0,0 +1,39 @@
|
||||
# Pacman
|
||||
|
||||
Useful options:
|
||||
|
||||
- `--asdeps`
|
||||
- `--asexplicit`
|
||||
- `--needed`
|
||||
- `--unneeded`
|
||||
|
||||
## TL;DR
|
||||
|
||||
```shell
|
||||
|
||||
# search an installed package
|
||||
pacman --query --search ddc
|
||||
|
||||
# list all explicitly installed packages
|
||||
pacman --query --explicit
|
||||
|
||||
# set a package as explicitly (manually) installed
|
||||
pacman --database --asexplicit dkms
|
||||
# set a package as installed as dependency (automatically installed)
|
||||
pacman --database --asdeps autoconf
|
||||
|
||||
# install zsh unsupervisioned (useful in scrips)
|
||||
pacman --noconfirm \
|
||||
--sync --needed --noprogressbar --quiet --refresh \
|
||||
fzf zsh-completions
|
||||
# completely remove virtualbox-guest-utils-nox unsupervisioned (useful in scrips)
|
||||
pacman --noconfirm \
|
||||
--remove --nosave --noprogressbar --quiet --recursive --unneeded \
|
||||
virtualbox-guest-utils-nox
|
||||
```
|
||||
|
||||
## Further readings
|
||||
|
||||
- [Prevent pacman from reinstalling packages that were already installed]
|
||||
|
||||
[Prevent pacman from reinstalling packages that were already installed]: https://superuser.com/questions/568967/prevent-pacman-from-reinstalling-packages-that-were-already-installed#568983
|
||||
Reference in New Issue
Block a user