For example, let's say I try to remove "libopenshot11", I get:
The following packages will be REMOVED:
libopenshot11 openshot-qt python3-openshot
How can I find this out without running apt remove first?
For example, let's say I try to remove "libopenshot11", I get:
The following packages will be REMOVED:
libopenshot11 openshot-qt python3-openshot
How can I find this out without running apt remove first?
You can use the
--simulate
or-s
option, which will show you what APT will do when you run a command without actually doing anything, for example...We can see that removing the
file
package would be a very bad idea...The
-s
or--simulate
option is used to simulate any APT task without actually running it.From the official manpages:
The Python APT API can be used to write a short script for this:
Example: