Given a set of apt
commands and packages to apply (e.g. install foo bar baz
, autoremove quux blerg bang
), is there a way to calculate the diff of the system state that will be produced if I run the commands?
By "system state" I don't merely mean whether a given package will install/remove other packages, but what kinds of actual changes get produced -- files being deleted or moved, scripts getting run, et cetera.
You can run apt-get in simulate mode, e.g.:
with
or without
sudo
alsoThis won't change anything on your system but will print out what will apt-get do when you run that command.
You are probably looking for more debugging. The problem with this is... that the information is way too much to be useful for anyone without knowledge of what he's reading. But here it is:
But hey, there's a bunch of other ways you can do this. For example:
This will show you the contents. You will need to evaluate the control scripts (post/pre inst/rm) separated.