Aug 092014
 

Ci spiace, ma questo articolo è disponibile soltanto in Inglese Americano.

Popular Posts:

Flattr this!

  10 Responses to “(English) Enabling automatic updates in Centos 7 and RHEL 7”

  1. How does yum-cron work? Is it constantly checking for updates and will download and apply them in real time? How can I configure yum-cron to run only at certain times?

    • There is this 0yum-daily.cron file inside your /etc/cron.daily/ that is executed daily by your scheduler. It checks for the existence of /var/lock/subsys/yum-cron file. If it doesn’t exist, the cron job just ends. If it does exist, the cron script executes /usr/sbin/yum-cron.

      And this /var/lock/subsys/yum-cron file is touched or removed by your yum-cron.service systemd script when you start or stop it respectively.

  2. Hello friend! thanks for the nice post.!

    I have a question about the schedule for apply the updates. for example if i want to apply the updates only at midnight, which will be the best solution to set yum-cron to run in this schedule?

    thanks!

    • Copy a version of it to /usr/local/sbin, configure it the way you want, and enable a task in /etc/cron.d to run it specifically at midnight.

  3. OK but my system tells me there is no yum-cron available. How do I get that?

  4. Correct me if I’m wrong, but IMO you need to enable yum.cron in the normal manner so as to make sure it restarts if the server reboots: systemctl enable yum-cron.service

  5. Hi;

    I try to find if minimal-security-severity:Critical
    will include minimal update + security update + critical update or just update corespond to those 3 criterias
    in others words : it is a & or a OR

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

*