Portal Home > Knowledgebase > Articles Database > yum update - run it automatically?


yum update - run it automatically?




Posted by slrslr, 08-15-2013, 04:05 PM
Is it good idea to run "yum update -y" automatically on production node as a cronjob for example? Can you explain why? How to modiffy yum update so it will isntall only critical bug fixes, exploits automatically? Last edited by slrslr; 08-15-2013 at 04:20 PM.

Posted by Microlinux, 08-15-2013, 04:11 PM
No. You have no idea what may have changed in the software you are updating.

Posted by DominionHosting, 08-15-2013, 04:28 PM
But that is also true if you run it manually unless you have time to read about all the changes for everything. Maybe that is what you do. I don't have time for that. Been running auto updates for many years.

Posted by Kailash12, 08-16-2013, 01:21 AM
Sometime automatic updates may cause the problem but if you are doing manual updates, it may happen because in most cases nobody will read what will be changed after installing updates.. If you have time to read the update changes, do it manually or else automatic update.

Posted by TeraFire, 08-16-2013, 01:36 AM
Running automatic updates could end up breaking something, especially since I'm assuming it's not a vanilla installation.

Posted by valley, 08-16-2013, 01:58 AM
Automating the process might prove faulty at times. You can follow this guide to filter your update procedure on the basis of security fixes, bug fixes and so on http://linux.die.net/man/8/yum-security

Posted by bune, 08-21-2013, 04:55 PM
Its better to do manually as automates updated can also install rpms not required

Posted by dragonvps, 08-23-2013, 04:55 AM
don't automatic update all packages. I have many bad experiences with that.

Posted by hostultimo, 08-23-2013, 11:16 AM
The OP has since been suspended so I doubt he will benefit from any further replies

Posted by DominionHosting, 08-23-2013, 11:21 AM
yum -y update will only update and install rpms that are required or already installed. It cannot arbitrarily install rpms.

Posted by DominionHosting, 08-23-2013, 11:22 AM
Not me. Been doing it with dozens of CentOS servers for over 5 years.

Posted by JamesEmerson, 08-25-2013, 12:38 PM
It really depends on what is running and how stuff is setup. I personally like to review what gets updated before making changes. I've seen updates go wrong.

Posted by Steven, 08-25-2013, 08:37 PM
It really depends on what the server is running and what repos are in use. For example alot of people use atomic rocket turtle repo on plesk -- well many people were faced with broken websites due to them moving from php 5.3 to php 5.4 in their repo.. It really depends on what is running, blindly creating a cronjob to auto update is a bad idea. On the topic of security fixes, things like kernels will install but they will not be booted/active until you actually reboot the server, negating the function of the yum upgrade.

Posted by RRWH, 08-25-2013, 11:35 PM
While this is true, it can install new dependencies on a system - which may cause issues. Worth repeating: What we do on our servers is to run "yum check-update" daily from cron and manually review the suggested packages before updating. This is really important to us as we want to know what is going on and be across updates. With that being said, for VPS's running CPanel DNS Only, we just leave it and let it run the CPanel update which includes a yum update.

Posted by whmxtra, 08-26-2013, 02:37 AM
Also keep in mind many servers do kernel updates from yum, which requires a reboot if you aren't running ksplice, failure to reboot after a kernel update can end up leading to a kernal panic at some point. Best is what the poster above said, check yum for updates and have them emailed to you, then you at least know if you need to reboot or not or can change what is updated etc.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
ionCube upgrade (Views: 2096)