{"id":1565,"date":"2012-06-04T16:37:39","date_gmt":"2012-06-04T21:37:39","guid":{"rendered":"http:\/\/www.kickflop.net\/blog\/?p=1565"},"modified":"2012-06-04T16:48:31","modified_gmt":"2012-06-04T21:48:31","slug":"safer-yum","status":"publish","type":"post","link":"https:\/\/www.kickflop.net\/blog\/2012\/06\/04\/safer-yum\/","title":{"rendered":"Safer yum"},"content":{"rendered":"<p>We got sick of yum hanging on corrupt RPM databases.<\/p>\n<p><script src=\"https:\/\/gist.github.com\/2870955.js\"> <\/script><\/p>\n<p>Though <a href=\"https:\/\/twitter.com\/#!\/ohlol\">@scoot<\/a> suggests, instead, running a rebuild-if-needed cron job on all hosts instead of wrapping the yum command:<\/p>\n<pre>\r\n0 * * * * \/usr\/lib\/rpm\/rpmdb_verify \/var\/lib\/rpm\/[A-Z]* > \/dev\/null 2>&1 || rpm --rebuilddb\r\n<\/pre>\n<p>Pick your poison.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We got sick of yum hanging on corrupt RPM databases. Though @scoot suggests, instead, running a rebuild-if-needed cron job on&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35,11,48],"tags":[],"class_list":["post-1565","post","type-post","status-publish","format-standard","hentry","category-linux","category-sysadmin","category-unixlinux"],"_links":{"self":[{"href":"https:\/\/www.kickflop.net\/blog\/wp-json\/wp\/v2\/posts\/1565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kickflop.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kickflop.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kickflop.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kickflop.net\/blog\/wp-json\/wp\/v2\/comments?post=1565"}],"version-history":[{"count":5,"href":"https:\/\/www.kickflop.net\/blog\/wp-json\/wp\/v2\/posts\/1565\/revisions"}],"predecessor-version":[{"id":1571,"href":"https:\/\/www.kickflop.net\/blog\/wp-json\/wp\/v2\/posts\/1565\/revisions\/1571"}],"wp:attachment":[{"href":"https:\/\/www.kickflop.net\/blog\/wp-json\/wp\/v2\/media?parent=1565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kickflop.net\/blog\/wp-json\/wp\/v2\/categories?post=1565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kickflop.net\/blog\/wp-json\/wp\/v2\/tags?post=1565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}