How Do I Remove Unused Packages in Ubuntu?
Contents Simply Run Sudo Apt Autoremove or Sudo Apt Autoremove –Purge in Terminal. Note: This Command Will Remove All Unused Packages (Orphaned Dependencies)...
Simply run sudo apt autoremove or sudo apt autoremove –purge in terminal. NOTE: This command will remove all unused packages (orphaned dependencies). Explicitly installed packages will remain.
How do I list unused packages in Ubuntu?
To do so, from the main window, expand the“Options” section and check the box that says – “Show all orphan packages, not only those in the libs section”. Now, Gtkorphan will list the orphaned packages. However, you must careful here. As you see in the above picture, Gtkorphan lists some important packages as unused.
How do I remove old packages in Linux?
The procedure to delete all unused old kernels on Ubuntu Linux version 18.04 and 20.04 LTS is as follows:
- First, boot into a new kernel.
- List all other older kernel using the dpkg command.
- Note down system disk space usage by running the df -H command.
- Delete all unused old kernels, run: sudo apt –purge autoremove.