Dry run with pacman package manager
Source
: https://wiki.archlinux.org/title/Pacmanpacman
: Package manager for Arch Linux
-p
flag can be used with pacman to dry run commands — that is, see what your command is going to do before it actually does anything.
Might not work with certain flag combinations like -n
, and it will simply throw an error.
Optional explanation with simple examples.pacman -Rs
: To remove a package and its dependencies which are not required by any other installed package.
1. Normal Behavior
2. -p works and shows in a list format the final packages which will be removed
3. -p doesn’t work when used with -n flag
Leave a Reply