Everything is a Freaking DNS problem - apt http://127.0.0.1:8080/blog/taxonomy/term/471/0 en To Package, and what to package http://127.0.0.1:8080/blog/package-and-what-package <p>One of the open sessions last week (corr: last month) at Devopsdays 2010 Hamburg was the one on packaging software. It's always a big question on wether you package the software that runs in your infrastructure or not. And if you package it .. what do you package ..</p> <p>The general consensus of the open space was pretty much that you always package the software you deploy, unless you have some very good reasons not to. Pretty much the way I've been doing for ages ..</p> <p>Good reasons that were mentionned were the use of scripting languages that update extremely frequently, but certainly not for compiled code, compiling code on a production machine also is a big nono.</p> <p>There also was a consensus that you DO NOT PUT CONFIGURATION inside a package. You can put in default templates, but you don't put in config files that should change frequently .. There's plenty of configuration mgmt systems out there do that kind of stuff for you.</p> <p>The naysayers claimed that packaging brings way to much overhead ... and others claim it takes to much time... however I feel it<br /> should just be a 1 time effort that brings devs and ops closer to eachother and from there on it should automated<br /> New versions of software don't mean that the packaging effort needs to be done again..</p> <p>Another topic that gathered lots of questions was if you should be capable of installing multiple versions of the same package , lots of people mentionned they didn't like fiddling with symlinks however the best comment in that discussion was that there is already a system out there , the <cite>alternatives</cite> setup .. provide by most operating systems that allow you to do so in a pretty clean way. I must admit I should look into <cite>alternatives</cite> more in depth too ..</p> <p>The ever recurring question is wether one should package war files ? Sure as you then can also use the dependency models a package mgmt system brings to deploy the dependent libraries.</p> <p>However when people ship products, rather than a live service they seem to package everything , mainly because the code in the product isn't changing as quickly as a live website, or internally used application.</p> <p>The biggest problem however is the frustration people have with GEM or CPAN packages .. they add yet another layer of management to a system, most lots of CPAN packages are already packaged.. but when it comes to GEM's disaster strikes. There's a lot of work left for distributions to integrate GEM and CPAN style packages.</p> http://127.0.0.1:8080/blog/package-and-what-package#comments apt devops package rpm Mon, 01 Nov 2010 19:20:30 +0000 Kris Buytaert 1020 at http://127.0.0.1:8080/blog To not yum or to not apt-get, that's NOT the question. http://127.0.0.1:8080/blog/not-yum-or-not-apt-get-thats-not-question <p>Over at the <a href="http://code.openark.org/blog/mysql/to-not-yum-or-to-not-apt-get" rel="nofollow">OPenARK blog</a> Shlomi Noach argues that using apt-get or yum to install your MySQL instance will one day most likeley break your MySQL setup. Depdendencies, distros not shipping the MySQL version you want to use and on some distro's indeed the mysql vs MySQL issue, agreed, it all makes things less trivial.</p> <p>However why give up a clean packaged system if there are other ways out ?</p> <p>First of all by claiming that such an installation can break a working production environment looks to me like admitting you don't have a split development, production environment and that rather than testing stuff upfront indeed you just hack a long in production.</p> <p>So rather than using a tarball for the MySQL instance an --force to satisfy the missing dependencies (hence also cluttering your system) , a much cleaner and less error prone setup is to only deploy from your own , self controlled repository , in which you only allow tested packages, most probably not the distro based package , hence packages that won't break your setups ;) But still you will be using apt or yum and deploying rpm's and debs , perfectly satisfying dependency needs.</p> <p>Apart from that .. watch out for Banquise .. :) Coming to your favourite distro soon..</p> http://127.0.0.1:8080/blog/not-yum-or-not-apt-get-thats-not-question#comments apt apt-get banquise deb mysql rpm yum Tue, 16 Feb 2010 20:13:33 +0000 Kris Buytaert 986 at http://127.0.0.1:8080/blog Apt to the rescue http://127.0.0.1:8080/blog/node/596 <p>So while upgrading python from a limited local repository I broke yum<br /> <div class="geshifilter"><pre class="text geshifilter-text" style="font-family:monospace;"><ol><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">[root@NTC-BASE-2 ~]# yum -y install foo</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">Traceback (most recent call last):</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> File &quot;/usr/bin/yum&quot;, line 28, in ?</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> import yummain</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">ImportError: No module named yummain</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&lt;code&gt;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">However apt was still working</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&lt;code&gt;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">[root@NTC-BASE-2 ~]# rpm -e yum</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">[root@NTC-BASE-2 sources.list.d]# apt-get update</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">STUFF CUT</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">Fetched 3980kB in 8s (478kB/s)</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">Reading Package Lists... Done</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">Building Dependency Tree... Done</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">[root@NTC-BASE-2 sources.list.d]# apt-get install yum</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">Reading Package Lists... Done</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">Building Dependency Tree... Done</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">The following extra packages will be installed:</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> yum-metadata-parser</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">The following NEW packages will be installed:</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> yum yum-metadata-parser</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">0 upgraded, 2 newly installed, 0 removed and 234 not upgraded.</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">Need to get 419kB of archives.</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">After unpacking 1412kB of additional disk space will be used.</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">Do you want to continue? [Y/n] y</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">Get:1 &lt;a href=&quot;http://mirror.centos.org&quot; title=&quot;http://mirror.centos.org&quot;&gt;http://mirror.centos.org&lt;/a&gt; centos/4/apt/i386/os yum-metadata-parser 1.0-8.el4.centos [24.0kB]</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">Get:2 &lt;a href=&quot;http://mirror.centos.org&quot; title=&quot;http://mirror.centos.org&quot;&gt;http://mirror.centos.org&lt;/a&gt; centos/4/apt/i386/os yum 2.4.3-4.el4.centos [395kB]</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">Fetched 419kB in 1s (417kB/s)</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">Committing changes...</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">Preparing... ########################################### [100%]</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> 1:yum-metadata-parser ########################################### [ 50%]</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> 2:yum ########################################### [100%]</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">Done.</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">[root@NTC-BASE-2 sources.list.d]# y</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">[root@NTC-BASE-2 sources.list.d]# yum update</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">Setting up Update Process</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">Setting up repositories</div></li></ol></pre></div></p> <p>Back in business :)</p> <p><a href="http://www.raskas.be/blog/" rel="nofollow">Good idea Raskas :)</a></p> http://127.0.0.1:8080/blog/node/596#comments apt yum Tue, 12 Feb 2008 19:25:06 +0000 Kris Buytaert 596 at http://127.0.0.1:8080/blog Identifying the Distribution of a Linux System http://127.0.0.1:8080/blog/node/430 <p>So <a href="http://etbe.coker.com.au/2007/08/30/identifying-the-distribution-of-a-linux-system/" rel="nofollow">Russel is wondering</a> how to figure out what platform you are on by adding a script or so that will tell you you are on a RPM based machine when trying to run dpkg or tell you you need to use rpm.</p> <p>Imvho that system is broken .. as everybody with some brains uses apt, even on an rpm based system.</p> http://127.0.0.1:8080/blog/node/430#comments apt rpm yum Fri, 31 Aug 2007 12:16:26 +0000 Kris Buytaert 430 at http://127.0.0.1:8080/blog