Reduce the high Count of installed Packages

From wiki.linuxonlinehelp.de
Jump to: navigation, search

Reduce the high Count of installed Packages

Remark: YOU MUST KNOW WHICH PROGRAM NAME YOU NEEDs!! only for advanced USERS/EXPERTS!

To Setup a small System you need a "netinstall" CD Image and then install a minimal System, next step edit the apt.conf file for advanced settings on console: $sudo nano /etc/apt/apt.conf

APT::Install-Recommends "0";
APT::Install-Suggests "0";
Acquire::PDiffs "false";
Acquire::Languages "none";            # set true for none English

save and exit, now run on console:

$sudo apt-get update
$sudo apt-get dist-upgrade

this reconfigure the package database index for dependencies! now setup you wanted System Software like gnome:

$sudo apt-get install gnome-core xserver-xorg

Remark: Missed Software must be manual installed now by yourself package for package

Cleanup a Running System:

To remove unwanted Packages use the "apt-get autoremove --purge" command like on console:

$ sudo apt-get autoremove dbus gnome-shell consolekit --purge 

to remove preinstalled Libs do:

$sudo -s                                                                             #switch to root account
$dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs sudo dpkg --purge   # can used 2 to 3 times!! agian
$deborphan | xargs sudo apt-get -y remove --purge                     # can used 2 to 3 times!! agian

Remark: If deborphan is not know you have to install the tool with cause its not a basic package:

$sudo apt-get install deborphan