LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-12-2005, 11:16 AM   #1
paulr1984
Member
 
Registered: Dec 2003
Posts: 75

Rep: Reputation: 15
removing kernel source


Hi! I'm using fedora core 3 and am quite new to it. I've installed the kernel source using an rpm. How do I uninstall it? I don't think rpm -e kernel is correct. Installing the kernel created files in the specs, source, ... of the /usr/src directory. Do I simply erase those files? Are there any other files which I have to remove?

I'm removing the kernel source because I'm downloading the source of the latest stable kernel, 2.6.11.2 which is in bz2 format. I cannot find any rpms for this.

Just to make sure, do I simply unzip the kernel source into the /usr/src/redhat/build directory? I'm assuming this because when I installed the previous one which was in rpm, it installed the source code in the build directory.

Pardon me, I'm a confused newbie. I'm installing the latest kernel to make my smartlink modem to work. I'll give you the details to this once I successfully install the latest kernel. Your help would be greatly appreciated! Thanks!
 
Old 03-12-2005, 11:25 AM   #2
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
rpm -e kernel-source

you can also find out exactly what kernel source you have by doing rpm -q kernel-source. Issue these commands as root. You dont simply unzip it. Read the INSTALL instructions that come with the source package.
 
Old 03-12-2005, 11:48 AM   #3
paulr1984
Member
 
Registered: Dec 2003
Posts: 75

Original Poster
Rep: Reputation: 15
doing 'rpm -q kernel-source' tells me that the package kernel-source is not installed. Same message is given with -e. Any other ideas?
 
Old 03-12-2005, 01:48 PM   #4
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
so u didnt install it with rpm. For example,
user@linux:~> rpm -q kernel-source
kernel-source-2.6.8-24
this is my output. You can delete the folder in /usr/src if u want although I dont think its required, you can simply install the source files for the new kernel and it should install in a separate folder. One piece of advise, dont upgrade the kernel if the one you have is running fine. Upgrade it when it becomes available from your distribution-- use YUM to upgrade packages.

Last edited by ksgill; 03-12-2005 at 01:49 PM.
 
  


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 comments from C++ source code Nylex Programming 8 11-22-2005 04:41 AM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
difference between "pure" kernel source, and .deb packaged kernel source microsoft/linux Debian 1 06-19-2005 10:28 PM
removing source code Vindane Linux - Software 1 03-17-2005 07:42 AM
Removing clean source directories? jong357 Linux From Scratch 2 01-22-2004 05:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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