Can I run `apt-get purge --auto-remove`?

Is apt-get purge --auto-remove packagename a valid command?

Or, does it have to be apt-get remove --purge --auto-remove packagename?

The Ubuntu manpage for apt-get (http://manpages.ubuntu.com/manpages/precise/man8/apt-get.8.html) only mentions using the --auto-remove option "If the command is either install or remove...", so I was wondering if it could also be used with the purge command, since that is just a shortcut for the remove command with the --purge option.

Thank you.


Solution 1:

Yes, those commands are valid. Moreover, they are equivalent because purge is equivalent with remove --purge (see man apt-get).