PDA

View Full Version : How to remove unwanted components



pinku
01-10-2004, 10:32 AM
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??

ekalin
01-10-2004, 01:57 PM
You use Debian package management system for removal of components.

You can do this via the command line, using the commands apt-get and apt-cache. But it is easier if you use one of the graphical front-ends.

I'd recommend you to use synaptic. It's not included by default, but you can install it by running "apt-get install synaptic" on the command line (it occupies less than 1Mb of space). Then just run synaptic as root, select "Installed" from the combo box, and you'll get a list of all installed packages for you to do what you want with them. If removing a package would break dependencies, you'll be informed and asked about what to do.

With other package managers (I think Knoppix includes kpackage, but I don't recall for sure) the process is similar, I'd say.

Stephen
01-10-2004, 05:14 PM
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 (http://www.kano.mipooh.net/) remove- scripts you want the server, startup-services and wine. Then after you are done with that then:


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:


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 :


## Kio-apt sources for unstable
deb http://lpnotfr.free.fr/debian/ ./

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.

pinku
01-10-2004, 07:36 PM
Hi thx..

Especially synaptic came to rescue and I have stripped off all the locales next step will be removing xservers i dont use..

Off topic here I have one question..

I have read that for videos on linux mplayer is really great but when I try to apt-get it I get this error:
depends on libavcodec and libvorbis0 which will not be installed..

When I tried to install libvorbis0 with synaptic it said that i will have to remove a very large no. of packages..Is it not possible to install mplayer onto debian??

fingers99
01-10-2004, 07:44 PM
It's possible. This thread may help:

http://www.knoppix.net/forum/viewtopic.php?t=5192#23825

Stephen
01-10-2004, 08:42 PM
Hi thx..

Especially synaptic came to rescue and I have stripped off all the locales next step will be removing xservers i dont use..

Off topic here I have one question..

I have read that for videos on linux mplayer is really great but when I try to apt-get it I get this error:
depends on libavcodec and libvorbis0 which will not be installed..

When I tried to install libvorbis0 with synaptic it said that i will have to remove a very large no. of packages..Is it not possible to install mplayer onto debian??

You do not want that package it is from stable apt is trying to downgrade the install.


HappyTux:/home/stephen# apt-cache policy libvorbis0
libvorbis0:
Installed: (none)
Candidate: 1.0rc3-1
Version Table:
1.0rc3-1 0
500 http://ftp2.de.debian.org stable/main Packages
100 /var/lib/dpkg/status


You want to install the mplayer package from sarge or sid:


HappyTux:/home/stephen# apt-cache policy mplayer-k7
mplayer-k7:
Installed: 1:1.0-pre2-sarge0.1
Candidate: 1:1.0-pre2-sarge0.1
Version Table:
*** 1:1.0-pre2-sarge0.1 0
100 /var/lib/dpkg/status


But you not going to get the package today anyway unless the mirror comes back (by my count down at least two days) on line for the marlliat line in your sources.list.

Markus
01-10-2004, 08:48 PM
http://marillat.free.fr/ has announced a new home for the packages.

You can put this in your sources.list:

deb http://hpisi.nerim.net/ unstable main

Stephen
01-10-2004, 09:01 PM
http://marillat.free.fr/ has announced a new home for the packages.

You can put this in your sources.list:

deb http://hpisi.nerim.net/ unstable main

And so they did even had an upgrade waiting for me, I never thought to check the old site was down so many times I guess that's why they moved it, thanks for the tip.

pinku
01-11-2004, 08:05 AM
It's possible. This thread may help:

http://www.knoppix.net/forum/viewtopic.php?t=5192#23825

This thread actually helped me..

I was able to install mplayer with unstable install and it worked. I didnt use Xine long enough but quite few files failed for me to render in Xine. But now with additional codec packages which were needed by mplayer everything is running smooth :D

Ok one more question??
I was running xmms and then I wanted to view a video. Gmplayer gave me an error saying it couldnt open audio stream so no sound but once I stopped xmms I was able to get sound. Is there neway I can change this behaviour so that when more than one sound stream are to be sent all get played i mean morphed or something