FS#58379 - pacman -Rs does not remove unrequired optional dependencies
Attached to Project:
Pacman
Opened by Reeto Chatterjee (ratorx) - Saturday, 28 April 2018, 14:39 GMT
Opened by Reeto Chatterjee (ratorx) - Saturday, 28 April 2018, 14:39 GMT
|
Details
Summary and Info:
pacman -Rs does not install unrequired optional dependencies when uninstalling a package. The optional package becomes an orphan and is removed when subsequently running pacman -Rs $(pacman -Qtdq) afterwards. Steps to Reproduce: 1. Install a package which has optional dependencies and at least one of these dependencies (which is unrequired by another package) 2. Run pacman -Rs package As a concrete example, neofetch can be installed with the dependency xorg-xrandr. When uninstalling neofetch with pacman -Rs, xorg-xrandr is not added to the uninstall list. |
This task depends upon
Comment by
Eli Schwartz (eschwartz) - Sunday,
29 April 2018, 03:25 GMT
Currently we do very little optdepends handling at all. This could
be seen as useful for general improvements along the lines of
FS#11337.