PDA

View Full Version : [SOLVED] getting dependency relations



Skaperen
May 28th, 2018, 08:43 AM
is there a way to get all the dependency relations of either all packages that are installed or all packages in all my source repositories?

TheFu
May 29th, 2018, 02:53 AM
Yes there is.

$ sudo apt-cache rdepends packagename

Skaperen
May 29th, 2018, 04:14 AM
wow! that's going to be a lot of commands to do! this only gets the relations for one package. i wanted them for all packages. well, i can always do this to get them for installed packages:


dpkg -l | awk '{if($1=="ii")print "apt-cache rdepends",$2;}' | sh

and sudo is not actually needed for these commands.

TheFu
May 29th, 2018, 04:40 AM
I got error 13 with out sudo on my 16.04 system.
There are at least 5 other methods using other tools. Google found them easily for me.

Skaperen
May 30th, 2018, 04:01 AM
which command(s) got the error 13? maybe some status about the non-root user is checked by the command. all my laptop users have access to run sudo (though i didn't use it). maybe i need to make some wimpy users to try things on.

TheFu
May 30th, 2018, 12:00 PM
The command in #2 above.

Skaperen
May 31st, 2018, 12:31 AM
that command just reveals information cached from the repositories. sure, it could tell a user if the admin has kept the cache updated or flushed it. but i see no reason for it to need escalated privileges if it has the programmed means to decide.