Skip to content

Instantly share code, notes, and snippets.

@ifnull
Created March 7, 2013 01:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ifnull/5104689 to your computer and use it in GitHub Desktop.
Save ifnull/5104689 to your computer and use it in GitHub Desktop.
YUM cron for automatic security updates.
#!/bin/sh
yum -y -R 120 -d 0 -e 0 update yum
yum --security -y -R 10 -e 0 -d 0 update
@StevenACoffman
Copy link

-R, --randomwait=[time in minutes]
              Sets the maximum amount of time yum will wait before
              performing a command - it randomizes over the time.
-d, --debuglevel=[number]
              Sets the debugging level to [number] - turns up or down the
              amount of things that are printed. Practical range: 0 - 10
              Configuration Option: debuglevel
-e, --errorlevel=[number]
              Sets the error level to [number] Practical range 0 - 10. 0
              means print only critical errors about which you must be told.
              1 means print all errors, even ones that are not overly
              important. 1+ means print more errors (if any) -e 0 is good
              for cron jobs.
              Configuration Option: errorlevel
-y, --assumeyes
              Assume yes; assume that the answer to any question which would
              be asked is yes.
              Configuration Option: assumeyes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment