Quantcast
Channel: Pacman issues
Viewing all articles
Browse latest Browse all 115

pacman -Rs should not remove still “required” optional dependencies

$
0
0
Summary and Info: If two packages A and B are installed (whichever way) and package C is installed `--asdeps`, where package A `depends` on package C and package B `optdepends` on package C. If package A is removed with `pacman -Rs`, pacman warns that package B has C as an optional dependency, but removes C regardless. Steps to Reproduce: 1. Install two packages, where one has a strict dependency and the other an optional one on a third package. 2. `pacman -Rs` the strict dependency package. 3. The optional dependency is missing. Expected Result: Pacman should only remove dependencies, that are installed as dependencies and are not needed by other packages (optional or not). Maybe introduce a switch for the old behaviour like the orphan search (pacman -Qdt/pacman -Qdtt). (Rewritten from [FS#46610](https://bugs.archlinux.org/task/46610) to consolidate @allan’s additional info.)

Viewing all articles
Browse latest Browse all 115

Trending Articles