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#7208 - Request pacman query for all packages that aren't required by other pkgs.
Attached to Project:
Pacman
Opened by hans (kryo) - Saturday, 19 May 2007, 03:08 GMT
Last edited by Dan McGee (toofishes) - Thursday, 10 January 2008, 13:58 GMT
Opened by hans (kryo) - Saturday, 19 May 2007, 03:08 GMT
Last edited by Dan McGee (toofishes) - Thursday, 10 January 2008, 13:58 GMT
|
DetailsAs of pacman3, -Qe "list all packages installed as a dependency but no longer required by any package" according to the manpage.
I'd like to request for a Pacman Query functionality that lists all packages (explicitly installed or installed as a dep) that are not required by any other package. Thanks! |
This task depends upon
Closed by Dan McGee (toofishes)
Thursday, 10 January 2008, 13:58 GMT
Reason for closing: Implemented
Additional comments about closing: Implemented, versions on bug are now set too
Thursday, 10 January 2008, 13:58 GMT
Reason for closing: Implemented
Additional comments about closing: Implemented, versions on bug are now set too
I'm attaching a patch that does that.
http://projects.archlinux.org/git/gitweb.cgi?p=pacman.git;a=commit;h=51225b326310af23e5ceda0c6cd6cc563901ccab
Once you have the list of orphans, you just call _alpm_removedeps(list_orphans) , and it gives you what you want :)
I had a little problem with it:
most other query options allow to filter and display in line.
While with this option, it would first require to do all computations : first build the list of orphans, then call alpm_recursedeps on it (after exporting it),
and then only display the resulting list.