LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Removing Gnome/Kde because of disk space (https://www.linuxquestions.org/questions/debian-26/removing-gnome-kde-because-of-disk-space-304730/)

fleuh 03-22-2005 11:25 AM

Removing Gnome/Kde because of disk space
 
Hi all,

i'm running out of space on my disk and i'd like to know how to get more space.

I'm using a laptop with a 6GB hard drive and running debian sarge.

here is a df -h :
Code:

flo@debian:~$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda2            2.5G  2.2G  211M  92% /
tmpfs                  59M    0  59M  0% /dev/shm
/dev/hda3            2.9G  2.5G  241M  92% /home

As you can see, it's becoming critical on / (/home does not matter here)...:mad:

I tried to remove some packages but it's not by removing 2MB packages that i will solve my problem.

The main point is i have 3 desktop environment installed :
- gnome
- kde
- xfce

Gnome and KDE were installed from the first time, i then installed xfce because of its speed.

Do you know a good method to get rid of either gnome or kde ?
I already tried a apt-get remove kde, no chance.

Any help would be greatly appreciated,
flo.

Tons of Fun 03-22-2005 11:48 AM

As root, run "apt-get --purge remove gnome-panel" (without the quotes). This will remove the complete package. To remove kde, do the same thing and insert kde where gnome is. Afterwards, I would run "apt-get clean" (without the quotes). This will clean out the local repository which after a while will eat up a lot of disk space. Hope this helps.

Dead Parrot 03-22-2005 12:20 PM

Try aptitude. It has special category for both kde and gnome so you can easily see what packages are currently installed. Aptitude has a help screen (press "?") that explains the keyboard shortcuts. Basically you navigate by moving the highlighted area with cursor/arrow keys and Enter. You mark packages to be removed with "-" or to be purged (removes also config files) with "_". Then you press "g" once to see a list of all the planned changes, and "g" again to execute these changes. If you notice that aptitude wants to remove/purge packages that you want to keep, mark them with "+" to cancel the removal. "q" will always take you back to the previous screen.

Tons of Fun 03-22-2005 12:51 PM

I did not know about aptitude, I'll have to look at that. I do have a question that relates to this thread. I see all of these packages and applications that run under KDE. If I remove KDE, will these applications not run? I have not removed KDE because of this questrion, but I am not running it as a desktop, so if it can be removed, I want to.

Dead Parrot 03-22-2005 01:24 PM

Debian's Advanced Package Tool (APT) sorts dependencies between packages into three groups: necessary, recommended, and suggested. Apt-get and aptitude handle these dependencies in a different manner -- while apt-get installs only necessary dependencies, aptitude installs both necessary and recommended dependencies. (You can change aptitude's defaults in the settings menu but I wouldn't recommend trying this, because it may have unexpected results if you've already installed packages with aptitude.)

So how can you utilize the differences between apt-get and aptitude? If you want as slim system as possible, with as little unnecessary packages as possible, then use apt-get. (You can still use aptitude as a browser to see what packages are installed/available.) Personally I mostly use aptitude because I've found that the recommended dependencies are often quite useful. But sometimes (usually when installing kde or gnome related apps) I notice that aptitude wants to install lots and lots of packages as dependencies. In these cases I may install the package with apt-get instead to avoid installing the "recommended" dependencies.

Quote:

I see all of these packages and applications that run under KDE. If I remove KDE, will these applications not run?
If you remove kde (maybe using aptitude) and some apps you want to keep get also removed, you can re-install those packages with apt-get, which should ensure that you only install the dependencies that are necessary for running these applications. Unfortunately many kde and gnome applications are so intimately tied with kde/gnome libraries that even with apt-get you end up installing quite a lot of stuff. :( Then you'll just have to decide if you really need these specific apps or if there is some other application that does the same job without requiring all those kde/gnome dependencies to run.

magnate 03-22-2005 04:16 PM

I would use synaptic instead of aptitude, but that's just personal preference. If you do "apt-get remove --purge gnome" or the same command for kde, apt will tell you which other packages that will remove. One suggestion, rather than try to remove them piecemeal, is to remove the whole lot (both gnome and kde) and the REINSTALL the ones you really need. I think you'll find, since you already have a working desktop environment, that it isn't many. The effort of manually reinstalling them will ensure that you're fairly discriminating.

Good luck,

CC

macondo 03-23-2005 10:03 AM

lo@debian:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 2.5G 2.2G 211M 92% /
tmpfs 59M 0 59M 0% /dev/shm
/dev/hda3 2.9G 2.5G 241M 92% /home

Hmm, you certainly have a lot of stuff in that small hd.

Another alternative would be to start from scratch, format the hd (with dd and knoppix), do a minimal install, then use apt-get to install XFCE4 plus the apps you NEED. It shouldn't go over 1 MB total, that leave you with 5 GB to play with.

Here's mine:

macondo@debian:~$ df -h
S.ficheros Tamaņo Usado Disp Uso% Montado en
/dev/hda1 37G 657M 34G 2% /
tmpfs 63M 0 63M 0% /dev/shm

and that even includes my wife's beloved OOo.

Here's a guide:

http://www.linuxquestions.org/questi...hreadid=261506

R00ts 03-23-2005 12:00 PM

Isn't there a command for apt-get that will install recommended packages as well as dependecies? I always assumed there was one, but I haven't read the apt-get man/howto enough to find it yet. And by default does Synaptic install or not-install recommended packages? :study:

macondo 03-23-2005 06:15 PM

man aptitude


All times are GMT -5. The time now is 06:06 PM.