Does Ubuntu uninstall unnecessary updates?

Ubuntu checks and installs updates automatically which takes up a lot of space in the system.

Is there a something similar we can do to uninstall deprecated or unused services or libraries so that space will be freed? I install all the updates is it good?


Solution 1:

From man apt-get:

  • clean (sudo apt-get clean)

    clean clears out the local repository of retrieved package files. It removes everything but the lock file from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/.

  • autoremove (sudo apt-get autoremove)

    autoremove is used to remove packages that were automatically installed to satisfy dependencies for other packages and are now no longer needed.

  • autoclean (sudo apt-get autoclean)

    Like clean, autoclean clears out the local repository of retrieved package files. The difference is that it only removes package files that can no longer be downloaded, and are largely useless. This allows a cache to be maintained over a long period without it growing out of control. The configuration option APT::Clean-Installed will prevent installed packages from being erased if it is set to off.


You can set your choice for update from Software & Updates as following:

screen

Select check box(s) only that you want to get update.


Also Visit this & this for more information.

Hope this helps for maintain.