<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Going a bit off track from upgrades here.  In a cluster environment with debian do you spend a fair bit of time compiling anything from source?</p>
<div> </div>
<p> </p>
<p>On 2016-05-20 12:08, Tim Cutts wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">In practice, at Sanger we haven't made very heavy use of the ability of Debian to upgrade from release to release.  We use FAI to install the boxes, so frankly it's faster and less hassle to just reinstall them from scratch when the next release comes out.<br /> <br /> For some complicated bespoke systems, I have done the manual upgrade, and I've even done that across debian-derived distros.<br /> <br /> Officially, you're not supposed to be able to use apt to upgrade a system from Debian to Ubuntu, for example, but I have done it in the past - I worked out a documented procedure for doing a dist-upgrade from Debian Lenny to Ubuntu Lucid, for example.  At one point, you do have to force downgrade packages which are newer in the original os than they are in the target, which led to the following one liner of which I am perversely proud:<br /> <br /> aptitude search -F '%p' ~i | xargs -n 1 apt-cache policy | sed -n -e '<br /> /^[a-z0-9.-]*:$/{h;d;}<br /> /\*\*\*/{<br />   n<br />   /^  *500 /d<br />   /^  *100 /{<br />     n<br />     /^  *[^ ]/{x;s/:/\/lucid/p;x;}<br />   }<br />   /^[a-z0-9.-]*:$/{h;d;}<br /> }<br /> ' | xargs apt-get -y --force-yes install<br /> <br /> <br /> Gotta love sed for resulting in completely impenetrable commands.  I did try to do it in a more readable way using the python APT bindings, but that was actually much harder.<br /> <br /> Tim<br /> _______________________________________________<br /> Beowulf mailing list, <a href="mailto:Beowulf@beowulf.org">Beowulf@beowulf.org</a> sponsored by Penguin Computing<br /> To change your subscription (digest mode or unsubscribe) visit <a href="http://www.beowulf.org/mailman/listinfo/beowulf">http://www.beowulf.org/mailman/listinfo/beowulf</a></div>
</blockquote>
</body></html>