Hacker News new | ask | show | jobs
by qubidt 1844 days ago
Mentioned on reddit[1], but, specifically for the pacman/yay example, the command handles more than just removing a package. `pacman -Rn`/`pacman -R --nosave` removes 'backup' files (roughly equivalent to `apt purge`) and `pacman -Rs`/`pacman -R --recursive` removes orphaned dependencies (equivalent, I believe, to `apt remove --autoremove`). Yum doesn't have equivalents for these my default and it's not relevant to package managers like npm. (although pip could certainly use the recursive option)

[1]: https://www.reddit.com/r/programming/comments/nlb2c9/develop...