{"id":129,"date":"2006-01-23T13:54:00","date_gmt":"2006-01-23T18:54:00","guid":{"rendered":"https:\/\/www.thehouse.net\/2006\/01\/23\/rollback-your-rpm-installs-on-fedora-using-yum\/"},"modified":"2006-02-04T13:31:38","modified_gmt":"2006-02-04T18:31:38","slug":"rollback-your-rpm-installs-on-fedora-using-yum","status":"publish","type":"post","link":"https:\/\/www.thehouse.net\/?p=129","title":{"rendered":"Rollback your RPM Installs on Fedora using Yum"},"content":{"rendered":"<p>There&#8217;s a little-known option in RPM that enables the <span style=\"font-style: italic\">rollback<\/span> of package installs. Think of it like an <span style=\"font-style: italic\">undo<\/span> option in your favorite application; it will rollback the package install to a previously known state\/version. Yum support this option in Fedora Core 4 (and upcoming Core 5); here&#8217;s an excerpt taken from <a href=\"http:\/\/www.oreillynet.com\/pub\/wlg\/9080?CMP=OTC-0O724Z062301&#038;ATT=RPM+Rollback+in+Fedora+Core+4\/5\">Chris Tyler&#8217;s posting on OreillyNet<\/a>:<\/p>\n<blockquote><p>Here are cut-to-the-chase directions on using this feature:<\/p>\n<ol>\n<li>To configure <em>yum<\/em> to save rollback information, add the line <tt>tsflags=repackage<\/tt> to <em>\/etc\/yum.conf<\/em>.<\/li>\n<li>To configure command-line <em>rpm<\/em> to do the same thing, add the line <tt>%_repackage_all_erasures 1<\/tt> to <em>\/etc\/rpm\/macros<\/em>.<\/li>\n<li>Install, erase, and update packages to your heart&#8217;s content, using <em>pup<\/em>, <em>pirut<\/em>, <em>yumex<\/em>, <em>yum<\/em>, <em>rpm<\/em>, and the <em>yum<\/em> automatic update service.<\/li>\n<\/ol>\n<p>If\/when you want to rollback to a previous state, perform an <em>rpm<\/em> update with the <tt>--rollback<\/tt> option followed by a date\/time specification. Some examples: <tt>rpm -Uhv --rollback '9:00 am'<\/tt>, <tt>rpm -Uhv --rollback '4 hours ago'<\/tt>, <tt>rpm -Uhv --rollback 'december 25'<\/tt>.<\/p><\/blockquote>\n<p>As Chris mentions, keep in mind that you&#8217;ll be using lots more storage space to keep prior versions of packages around.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s a little-known option in RPM that enables the rollback of package installs. Think of it like an undo option in your favorite application; it will rollback the package install to a previously known state\/version. Yum support this option in Fedora Core 4 (and upcoming Core 5); here&#8217;s an excerpt taken from Chris Tyler&#8217;s posting [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":""},"categories":[7,6],"tags":[],"class_list":["post-129","post","type-post","status-publish","format-standard","hentry","category-geek-stuff","category-linux"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pA6RZ-25","_links":{"self":[{"href":"https:\/\/www.thehouse.net\/index.php?rest_route=\/wp\/v2\/posts\/129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thehouse.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thehouse.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thehouse.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thehouse.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=129"}],"version-history":[{"count":0,"href":"https:\/\/www.thehouse.net\/index.php?rest_route=\/wp\/v2\/posts\/129\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.thehouse.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thehouse.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thehouse.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}