I know I have some packages ready to be removed if I run apt-get autoremove
, but I just want to know which they are, without removing them. How can I list what would be removed without removing them? Alternatively, how can I run the above command and force it to prompt me?
The
autoremove
function lists the packages to be removed and asks for permission to continue before actually carrying out the operation. If you just want to see what would happenYou can use the
-s
or--simulate...
switches to perform no actionsso
should do what you want. There is a
--assume-no
switch that can be used to forceno
to any questions asked too e.g.The
autoremove
function only removes packages that are no-longer needed so you should be safe to run it anyway.