Micro logs #1: Dry run with pacman package manager

Dry run pacman commands text featured image

Dry run with pacman package manager

Source : https://wiki.archlinux.org/title/Pacman
pacman : 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

Pacman -Rs command usage


2. -p works and shows in a list format the final packages which will be removed

pacman with -p flag and works well

3. -p doesn’t work when used with -n flag

pacman command with -p flag and works well

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *