Debian This forum is for the discussion of Debian 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.
|
|
03-02-2006, 12:24 PM
|
#1
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Rep:
|
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!
|
|
|
03-02-2006, 12:34 PM
|
#2
|
Member
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 364
Rep:
|
Find all kernels installed,
Code:
dpkg --get-selections | grep kernel-image
Then remove unwanted ones:
Code:
apt-get remove --purge kernel-image-...
|
|
|
03-02-2006, 01:01 PM
|
#3
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Original Poster
Rep:
|
?
Code:
stricom:/boot/grub# dpkg --get-selections | grep kernel-image
stricom:/boot/grub#
|
|
|
03-02-2006, 01:18 PM
|
#4
|
Member
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 364
Rep:
|
If you are using unstable,
Code:
dpkg --get-selections | grep linux-image
|
|
|
03-02-2006, 03:01 PM
|
#5
|
Member
Registered: Nov 2004
Location: ~
Distribution: Debian
Posts: 145
Rep:
|
|
|
|
03-02-2006, 06:28 PM
|
#6
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Original Poster
Rep:
|
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
|
|
|
03-02-2006, 08:11 PM
|
#7
|
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
Rep:
|
Code:
apt-get remove --purge **
** which one you want to remove
|
|
|
03-03-2006, 12:10 PM
|
#8
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Original Poster
Rep:
|
Quote:
Originally Posted by lavluda
Code:
apt-get remove --purge **
** which one you want to remove
|
Thanks! Issue resolved.
|
|
|
All times are GMT -5. The time now is 04:37 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
|
|