Ubuntu This forum is for the discussion of Ubuntu Linux. |
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.
|
 |
|
06-21-2006, 02:28 PM
|
#1
|
Senior Member
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Rep:
|
New kernels - removing older ones ??
In the past (with other distros), when I've installed a new kernel version, and checked that it's working OK, I've dumped the older one(s).
where do they live, in K/Ubuntu ? I couldn't find anything in /usr/src/linux or similar?
regards
john
|
|
|
06-21-2006, 03:08 PM
|
#2
|
Member
Registered: Oct 2004
Distribution: slamd64-current, slackware-current, clfs 6.1, arch-current, ubuntu dapper
Posts: 144
Rep:
|
just run apt-get remove kernel-image-*version*
|
|
|
06-21-2006, 03:09 PM
|
#3
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
If you are going to remove a kernel that was installed by a package manager, then remove it with a package manager and not manually. If you remove it manually you may have problems because the package managers database will still register it as installed.
|
|
|
06-21-2006, 05:29 PM
|
#4
|
Senior Member
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Original Poster
Rep:
|
Nope. Didn't work. It (apt) couldn't find any kernel-image-any version. Any other suggestions ?? Or might it be called something different ???
regards
John
|
|
|
06-21-2006, 06:20 PM
|
#5
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Quote:
Originally Posted by bigjohn
Nope. Didn't work. It (apt) couldn't find any kernel-image-any version. Any other suggestions ?? Or might it be called something different ???
regards
John
|
Debian kernels are named linux-image-{some-version}.
|
|
|
06-22-2006, 02:33 PM
|
#6
|
Senior Member
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249
Rep: 
|
It is easiest to remove using synaptic. Go to System>Administration>Synaptic package manager. Scroll down to "linux-image-<names>" and see what kernels are installed. Click on one you don't like and select "mark for complete removal". It will free up quite a bit of disk space if you have a number of unused kernels.
|
|
|
06-23-2006, 11:28 AM
|
#7
|
Senior Member
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Original Poster
Rep:
|
Quote:
Originally Posted by reddazz
Debian kernels are named linux-image-{some-version}.
|
which is why I couldn't find it under the synaptic listing, I was looking for "kernel-version-xxxxxx" which is where the 2.4 stuff seems to be listed, as opposed to the "linux-image-xxxxxxxxx" which is where it was all the time, just waiting for me to "click dem lil' ole boxes"  somewhat conveniently modifying my /grub/menu.lst as well.
TVM for the advice.
regards
John
|
|
|
11-30-2006, 12:39 AM
|
#8
|
Member
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426
Rep:
|
I hope i am not writing to late. Now, since i was looking for a way to remove some entries too, and free up some disk space, i used the search tool and ended up here. I am using kubuntu at the moment and i don't have synaptic, and apparently the apt way doesn't work. So how can i do this with kubuntu?
|
|
|
11-30-2006, 08:16 AM
|
#9
|
Senior Member
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249
Rep: 
|
You can use apt in Kubuntu. If you don't have synaptic installed, you can install it from a terminal with:
Code:
sudo apt-get install synaptic
Then you can view and remove kernels as described above.
|
|
|
12-01-2006, 11:52 AM
|
#10
|
Member
Registered: May 2004
Location: india
Distribution: Gentoo 2006.1
Posts: 59
Rep:
|
Kubuntu has Aptitude as the front end. It should be as good as Synaptic, I guess. I haven't used aptitude actually.
|
|
|
12-07-2006, 01:50 AM
|
#11
|
Member
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426
Rep:
|
Manual removal
Isn't there a manual way to do this? Please don't get this question the wrong way, i just want to be able to do it using the console instead of having an application do it for me, for learning purposes. I really wanna know how to do it manually. Thanks in advance. 
|
|
|
12-07-2006, 02:45 AM
|
#12
|
Member
Registered: May 2004
Location: india
Distribution: Gentoo 2006.1
Posts: 59
Rep:
|
If you know the kernel version no. then type this in the terminal
Code:
sudo apt-get remove kernel-image-<exact version no>
And in my previous reply I wrote Aptitude as the front end. I am sorry, it's adept and not aptitude.
Last edited by lin_user2004; 12-07-2006 at 03:02 AM.
|
|
|
12-07-2006, 06:54 AM
|
#13
|
Senior Member
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249
Rep: 
|
Sure there is a manual way...first, besome root: Then as root run:
Code:
dpkg --get-selections | grep linux-image
The output will show you what kernels are installed. Pick the one you want to remove:
Code:
dpkg -P linux-image-2.6.17-26-386
The "-P" option will purge everything associated with the package, including configuration files. Good luck!
|
|
|
12-09-2006, 10:38 AM
|
#14
|
Member
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426
Rep:
|
I did find adept there, but i am a big fan of apt-get, i'll try it up this way. I do want to get some more space; i got like 5 images and 4 i am currently not using. Just add up the space i'll be freeing with these steps.
I'll look into dpkg command. I tried it in Fedora 4 and that command is not available. I guess i'll install it or see a way around it.
Just so i know, quick question: is dpkg available on kubuntu? I am not at my house right now, i am at work, just wanted to know if this is so.
|
|
|
12-09-2006, 10:43 AM
|
#15
|
Member
Registered: May 2004
Location: india
Distribution: Gentoo 2006.1
Posts: 59
Rep:
|
Yes dpkg is available on Kubuntu. In fact it will be available on any distro based on debian.
Fedora isn't based in Debian so it won't have dpkg.
|
|
|
All times are GMT -5. The time now is 02:38 PM.
|
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
|
|