Have you tested the scenario? What happens?
Questions of this sort are best answered by the manpage for each program. The behavior could change over time and since apt is still warning that it isn't a stable interface and shouldn't be used in any scripts/automation, we probably shouldn't use apt in any scripts or automation.
The apt manpage contains this:
Code:
autoremove (apt-get(8))
autoremove is used to remove packages that were automatically
installed to satisfy dependencies for other packages and are now no
longer needed as dependencies changed or the package(s) needing them
were removed in the meantime.
You should check that the list does not include applications you
have grown to like even though they were once installed just as a
dependency of another package. You can mark such a package as
manually installed by using apt-mark(8). Packages which you have
installed explicitly via install are also never proposed for
automatic removal.
So, it appears that apt autoremove just implements apt-get autoremove.
Code:
autoremove (and the auto-remove alias since 1.1)
autoremove is used to remove packages that were automatically
installed to satisfy dependencies for other packages and are now no
longer needed.
There isn't any mention of purge being an option to autoremove. The apt-get manpage has this:
Code:
--purge
Use purge instead of remove for anything that would be removed. An
asterisk ("*") will be displayed next to packages which are
scheduled to be purged. remove --purge is equivalent to the purge
command. Configuration Item: APT::Get::Purge.
So it appears to be undocumented what using --purge does with autoremove.
I wouldn't worry.
Bookmarks