I'm using arch linux.
Is there a way to list optional dependencies of all installed packages? And if yes, can I filter this list to see only the missing (not installed) packages?
|
I'm using arch linux. Is there a way to list optional dependencies of all installed packages? And if yes, can I filter this list to see only the missing (not installed) packages? |
|||||||
|
|
You can use expac to query the Something like:
will print a list of all the installed packages on your machine and the See
|
||||
|
|
|
Though I've had to notice that @DarkHeart's solution doesn't really work, it inspired me to make a working one. (no colours, though) I'm using package-query, a similar tool instead of expac which was suggested by @jasonwryan, because I've had it already installed (it's a dependency of yaourt). It should be trivial to change this to use expac instead. The listing of all optional dependencies is mostly done by the call to package-query. The first for-loop removes the explanations, so just the package names for the optional dependencies remain; the second for-loop removes the already installed dependencies in its first line before printing the results in the second one.
|
||||
|
|
|
This is not exactly efficient, but will find what you want (in COLOR!):
|
|||||
|