How to remove unused packages with apt?
How to remove unused packages with apt?
Run apt with the autoremove subcommand to remove any package that the package manager considers to be unnecessary.
apt autoremoveAfter packages are upgraded on systems running apt, the package manager have mark some packages as no longer required. Typically this happens when a dependency on another package has been removed, or another package supersedes the existing package. In that case the package becomes an orphan and no longer provides specific function another package or to the system.
Run the apt command with the autoremove subcommand to check for orphaned packages and remove them.
apt autoremove