LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-22-2005, 11:25 AM   #1
fleuh
LQ Newbie
 
Registered: May 2004
Distribution: RH9 - Suse 9.1 - Knoppix - Mepis
Posts: 18

Rep: Reputation: 0
Question 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)...

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.
 
Old 03-22-2005, 11:48 AM   #2
Tons of Fun
Member
 
Registered: Dec 2004
Location: Orlando, Florida
Distribution: Debian Squeeze / BackTrack 5/ Linux Mint 11
Posts: 359

Rep: Reputation: 32
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.
 
Old 03-22-2005, 12:20 PM   #3
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
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.
 
Old 03-22-2005, 12:51 PM   #4
Tons of Fun
Member
 
Registered: Dec 2004
Location: Orlando, Florida
Distribution: Debian Squeeze / BackTrack 5/ Linux Mint 11
Posts: 359

Rep: Reputation: 32
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.
 
Old 03-22-2005, 01:24 PM   #5
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
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.
 
Old 03-22-2005, 04:16 PM   #6
magnate
LQ Newbie
 
Registered: Mar 2005
Location: London, UK
Distribution: Debian
Posts: 22

Rep: Reputation: 0
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
 
Old 03-23-2005, 10:03 AM   #7
macondo
Senior Member
 
Registered: Jul 2003
Location: Panama
Distribution: Debian Sid
Posts: 1,014

Rep: Reputation: 49
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

Last edited by macondo; 03-23-2005 at 03:05 PM.
 
Old 03-23-2005, 12:00 PM   #8
R00ts
Member
 
Registered: Mar 2004
Location: Austin TX, USA
Distribution: Ubuntu 11.10, Fedora 16
Posts: 545

Rep: Reputation: 30
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?
 
Old 03-23-2005, 06:15 PM   #9
macondo
Senior Member
 
Registered: Jul 2003
Location: Panama
Distribution: Debian Sid
Posts: 1,014

Rep: Reputation: 49
man aptitude
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gnome disk space alaios Linux - Software 4 06-06-2005 04:26 AM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
couple of qs, gnome ftp, removing kde or improving speed of kde, startup modprobe darkleaf Linux - Software 2 07-20-2004 09:54 AM
Gnome available disk space Peds222 Linux - General 3 09-10-2003 02:29 AM
Disk Space Indicator in a Gnome Panel? Wilb Linux - General 4 05-16-2003 03:52 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration