Micro logs #1: Dry run with pacman package manager

Insane LogsInsane Logs
1 min read

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 website): https://blog.insanelogs.xyz/posts/micro-logs-1-dry-run-with-pacman-package-manager/

0
Subscribe to my newsletter

Read articles from Insane Logs directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Insane Logs
Insane Logs

Hi, I am Insane. Insanelogs - Log of insane Main website: https://www.insanelogs.xyz Blog website: https://blog.insanelogs.xyz My objective with InsaneLogs is to share knowledge and quick tutorials across different domains of computer science that I learn every day — in a simple and easy-to-understand manner. The goal is to help you get started with a topic quickly, and then dive deeper on your own. I believe it’s always better to have something working or functional first, before reading a ton of theory about it!