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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-08-2009, 10:55 AM
|
#1
|
LQ Newbie
Registered: Jan 2009
Posts: 2
Rep:
|
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.
|
|
|
01-08-2009, 11:13 AM
|
#2
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596
Rep:
|
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...
|
|
|
01-08-2009, 11:15 AM
|
#3
|
LQ Newbie
Registered: Jan 2009
Posts: 2
Original Poster
Rep:
|
Quote:
Originally Posted by Agrouf
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?
|
|
|
01-08-2009, 12:55 PM
|
#4
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596
Rep:
|
Quote:
Originally Posted by crazyfuturamanoob
"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.
|
|
|
All times are GMT -5. The time now is 09:36 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|