slavik
June 20th, 2006, 08:58 PM
the attached perl script will take a list of all installed packages (dpkg -l), then parse the reverse dependencies of all the installed packages and print all packages without any reverse dependencies.
a reverse dependency is when something else is dependant on the installed package.
example:
pkg A depends on pkg B. pkg A is pkg B's reverse dependency.
It is a good idea to redirect the script output to a file.
NOTE: download the file and change the extension to .pl (to signify that it is a perl script) then make it executable (chmod +x rdepparse.pl) and then run it.
the script will take some time to complete because of the enourmous amount of system calls it does, depending on the number of installed packages.
a reverse dependency is when something else is dependant on the installed package.
example:
pkg A depends on pkg B. pkg A is pkg B's reverse dependency.
It is a good idea to redirect the script output to a file.
NOTE: download the file and change the extension to .pl (to signify that it is a perl script) then make it executable (chmod +x rdepparse.pl) and then run it.
the script will take some time to complete because of the enourmous amount of system calls it does, depending on the number of installed packages.