You are not logged in.
When removing packages along with their dependencies with pacman -Rs, the dependencies are not removed if they are a required dependency of another package. But if they are just an optional dependency of another package, they are also removed. For instance, removing Evince reader also removes dependencies djvulibre, libgxps, libspectre which are optional dependencies to Xreader that provides extra functionality. So, is it possible to remove the dependencies along with a package without removing the dependencies if they are an optional as well as required dependency of another package?
Offline
No, and this is something that pacman's optdepends handling could use some improvement with. Currently it doesn't really factor into dependency parsing in all sorts of useful, practical ways...
Of course using pacman -D you can make those explicitly installed, or simply reinstall them again.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Maybe it would be OK to put up a feature request for this?
When I originally started using Arch I had honestly imagined it would've worked something like this:
Remove unused dependencies only
pacman -Rs
Remove unused and opt-dependencies (i.o.w.; as it works now with -Rs)
pacman -Rss
But it turned out to not work that way. Maybe it should? Never really gave it another thought honestly ¯\_(ツ)_/¯
Last edited by Omar007 (2018-09-12 20:57:24)
Offline
Ok, thanks anyway.
Offline