DEV Community

Cover image for Micro logs #1: Dry run with pacman package manager
Insane Logs
Insane Logs

Posted on • Edited on • Originally published at insanelogs.xyz

Micro logs #1: Dry run with pacman package manager

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

Source (my blog): https://insanelogs.xyz/posts/micro-logs-1-dry-run-with-pacman-package-manager/

Top comments (0)