{"id":40,"date":"2008-01-22T11:45:21","date_gmt":"2008-01-22T16:45:21","guid":{"rendered":"http:\/\/yourlinuxguy.com\/?p=40"},"modified":"2008-02-28T15:24:52","modified_gmt":"2008-02-28T20:24:52","slug":"speaking-of-zmdrug-and-zypper-on-opensuse","status":"publish","type":"post","link":"https:\/\/yourLinuxGuy.com\/?p=40","title":{"rendered":"Speaking of zmd\/rug (and zypper) on Opensuse&#8230;"},"content":{"rendered":"<p>Since I mentioned <code>zmd<\/code> (and database corruption) in <a href=\"http:\/\/yourlinuxguy.com\/?p=39\" target=\"_blank\">the last post<\/a>, I thought I&#8217;d go on to mention that I &#8212; like you and everyone else out there &#8212; am not really fond of <code>zmd\/rug<\/code> as the default update mechanism on Opensuse 10.2 and previous. The good news is that Suse themselves apparently were not fond of it either, and removed it from Opensuse 10.3, and replaced it with <code>zypper<\/code>.<\/p>\n<p>(Note: all the following assumes that you have done the &#8220;Customer Center&#8221; setup, or whatever they want to call the update configuration in the version you&#8217;re running&#8230;)<\/p>\n<p>Fortunately, <code>zypper<\/code> has considerably less impact on a running system. It gracefully starts and exits without all the overhead of the <code>zmd<\/code> daemon needing to be running. You can easily stick it in your <code>crontab<\/code> like this:<\/p>\n<p><code>crontab -e<\/code><\/p>\n<p>&#8230;then add the following line (yes, using <code>vi<\/code> nomenclature):<\/p>\n<p><code><font size=\"1\">31 23 * * * zypper up -y -t patch  --skip-interactive<\/font><\/code><\/p>\n<p>&#8230;and save. This will run at 23:31 each night.<\/p>\n<p>Of course, you can do the same thing in Yast2 with the Automatic Online Update Setup module. The Yast2 module will create the following line in <code>\/etc\/cron.d\/yast2-online-update<\/code> :<\/p>\n<p><code><font size=\"1\">31 23 * * * root zypper up -y -t patch  --skip-interactive<\/font><\/code><\/p>\n<p>&#8230;depending on whether or not you choose to skip interactive (which you should, since it&#8217;s unattended), and of course your time will vary. If you just want to see what updates are ready and available, just enter:<\/p>\n<p><code><font size=\"1\">zypper lu<\/font><\/code><\/p>\n<p>Want more good news? The same <code>zypper<\/code> stuff now applies to Opensuse 10.2. Honestly, I&#8217;m not sure when it got put there, because I really never looked in the past. The only caveat appears to be that in 10.2 (or 10.1 for that matter), if you use the Yast2 Automatic Updates Setup tool, it will default to <code>zmd\/rug<\/code>, so you&#8217;ll need to be running the zmd daemon for that. It will put a line similar to the following in <code>\/etc\/cron.d\/yast2-online-update<\/code> :<\/p>\n<p><code><font size=\"1\">48 4 * * * root rug up -y -t patch  --skip-interactive<\/font><\/code><\/p>\n<p>&#8230;again, your date and options may vary. Note that <code>rug<\/code> is the client of <code>zmd<\/code>, and they need each other like drunk needs a bar, and a bar needs drunks.  \ud83d\ude09<\/p>\n<p>I have 10.1, 10.2, and 10.3 machines and the defaults go like this:<\/p>\n<ul>\n<li>On 10.1, you must use <code>zmd<\/code><\/li>\n<li>On 10.2, you can use <code>zmd<\/code> *or* <code>zypper<\/code><\/li>\n<li>On 10.3, you use <code>zypper<\/code><\/li>\n<\/ul>\n<p>I also want to make clear that I think <code>zmd<\/code> is not all bad. In fact, in Novell\/Suse OES-Linux (both versions), <code>rug\/zmd<\/code> is  the default and only choice, and it is somehow different and completely nice, low-impact, fast, and easy to use. I guess they figure if you&#8217;re going to spend &#8220;actual money&#8221; (thanks to IBM for that quote), you may as well not pissed off all the time about patching (like all of us Opensuse users used to be).<\/p>\n<p>\ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since I mentioned zmd (and database corruption) in the last post, I thought I&#8217;d go on to mention that I &#8212; like you and everyone else out there &#8212; am not really fond of zmd\/rug as the default update mechanism&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/yourLinuxGuy.com\/?p=40\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11,24,16,15,38],"tags":[],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-intermediate","category-opensuse102","category-opensuse103","category-suse","category-swupdates"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pnjn1-E","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":0,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"wp:attachment":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}