LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-29-2013, 02:09 PM   #1
linuxmantra
Member
 
Registered: Dec 2013
Posts: 111

Rep: Reputation: Disabled
Saving grub.conf file


Question:
1. How can I save existing grub.conf file and install newest kernel/patch update in my redhat server
2. How to observe the changes on grub.conf file
3. How to chose old kernel.

Thanks in advance.
 
Old 12-29-2013, 02:16 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
1. Make a copy of it someplace else before running an update. Generally, one uses yum to update software (including the kernel) on a Red Hat system.
2. Run a diff between the old and new copy of the grub.conf file.
3. Select it from the GRUB bootloader menu. Note that yum purges old kernels (keeping just the most recent and second most recent, so these are the only choices you will have). You can also modify the default entry in the grub.conf.

Note that Red Hat provides extensive documentation for their OSes; you probably want to read it.
 
Old 12-29-2013, 11:39 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,357

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Actually, the limit is controlled by
Code:
installonly_limit=3
in /etc/yum.conf.

Generally you would just set that to the reqd num and probably not bother backing up grub.conf in this case, unless you were going to manually edit it.

Of course you should backup your whole system regularly anyway.
 
  


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
saving changes to xorg.conf file; resetting after logoff linuxandtsm Linux - Newbie 1 06-06-2012 07:15 PM
GRUB menu.lst/grub.conf file with multiple partitions dasy2k1 Linux - General 1 04-19-2007 08:42 AM
Is lilo.conf file format is same for grub.conf? Chundo Linux - Newbie 1 01-30-2006 06:21 PM
grub bootloader : saving a new configuration file? lynnsbomb Mandriva 3 02-03-2004 04:10 PM
saving changes to apache2/conf/httpd.conf file Zaius Linux - Newbie 6 01-09-2004 11:45 PM


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