LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-19-2009, 04:51 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Rep: Reputation: 51
How to downgrade Linux Kernel?


I have one linux machine with kernel Linux
Code:
dualos1 2.6.9-78.ELsmp #1 SMP Wed Jul 9 15:39:47 EDT 2008 i686 i686 i386 GNU/Linux
And I am trying to downgrade kernel with "kernel-2.6.9-5.EL.src.rpm"

How Can I go for it?
 
Old 05-19-2009, 05:53 AM   #2
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Anyone who have tried out this stuff?
 
Old 05-19-2009, 06:24 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Please, be patient. Bumping your own threads one hour before you open them is not considered polite. And in any case, once you do this your post is removed from the "Zero reply threads" quick list, which in turn reduces your chance to get support instead of increasing it. So it's bad for you as well.

Quote:
Originally Posted by your_shadow03 View Post
I have one linux machine with kernel Linux
Code:
dualos1 2.6.9-78.ELsmp #1 SMP Wed Jul 9 15:39:47 EDT 2008 i686 i686 i386 GNU/Linux
And I am trying to downgrade kernel with "kernel-2.6.9-5.EL.src.rpm"

How Can I go for it?
Are you wanting to compile it from source? What distro are you using?

Also, not that I am trying to question your reason to do this, but 2.6.9 is *ancient* (more or less, 5 years old), are you sure you really want to use such an old kernel? Outdated kernels can pose a security problem, and often means more bugs.
 
Old 05-19-2009, 06:32 AM   #4
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Sorry for the same.
May Be I have been in hurry as My manager is standing over my Head to complete.
anyway, Thats my firm requirement and all i need to provide them results.
That's RHEL 4 update 7 and I am trying to compile it from src.rpm.
 
Old 05-19-2009, 06:39 AM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Quote:
Originally Posted by your_shadow03 View Post
Sorry for the same.
May Be I have been in hurry as My manager is standing over my Head to complete.
anyway, Thats my firm requirement and all i need to provide them results.
That's RHEL 4 update 7 and I am trying to compile it from src.rpm.
I am not a RHEL user, but the procedure should be the standard one.

You first need to install the rpm, the package manager for RHEL should be able to take care of that. The sources will probably be installed under /usr/src. You need to cd into the directory where the sources live and then copy the config file from your current kernel and proceed as always.

Code:
cd /usr/src/<whatever>
zcat /proc/config.gz > .config
make oldconfig
# you could then run make menuconfig if you want to change something
make && make install modules_install
This all as root since from rpm the sources will be installed in a system directory.

Depending on how you configured your bootloader you might then need to add/modify an entry in your grub.conf or lilo.conf to add the new kernel so you can boot it.

Last edited by i92guboj; 05-19-2009 at 06:43 AM. Reason: corrected typo in last command
 
Old 05-19-2009, 06:45 AM   #6
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Code:
You first need to install the rpm, the package manager for RHEL should be able to take care of that.
which RPM you are talking about?
 
Old 05-19-2009, 06:47 AM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Quote:
Originally Posted by your_shadow03 View Post
And I am trying to downgrade kernel with "kernel-2.6.9-5.EL.src.rpm"
This one you mentioned.
 
Old 05-19-2009, 06:49 AM   #8
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Ok You mean I need to run:

Code:
Try this :

RedHat usually stores source rpms in /usr/src/redhat/SRPMS

you can put them anywhere you want though to build it run this..

Code:

 rpm --rebuild filename.src.rpm

the rebuilt rpm will be put in /usr/src/redhat/RPM/ you can install it like this

Code:

cd /usr/src/redhat/RPM/

rpm -iv filename.rpm
 
Old 05-19-2009, 06:57 AM   #9
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
I am not familiar with how RHEL handles SRPMs. I think that a RHEL user could help better. I don't want to misguide you or provide an unnecessary amount of pain. The method I explained above should work once you have installed the sources in any distro. The one you posted seems to be some specific method that red hat uses to build binary rpms from source packages.

However, is there no precompiled kernel that you could use? The rpm for a binary kernel should be named very similar, but without the "src" part.

If you truly want to compile it yourself the red hat way, you might want to open a new thread about how to compile a custom kernel on RHEL on the red hat specific subforum, since this is specific red hat stuff, and you probably get a better chance to get a good answer there.

http://www.linuxquestions.org/questions/red-hat-31/
 
Old 05-19-2009, 07:16 AM   #10
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
I tried these steps:

Code:
[root@ualos1 SRPMS]# rpmbuild --rebuild kernel-2.6.9-5.EL.src.rpm
Installing kernel-2.6.9-5.EL.src.rpm
error: Architecture is not included: i386
[root@dualos1 SRPMS]#
Do I need to download the architectural package restrictly?
 
  


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
linux-uvc in 2.6.22 kernel and downgrade porting pbaykov Linux - Kernel 2 12-21-2008 06:52 PM
FC6 kernel issue, how to downgrade kernel? ACDII Fedora 10 03-21-2007 10:08 AM
Is it possible to downgrade a linux kernel to a lower version? bhornet11 Fedora 7 12-22-2006 01:35 AM
ACX100 TI chipset WIFI card 2.6.14 Kernel, downgrade kernel? fieldyweb Linux - Wireless Networking 1 02-11-2006 04:56 AM
Downgrade kernel ,dual kernel boot beep_beep Linux - Software 0 08-17-2004 02:25 AM


All times are GMT -5. The time now is 09:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration