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#7343 - pacman -Q options
Attached to Project:
Pacman
Opened by Xavier (shining) - Saturday, 02 June 2007, 17:08 GMT
Last edited by Dan McGee (toofishes) - Tuesday, 06 November 2007, 06:05 GMT
Opened by Xavier (shining) - Saturday, 02 June 2007, 17:08 GMT
Last edited by Dan McGee (toofishes) - Tuesday, 06 November 2007, 06:05 GMT
|
DetailsSummary and Info:
As I said here : http://bbs.archlinux.org/viewtopic.php?pid=255318#p255318 it would be nice to copy some of the -Q options of yaourt : (-Q, --query) -e, list all packages explicitly installed (-Q, --query) -d, list all packages installed as a dependency for another package (-Q, --query) -t search for missed installed orphans So having e for explicit, d for dependency, and a different letter for orphans. The current -Qe option lists orphans (dependency not required by any packages), and this can sometimes lead to confusion, because many users associate e with explicit. |
This task depends upon
Closed by Dan McGee (toofishes)
Tuesday, 06 November 2007, 06:05 GMT
Reason for closing: Implemented
Additional comments about closing: This is awesomeness- thanks again for the work on this Xavier. Tested and seems to work great in the GIT release I made tonight.
Tuesday, 06 November 2007, 06:05 GMT
Reason for closing: Implemented
Additional comments about closing: This is awesomeness- thanks again for the work on this Xavier. Tested and seems to work great in the GIT release I made tonight.
-Qe : list all packages explicitly installed
-Qd : list all packages installed as dependencies
-Qt or -Qtd : list all packages installed as a dependencies but no longer required by any package
-Qte : list all packages explicitly installed and not required by any package (same as pacman 2 orphan option)
-Qted : list all packages not required by any package (same as my previous -Qee, see
bug 7208)Does this make any sense?
http://www.archlinux.org/pipermail/pacman-dev/2007-July/008890.html
Changing the options slightly helped to make it cleaner, but I'm not sure if that's ok.
It's similar to the ones above, but slightly different :
pacman -Qe : lists all explicitly installed packages
pacman -Qd : list all packages installed as dependencies
pacman -Qt : list all orphans (package not required by any others)
pacman -Qtd : list real orphans (package installed as dependencies,
but not required by any others anymore)
(that is the current orphan option)
pacman -Qte : list package explicitly installed and not
required by any others (pacman2 orphan option).
Advantage of these options (besides making the code easier) is that at most 2 options are required for getting all possible cases.
The disadvantage I see is that the most useful ones are apparently displaying explicitly packages (e) and real orphans (td),
so real orphans would now require two arguments.
I still find it clearer this way, but I really need some comments/opinions here (good or bad).
Is there any way you can write some updates to the man page to reflect these new options? I know English isn't your first language, but if you wrote a draft I will be happy to correct it and check it in. Use the asciidoc branch from my repo; we are going to use asciidoc in the future for all manpages.