Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
FS#6312 - Remove dependencies of not installed package
Attached to Project:
Pacman
Opened by Jan Rüegg (rggjan) - Wednesday, 31 January 2007, 06:49 GMT
Last edited by Xavier (shining) - Friday, 27 June 2008, 15:50 GMT
Opened by Jan Rüegg (rggjan) - Wednesday, 31 January 2007, 06:49 GMT
Last edited by Xavier (shining) - Friday, 27 June 2008, 15:50 GMT
|
DetailsA handy feature would be if you could remove dependencies like with "pacman -Rsc foo" but to do it when foo is already installed.
Example use: I installed the package cinelerra from aur. The ready pkg I don't have anymore. Later I uninstalled Cinelerra, but forgot to add the -sc options. When I now want to remove all the "useless" packages, that where only needed for cinelerra, I have to -rebuild the whole package again -install it -remove it again with -Rsc just to get rid of the deps... |
This task depends upon
Closed by Xavier (shining)
Friday, 27 June 2008, 15:50 GMT
Reason for closing: Won't implement
Additional comments about closing: Just use pacman -Qqtd
Friday, 27 June 2008, 15:50 GMT
Reason for closing: Won't implement
Additional comments about closing: Just use pacman -Qqtd
In the same respect, a package from the synced repos that was already removed could have its dependencies checked by "pacman -Si <package>", and the above step could be taken.
Is this satisfactory? Because there is no other way to do this in pacman because the DB does not store old package entries, and thus could not look up old dependencies.
IMO it doesn't worth to implement this, and it's hard, especially for packages build for AUR.
Well, it could look up the new dependencies instead... For aur it could do the same, just as "aurbuild" looks up dependencies of the packages.
But I think you're right. It isn't as important, and as I didn't know the -i option (pacman -Si) this should be fine for me...
1. This won't work with aur, since we have no repo there, so in this case user can do pacman -Rus $depends, where depends list can be figured out with the help of aur webpage.
2. Using -Rsc combination can be dangerous, I suggest -Rs only.
If you were able to remove the package with just -R, then you don't need the -c flag at all.
Now, if you forgot the -s part, then no problem, that's exactly what orphans are for !
You just list the orphans whith -Qtd, then you remove them with -Rs (so that takes care of the recursive orphans, as Nagy was saying).