LinuxQuestions.org
Review your favorite Linux distribution.
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 03-02-2006, 12:24 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Question Removing Old Kernels


OK - my Grub is looking pretty messy since I have upgraded my kernel a few times. I am currently 100% that my 2.6.15-1-k7 kernel is fine and will not need to ever boot into an older kernel. Can someone please explain how I can remove the old kernels from my system so I just show that one entry and don't clutter my system.

Thanks!
 
Old 03-02-2006, 12:34 PM   #2
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 364

Rep: Reputation: 33
Find all kernels installed,
Code:
dpkg --get-selections | grep kernel-image
Then remove unwanted ones:
Code:
apt-get remove --purge kernel-image-...
 
Old 03-02-2006, 01:01 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
?

Code:
stricom:/boot/grub# dpkg --get-selections | grep kernel-image
stricom:/boot/grub#
 
Old 03-02-2006, 01:18 PM   #4
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 364

Rep: Reputation: 33
If you are using unstable,
Code:
dpkg --get-selections | grep linux-image
 
Old 03-02-2006, 03:01 PM   #5
yotamk
Member
 
Registered: Nov 2004
Location: ~
Distribution: Debian
Posts: 145

Rep: Reputation: 15
Try this thread:
http://www.linuxquestions.org/questi...hreadid=271042
 
Old 03-02-2006, 06:28 PM   #6
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Quote:
Originally Posted by saman007uk
If you are using unstable,
Code:
dpkg --get-selections | grep linux-image
So what would my next course of action be?

Code:
carlos@stricom:~$ dpkg --get-selections | grep linux-image
linux-image-2.6.14-2-k7                         install
linux-image-2.6.15-1-k7                         install
 
Old 03-02-2006, 08:11 PM   #7
lavluda
Member
 
Registered: Jan 2006
Location: Dhaka, Bangladesh
Distribution: Debian sid, Suse 9.3 pro, Mandrake 10.0, Redhat 7-9, FC-2,3, Gentoo 2006,2006.1
Posts: 89
Blog Entries: 2

Rep: Reputation: 15
Code:
apt-get remove --purge **
** which one you want to remove
 
Old 03-03-2006, 12:10 PM   #8
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Quote:
Originally Posted by lavluda
Code:
apt-get remove --purge **
** which one you want to remove
Thanks! Issue resolved.
 
  


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 Fedora 1 04-12-2005 09:58 AM
Removing old kernels mike270 Linux - Software 6 08-07-2004 09:05 PM
Removing old kernels dbzw Linux - Newbie 5 02-29-2004 12:01 PM
Removing old kernels dbzw Linux - General 1 02-28-2004 11:33 PM
removing kernels? rakriege Linux - Newbie 1 11-09-2003 05:54 PM

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

All times are GMT -5. The time now is 10:19 AM.

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