Skip to content

Clean up the linux system

Asterios Raptis edited this page Sep 5, 2024 · 6 revisions

cleanup script alias function

Note: only for advanced users.

This repository contains an alias script for cleaning up your linux systen. You can see the content of this script here. This script clean up all needed system temporary files that are not needed and also cleans up the boot section from obsolet kernels.

Removing partial packages

The autoremove command removes packages that are installed as dependencies with the original package. To remove this packages type the following command:

sudo apt-get autoremove

Removing orphaned packages

You can remove orphaned packages with the command-line programm deborphan. If not installed you can install with following command:

sudo apt-get install deborphan

Now you can get rid of the orphaned packages with following command:

sudo deborphan | xargs sudo apt-get -y remove --purge

GUI-Tool Stacer

Stacer is a tool with a graphical user interface, and it is pretty cool so you can try it out:

A detailed blog for this topic you can find on following links:

Clone this wiki locally