LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-08-2009, 09:55 AM   #1
crazyfuturamanoob
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
Remove a package and all it's dependencies in Ubuntu 8.10?


I thought KDE is better than Gnome, and installed kubuntu-desktop on my Ubuntu 8.10 to get KDE.

But then I found out my computer can't run KDE without serious laag, and now I want Gnome back.


I tried switching back to Gnome, but now this is totally messed up. It's half Gnome and half KDE, plenty of bugs, and I got tons of KDE apps that I don't need.

So I just want to remove package "kubuntu-desktop" and all it's dependencies. Maybe there's a fast and easy way to do it?

I may/will want to do this for some other packages too.

Thanks.
 
Old 01-08-2009, 10:13 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Actually, you don't want to remove kubuntu-desktop's dependancies because it depends on a lot of packages that are necessary in your system in order to function. You want to remove kubuntu-desktop and all the dependancies that are not needed by other applications you use, but not all of them.
As far as I know, apt-get doesn't record which packages you installed explicitely and which packages were pulled by apt-get (unlike portage or urpmi), unless I am wrong (please tell me so).
I'm afraid you will have to investigate and remove the packages you don't use by hand.
apt-cache depends kubuntu-desktop is a good start...
 
Old 01-08-2009, 10:15 AM   #3
crazyfuturamanoob
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Agrouf View Post
Actually, you don't want to remove kubuntu-desktop's dependancies because it depends on a lot of packages that are necessary in your system in order to function. You want to remove kubuntu-desktop and all the dependancies that are not needed by other applications you use, but not all of them.
As far as I know, apt-get doesn't record which packages you installed explicitely and which packages were pulled by apt-get (unlike portage or urpmi), unless I am wrong (please tell me so).
I'm afraid you will have to investigate and remove the packages you don't use by hand.
apt-cache depends kubuntu-desktop is a good start...
"apt-cache depends kubuntu-desktop" gives a long list.

As you said, some of them are also needed by Gnome/Ubuntu as well,
so how can I know which packages I can safely remove?
 
Old 01-08-2009, 11:55 AM   #4
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Quote:
Originally Posted by crazyfuturamanoob View Post
"apt-cache depends kubuntu-desktop" gives a long list.

As you said, some of them are also needed by Gnome/Ubuntu as well,
so how can I know which packages I can safely remove?
you can use the apt-cache whatdepends packagename to know which package depends on packagename. You can safely remove the packages you don't use, but that apt-get can't know. Indeed, apt-get lacks this feature that records which packages were explicitely installed and which ones were pulled by apt-get, unless I'm mistaken. emerge and urpmi have that feature, but unfortunately not apt-get. It's sad but I'm afraid you have to take them one by one and remove those you know you don't need or those you know you don't want.
 
  


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
Remove dependencies when removing a package kushalkoolwal Debian 6 06-28-2007 02:53 PM
Cannot remove cvsnt package on Ubuntu (Breezy) aegolden Linux - Software 0 02-03-2007 10:01 PM
Remove a ubuntu package in Debian Sarge gbratig Linux - Distributions 3 07-29-2006 08:04 AM
Remove all configuration files of a Package -- Ubuntu Drapper Drake Dimitriy Linux - Software 1 06-10-2006 01:58 AM
apt-get remove and dependencies wrongman Debian 3 05-21-2004 03:57 PM


All times are GMT -5. The time now is 05:28 AM.

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