LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-21-2006, 02:28 PM   #1
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Blog Entries: 9

Rep: Reputation: 45
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
 
Old 06-21-2006, 03:08 PM   #2
Youri
Member
 
Registered: Oct 2004
Distribution: slamd64-current, slackware-current, clfs 6.1, arch-current, ubuntu dapper
Posts: 144

Rep: Reputation: 15
just run apt-get remove kernel-image-*version*
 
Old 06-21-2006, 03:09 PM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 76
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.
 
Old 06-21-2006, 05:29 PM   #4
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692

Original Poster
Blog Entries: 9

Rep: Reputation: 45
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
 
Old 06-21-2006, 06:20 PM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 76
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}.
 
Old 06-22-2006, 02:33 PM   #6
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,248

Rep: Reputation: 79
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.
 
Old 06-23-2006, 11:28 AM   #7
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692

Original Poster
Blog Entries: 9

Rep: Reputation: 45
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
 
Old 11-30-2006, 12:39 AM   #8
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Rep: Reputation: 30
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?
 
Old 11-30-2006, 08:16 AM   #9
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,248

Rep: Reputation: 79
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.
 
Old 12-01-2006, 11:52 AM   #10
lin_user2004
Member
 
Registered: May 2004
Location: india
Distribution: Gentoo 2006.1
Posts: 59

Rep: Reputation: 15
Kubuntu has Aptitude as the front end. It should be as good as Synaptic, I guess. I haven't used aptitude actually.
 
Old 12-07-2006, 01:50 AM   #11
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Rep: Reputation: 30
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.
 
Old 12-07-2006, 02:45 AM   #12
lin_user2004
Member
 
Registered: May 2004
Location: india
Distribution: Gentoo 2006.1
Posts: 59

Rep: Reputation: 15
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.
 
Old 12-07-2006, 06:54 AM   #13
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,248

Rep: Reputation: 79
Sure there is a manual way...first, besome root:
Code:
sudo su
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!
 
Old 12-09-2006, 10:38 AM   #14
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Rep: Reputation: 30
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.
 
Old 12-09-2006, 10:43 AM   #15
lin_user2004
Member
 
Registered: May 2004
Location: india
Distribution: Gentoo 2006.1
Posts: 59

Rep: Reputation: 15
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.
 
  


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
Removing Old Kernels carlosinfl Debian 7 03-03-2006 12:10 PM
Removing old kernels? carlosinfl Fedora 1 04-12-2005 09:58 AM
Correct way to remove older, unneeded kernels? wytiger Fedora 7 01-16-2004 09:36 PM
removing kernels? rakriege Linux - Newbie 1 11-09-2003 05:54 PM
removing old kernels in RH 8.0 bobterri Linux - General 2 12-02-2002 09:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:56 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration