#1  
Old 28th May 2013, 23:36
r4faga r4faga is offline
Member
 
Join Date: Jul 2011
Posts: 48
Thanks: 0
Thanked 1 Time in 1 Post
Default Use Yum.

I have one question, if i do yum update all the settings will be lost? since this update, installs and the latest versions including MySQL and others. I want to update it since centos 6 has a security problem, an exploit which can attack the root account THROUGH user accounts with shell. So I question arises whether, to update the kernel, everything is updated including data base. Someone can get me out of doubt.
Reply With Quote
Sponsored Links
  #2  
Old 29th May 2013, 00:11
monkfish monkfish is offline
HowtoForge Supporter
 
Join Date: Mar 2013
Posts: 106
Thanks: 9
Thanked 15 Times in 14 Posts
Default

Hello,

Short answer is No, any existing settings won't be lost.

Long answer is... if a config file is already in place, the rpm mechanism will create a ".rpmnew" file. It shouldn't overwrite existing config.

If you have mlocate packages installed then after an update you could do an "updatedb" then something like "locate rpmnew" to see if you do indeed have any newer config files. You can compare to existing config files see if any CRITICAL settings are changed.

A kernel update will install the new one and KEEP the old one as well. You can remove it later when you're satisfied the new one boots correctly.

You could do a "yum update --exclude=kernel*" to update all packages except the kernel.

Simply doing a "yum update" should show you what packages are available to update.

You could install yum-plugin-downloadonly and do a "yum update --downloadonly" which does what it says - simply download any updates to cache folder on your server. Then if you do a "yum update" it will pick the packages from local cache instead. Useful for slow bandwidth links - some of my servers run that overnight to pick up updates required and when I get to them the packages are there so I am not twiddling thumbs waiting for downloads.

Finally, check out yum-utils. You can use "package-cleanup --leaves" which will list rpms NOT relied upon by any other rpm. Your judgement required as to whether or not you can remove them. "package-cleanup --orphans" will list packages you have installed that are not available in any of your defined repositories.

HTH!
Reply With Quote
  #3  
Old 29th May 2013, 00:35
r4faga r4faga is offline
Member
 
Join Date: Jul 2011
Posts: 48
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

Thanks men. I appreciate your reply.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum aint so Yummy!! Lvcoyote Installation/Configuration 7 3rd September 2010 16:58
Companion Script #2 for The Perfect Server - Fedora 13 x86_64 [ISPConfig 3]" MrCompTech Tips/Tricks/Mods 0 10th July 2010 05:11
No email received after yum update Florisjan General 6 14th April 2010 00:59
Yum Installation Issue nidhintomson Installation/Configuration 1 16th December 2007 13:21
YUM and RPM gone? Niekoesj Technical 1 6th October 2007 11:45


All times are GMT +2. The time now is 23:45.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.