Thursday, April 20, 2006

Yum:my stuff for the Lazy (or lazier) admin



Erik, isn't it kind of always (say, daily) the right time to put that up alias to work?

As for my contribution, here is the Fedora Core version: alias up='yum update' ;)

Seriously speaking, the lazy Fedora admin perhaps doesn't need no up alias but the even lazier will enable automatic unattended daily upgrades, via service start yum. As for all other services that you want to have autostarted on reboot, it needs to be but inside /etc/rc.d/. We have two handy text-mode tools for that in fedora-land (graphical ones are also available), either run chkconfig --add yum or for another flavor run ntsysv, the latter will present a text menu where you just check the yum item and press Ok.

For the curious of you, the yum "service" doesn't start a daemon as usual, but rather forces /etc/cron.daily/yum.cron to run (daily, via cron -- no kidding!) by passing a lockfile test. More details in /etc/init.d/yum.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.