How to remove unwanted components
Hi I am new to Knoppix and I have just installed it to Hdd with knoppix-installer it went great. Now my question is I want to remove some components like, different locales media players I dont like etc. because I am low on hd space and I want to free as much as possible.
So, How should I go about this??
Re: How to remove unwanted components
Quote:
Originally Posted by pinku
Hi I am new to Knoppix and I have just installed it to Hdd with knoppix-installer it went great. Now my question is I want to remove some components like, different locales media players I dont like etc. because I am low on hd space and I want to free as much as possible.
So, How should I go about this??
To remove the locales you need to install the program localepurge when installing it will ask you to choose which locales you want to remain on the system choose the ones you want and say yes in the setup to remove the man pages as well. then after having installed the program edit the file /etc/locale.gen and remove all the lines for the locales in the file except the locales you choose to keep. Next time you install a program localepurge should run and remove all the excess locales still left on the system.
Then try Kano's remove- scripts you want the server, startup-services and wine. Then after you are done with that then:
Code:
apt-get --purge remove xserver-3dlabs xserver-8514 xserver-agx xserver-common-v3 xserver-i128 xserver-mach32 xserver-mach64 xserver-mach8 xserver-p9000 xserver-s3 xserver-s3v xserver-s3v xserver-svga xserver-vga16 xserver-w32
To remove the excess xservers that are included but not used you are most likely using the xserver-xfree86 if you are using one of the above servers do not remove the one you are using.
Then to get rid of the KDE i18n:
Code:
apt-get --purge remove kde-i18n-cs kde-i18n-da kde-i18n-de kde-i18n-es kde-i18n-fr kde-i18n-it kde-i18n-ja kde-i18n-nl kde-i18n-pl kde-i18n-ru kde-i18n-tr
Same again here do not remove a localization if you are using it. Now to get localepurge to do it's job and make yours easier add this line to your /etc/apt/sources.list :
Then dselect update to update both the apt and dselect databases at the same time and apt-get install kio-apt which will give you a nice little apt:/ and then enter key you can put into the location bar of Konqueror to allow you find what packages you have installed what they depend on without having to do it all at the command line. To start to use the new feature effectively dpkg --get-selections > selections.txt gets you a list of packages that you can open with an editor and use to find out if you need them. When doing apt-get remove package_name you should use the purge option to get rid of the configuration files and the first time you go to remove the package use the -s option to simulate the action apt will perform eg. apt-get -s --purge remove package_name then if the output looks good then remove the -s from the line to actually remove the program.
Note: To use the Kano scripts you need to download to a directory and chmod +x script_name to make executable and then ./script_name to execute it. All steps except the apt:/ in konqueror, downloading of the scripts and the dkpg --get-selections and reading of file to be done as root.