HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Technical (http://www.howtoforge.com/forums/forumdisplay.php?f=8)
-   -   Use Yum. (http://www.howtoforge.com/forums/showthread.php?t=62009)

r4faga 29th May 2013 00:36

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.

monkfish 29th May 2013 01:11

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!

r4faga 29th May 2013 01:35

Thanks men. I appreciate your reply.


All times are GMT +2. The time now is 22:58.

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