LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 01-11-2005, 03:00 AM   #1
lumbrjackedpcj
Member
 
Registered: May 2004
Posts: 45

Rep: Reputation: 15
delete old kernels


im new to recompiling the kernel so for practice i made a couple of them. now my question is how do i delete all the practice kernels that i compiled? is it also safe just to delete the source for the kernels to and how do i delete them completely? Im not using the source or the kernels themselves anymore.

Thanks,
Paul
 
Old 01-11-2005, 05:16 AM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
ver=2.6.9
rm -fr /usr/src/linux-$ver
rm -fr /lib/modules/$ver
rm -f /boot/vmlinuz-$ver
rm -f /boot/initrd-$ver
rm -f /boot/System.map-$ver
rm -f /boot/config-$ver

Also edit /etc/lilo.conf and remove any entries there. And rerun lilo.
 
  


Reply



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
How do you delete previous kernels? r3dhatter Debian 5 06-16-2004 01:53 AM
Ok to delete old kernels in /boot and /usr/src? stug Linux - General 1 03-15-2004 09:54 PM
Tried to delete file as root but it says I don't have permission to delete it! beejayzed Mandriva 23 03-12-2004 02:46 AM
How to delete unwanted kernels? ludwig W Linux - Software 4 04-14-2003 07:00 AM
RH 8 kernels and their relation to 'stock' kernels psweetma Linux - Distributions 1 03-29-2003 10:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:47 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