{"id":244,"date":"2017-09-05T15:12:36","date_gmt":"2017-09-05T12:12:36","guid":{"rendered":"http:\/\/meekconsulting.com\/?p=244"},"modified":"2022-01-08T16:26:32","modified_gmt":"2022-01-08T13:26:32","slug":"crontab-to-check-for-updates-on-redhat-or-centos","status":"publish","type":"post","link":"https:\/\/meekconsulting.com\/?p=244","title":{"rendered":"crontab to check for updates on Redhat or Centos"},"content":{"rendered":"<p>This is the entry we use to check for updates everynight.  If updates are available it will download them and send email so you can just jump on machine and do yum update -y<\/p>\n<blockquote><p>6 5 * * * \/usr\/bin\/yum -q check-update > \/etc\/motd 2>&1 || \/usr\/bin\/yum upgrade -y \u2013downloadonly | mailx -s \u201cyum updates on `uname -n`\u201d kmeek@meekconsulting.com<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>This is the entry we use to check for updates everynight. If updates are available it will download them and send email so you can just jump on machine and do yum update -y 6 5 * * * \/usr\/bin\/yum &hellip; <a href=\"https:\/\/meekconsulting.com\/?p=244\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/244"}],"collection":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=244"}],"version-history":[{"count":4,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/244\/revisions"}],"predecessor-version":[{"id":249,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/244\/revisions\/249"}],"wp:attachment":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}