Indunil Jayasooriya
2007-Feb-27 04:11 UTC
[CentOS] How to enable yum at startup with yum 2.9
Hi all, I updated yum 2.4 to yum 2.9 from ATRPMS by using yum as below. yum update yum I now have yum 2.9. pls see yum ver below [root at mailgw yum]# rpm -qa |grep yum yum-2.9.4-74.el4.at yum-metadata-parser-1.0-7.1_1.el4.at Before that (i.e when I was running yum 2.4), I could enable yum at startup as below chkconfig yum on and I was also able to start/stop/restart yum as below. /etc/init.d/yum restart. I also had a crontab at /etc/cron.daily/yum.cron for updates as below. cat /etc/cron.daily/yum.cron #!/bin/sh if [ -f /var/lock/subsys/yum ]; then /usr/bin/yum -R 120 -e 0 -d 0 -y update yum /usr/bin/yum -R 10 -e 0 -d 0 -y shell /etc/yum/yum-daily.yum fi But, Since I updated yum to 2.9, All those are gone. Now I want to know that how to enable, restart yum. And also I want ot know should I write a crontab for my daily updtaes? Help needed. -- Thank you Indunil Jayasooriya -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070227/adbd1a7e/attachment.html>
> I updated yum 2.4 to yum 2.9 from ATRPMS by using yum as below.You should *not* do that. As you already realized, it actually breaks things.> But, Since I updated yum to 2.9, All those are gone. > > Now I want to know that how to enable, restart yum. > > And also I want ot know should I write a crontab for my daily > updtaes? > > Help needed.Probably the best guess is: - get a copy of the current yum rpm for CentOS 4 - uninstall the atrpms yum - install the CentOS yum After you have done that look into the protectbase plugin for yum[1]. It can be used to prevent a 3rd party repository (like atrpms) from updating the CentOS base packages, as this is usually not a good idea. An example how it can be enabled for RPMForge[2] is also avaiable in the Wiki[3]. Hope that helps Andreas [1] http://wiki.centos.org/PackageManagement/Yum/ProtectBase [2] http://wiki.centos.org/Repositories/RPMForge [3] http://wiki.centos.org/ -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3187 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20070227/1e383d22/attachment.bin>