LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-15-2005, 10:25 PM   #1
alsac
LQ Newbie
 
Registered: Aug 2005
Location: Canada
Distribution: freeBSD & gentoo on ThinkPad T42
Posts: 25

Rep: Reputation: 15
uninstall question - how to clean up system?


Hi all

I installed Debian a week an a half ago (rather new to Linux) and since then managed to successfully compile a new kernel, which I'm using now (2.6.13.1 - from kernel.org) and I got very comfortable with fluxbox as a WM - instead of using KDE or GNOME, which I find rather bloated.

I'm curious how I could uninstall certain items to free up some space (not that I'm overly worried about it, but I see it's filling up since the installation of Debian. Since at the time of installation I wasn't quite certain what packages to install manually I let the installer do the job for me. Now, however, I'l like to get rid of the packages I have no use for such as KDE-based games.

Problem is dependencies. I tried apt-get uninstall to get rid of "Atlantik" as a trial run, but the dependencies include "kde"!! I'd still like to use some kde apps but I don't want to ditch "kde" because of some strange game that takes up 3MB!

Is there any way to uninstall these packages without "killing" kde or gnome?

Also - any suggestions on how to "clean" a system by uninstalling unused libs or other packages, orphaned files, old kernel versions, etc?

Thanks ... (back to tweaking).

Cheers
 
Old 09-15-2005, 10:32 PM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,733
Blog Entries: 12

Rep: Reputation: 457Reputation: 457Reputation: 457Reputation: 457Reputation: 457
deborphan will clean out libraries that are no longer being used.

As for KDE apps, you will probably have to uninstall KDE along with the games then reinstall just KDE. Personally I wouldn't worry about 3mb unless you really need the space.
 
Old 09-15-2005, 10:39 PM   #3
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 918

Rep: Reputation: 31
Quote:
Originally posted by alsac
Problem is dependencies. I tried apt-get uninstall to get rid of "Atlantik" as a trial run, but the dependencies include "kde"!
Are you sure it was a legitimate KDE library and not just some meta-pkg?
Run the apt-get session in a terminal and post the output if unsure.
 
Old 09-15-2005, 11:04 PM   #4
alsac
LQ Newbie
 
Registered: Aug 2005
Location: Canada
Distribution: freeBSD & gentoo on ThinkPad T42
Posts: 25

Original Poster
Rep: Reputation: 15
Right! thanks for the response fellas.

I'll try deborphan to see what I can free up.
I currently have 12GB allocated for / (35% used) and another 12 for /home (10% used) as separate partitions. Thing is I have a laptop which I use as a dual-boot system (XP/Linux). So I'd like to pear down the Linux installation and remove some packages that are useless for me (kde games, for instance), without removing the base packages (either KDE or GNOME) since I use some KDE and GNOME apps. Of course, there's still LOTS of space left but


Here's the result of "apt-get remove atlantik":

Code:
alsac# apt-get remove atlantik
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  atlantik atlantikdesigner kde kde-amusements kdeaddons kdegames
0 upgraded, 0 newly installed, 6 to remove and 409 not upgraded.
Need to get 0B of archives.
After unpacking 1683kB disk space will be freed.
Do you want to continue? [Y/n] not quite sure
Abort
alsac#hehehe
bash: hehehe: command not found
alsac#


As you can see it attempts to remove kde as a dependency which is rather strange.
Actually I wouldn't mind uninstalling KDE altogether but then again, there are certain K-apps I use. Not quite sure how I would re-install a pared down version of KDE later .... Hehe... something to fiddle with I suppose. A bit more research would be in order.

 
Old 09-16-2005, 02:58 PM   #5
lpd
Member
 
Registered: Nov 2004
Distribution: Debian Unstable
Posts: 77

Rep: Reputation: 15
'locale-purge' is another way to freeing up some disk space.
 
Old 09-16-2005, 03:04 PM   #6
Macky
LQ Newbie
 
Registered: Apr 2005
Location: Stockholm
Distribution: Slackware 10.2, 2.6.15 kernel
Posts: 28

Rep: Reputation: 15
I would also like to investigate dependencies. I assume the packages are compiled with most options enabled, to make full use of other packages´ features, and thereby linking them together in a big dependency chain. But as alsac says, why does it seem like when one tries to remove just a single little application, the dependency checker wants to remove an entire desktop system? That is more of a rule than exception for me when I try to get rid of seemingly innocent small applications or libraries.

And the other way too, if I want to install an application I know do not need kde-libraries at all, the dependency checker wants to install the complete kde-system, just because the package maintainers have compiled the package with support for kde. I understand that this will make most applications work without problems in general, but if one wants a slim system, what to do?
 
Old 09-16-2005, 06:38 PM   #7
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 918

Rep: Reputation: 31
Quote:
Originally posted by alsac
As you can see it attempts to remove kde as a dependency which is rather strange.
Okay, just for reference here are the packages to be removed:

atlantik
atlantikdesigner
kde
kde-amusements
kdeaddons
kdegames

Kde is the meta-pkg name for the kde environment. You are uninstalling a package that is dependent upon the meta-pkg kdegames which in turn is dependent upon kde. You see how this is just a chain effect? Atlantik is a part of the kdegames meta-pkg, which is part of the kde meta-pkg. So, when the link is broken they all tumble over.

To illustrate this let's assume I want to remove the kdegames meta-pkg.
Let's see what else gets pulled in:

Code:
# apt-get remove kdegames
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
kde kde-amusements kdegames
Look familiar? The only difference between this and your apt session is that you went deeper into the dep hierarchy and pulled an application that was dependent upon kdegames itself. Once this occurred the rest was easily predictable. In short, this meant that kdegames had to be removed and then of course kde had to be uninstalled.
 
Old 09-18-2005, 01:29 PM   #8
alsac
LQ Newbie
 
Registered: Aug 2005
Location: Canada
Distribution: freeBSD & gentoo on ThinkPad T42
Posts: 25

Original Poster
Rep: Reputation: 15
... Which means that the only solution really is to completely uninstall everything related to KDE and then re-install KDE (base) and only those packages that are usefull - at least for me. Rather awkward method but a good lesson for future installation.



I'll keep checkin around for alternate solutions - maybe just erase individual packages and foresake the dependency string - hopefully my system won't complain too much.

cheers!
 
Old 11-12-2005, 09:00 PM   #9
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Rep: Reputation: 34
hi guys just want to ask..il be reinstalling my gxine and xine.. so il be uninstalling them first... hmm wat command will i use? uninstall? ? pls help.. newbie hre.. thanks...
 
Old 11-12-2005, 11:19 PM   #10
kmoffat
Member
 
Registered: Jul 2003
Location: near Seattle
Distribution: Debian/Ubuntu/Suse
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
apt-get remove pkgname

where pkgname is the package to uninstall.

or

aptitude remove pkgname
 
  


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
unclean uninstall --> how to make clean (wine) Nightfrost Linux - Software 3 12-10-2011 11:30 PM
Clean Uninstall of v10.1/LILO w/XP? Anchoret Mandriva 3 12-02-2004 11:24 PM
Clean way to uninstall apps installed from source JrLz Linux - General 2 05-06-2004 08:38 AM
Difference between make clean and uninstall tuka Linux - Newbie 2 08-23-2003 08:25 AM
ATI Radeon 9700 Pro uninstall or clean eastj1974 Linux - Newbie 0 02-24-2003 01:21 AM


All times are GMT -5. The time now is 07:11 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