Everything is a Freaking DNS problem - yum http://127.0.0.1:8080/blog/taxonomy/term/473/0 en Evolution Woes and yum magic http://127.0.0.1:8080/blog/evolution-woes-and-yum-magic <p>I`m an oldschool guy .. I still love pop3(s) to get my mails locally and read them with my fat email client. Evolution.</p> <p>So when gmail breaks their pop/imap infra I`m screwed for a while. I hate reading mail from a web gui and the collapsed threading model gmail uses makes me nauseus.</p> <p>So I fiddled with my config .. disabled it.. deleted the account.. created it again. But even after gmail was up again . I couldn't access my mail from my favourite client. Yet from other clients it seemed to work.</p> <p>This obviously is real fun when you are travelling and trying to keep an eye on a number of different email threads ..</p> <p>So I`m back home from Paris now and spend some 10 minutes figuring out what could be wrong.</p> <p>I ran into <a href="https://bugzilla.redhat.com/show_bug.cgi?id=949180" title="https://bugzilla.redhat.com/show_bug.cgi?id=949180" rel="nofollow">https://bugzilla.redhat.com/show_bug.cgi?id=949180</a> which points out that for newly created there is a problem with the keyring prompting</p> <p>And refers to <a href="https://bugzilla.redhat.com/show_bug.cgi?id=953641" title="https://bugzilla.redhat.com/show_bug.cgi?id=953641" rel="nofollow">https://bugzilla.redhat.com/show_bug.cgi?id=953641</a> accounts Which states that gcr-3.6.2-3 breaks password prompt/keyring unlocks.</p> <p>And indeed .. </p> <p><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">yum shell</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">Loaded plugins: langpacks, presto, ps, puppetverify, refresh-packagekit</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&gt; remove gcr</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&gt; install gcr-3.6.2-1.fc18</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">adobe-linux-x86_64 | 951 B 00:00 </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">fedora/18/x86_64/metalink | 31 kB 00:00 </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">google-chrome | 951 B 00:00 </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">google-earth | 951 B 00:00 </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">google-talkplugin | 951 B 00:00 </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">rpmfusion-free-updates | 3.3 kB 00:00 </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">rpmfusion-nonfree-updates | 3.3 kB 00:00 </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">updates/18/x86_64/metalink | 24 kB 00:00 </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">rpmfusion-free-updates/primary_db | 279 kB 00:01 </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&gt; run</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> --&gt; Running transaction check</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">---&gt; Package gcr.x86_64 0:3.6.2-1.fc18 will be installed</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">---&gt; Package gcr.x86_64 0:3.6.2-3.fc18 will be erased</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> --&gt; Finished Dependency Resolution</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"> ================================================================================</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Package Arch Version Repository Size</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> ================================================================================</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Installing:</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> gcr x86_64 3.6.2-1.fc18 fedora 627 k</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Removing:</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> gcr x86_64 3.6.2-3.fc18 @updates 2.3 M</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"> Transaction Summary</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> ================================================================================</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Install 1 Package</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Remove 1 Package</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"> Total download size: 627 k</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Is this ok [y/N]: y</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Downloading Packages:</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> gcr-3.6.2-1.fc18.x86_64.rpm | 627 kB 00:02 </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Running Transaction Check</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Running Transaction Test</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Transaction Test Succeeded</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Running Transaction</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Installing : gcr-3.6.2-1.fc18.x86_64 1/2 </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Cleanup : gcr-3.6.2-3.fc18.x86_64 2/2 </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Verifying : gcr-3.6.2-1.fc18.x86_64 1/2 </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Verifying : gcr-3.6.2-3.fc18.x86_64 2/2 </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Removed:</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> gcr.x86_64 0:3.6.2-3.fc18 </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Installed:</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> gcr.x86_64 0:3.6.2-1.fc18 </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"> Finished Transaction</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> &gt; quit</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> &gt; Leaving Shell</div></li></ol></pre></div></p> <p>Solved the problem</p> http://127.0.0.1:8080/blog/evolution-woes-and-yum-magic#comments evolution gcr gmail yum Fri, 19 Apr 2013 20:54:33 +0000 Kris Buytaert 1079 at http://127.0.0.1:8080/blog Packaging Drupal Modules or not ? http://127.0.0.1:8080/blog/packaging-drupal-modules-or-not <p>So <a href="http://bitfieldconsulting.com/puppet-drupal" rel="nofollow">John</a> wrote down his experiences on deploying Drupal sites with Puppet .</p> <p>It's not a secret that I've been thinking about similar stuff and how I could get to the best possible setup.</p> <p>John starts of with using Puppet to download Drush... while I want to use <a href="http://repo.inuits.be/centos/5/os/noarch/drush-All-Versions-2.1-1.noarch.rpm" rel="nofollow">rpm</a> for that ...</p> <p>I want my core infrastructure to be fully packaged... not downloaded and untarred. I want to be able to reproduce my platform in a couple of months , with the exact same versions I`m using now .. not with the version that happens to be on ftp.drupal.org at that point in time, or with ftp.drupal.org being down.</p> <p>Now the next question off course is what's the core infrastructure.<br /> Where does the infrastructure end and does the application start. There's little discussion about having a puppet created vhost , an apache conf.d file, a matching .htaccess file if wanted , and the appropriate settings.php for a multisite drupal config.</p> <p>There's also little doubt to me on using drush to run the updates, manage the drupal site etc . Reading John's article made me think some further about what and when I want things packaged. </p> <p>John's post lead to a discussion on #infra-talk on getting all drupal modules packaged for Centos with <a href="http://www.karan.org/blog/" rel="nofollow">Karan</a> and some others</p> <p>In a development environment I probably want to have periodic drush updates getting the latest modules from the interwebs and potentially breaking my devs code. But making sure that when you put a site in production it will be on a fairly up to date platform, and not on the platform you started developing on 24 months ago.</p> <p>In a production environment however you only want tested updates of your modules as indeed they will break code.</p> <p>It's probably going to be a mix and match setup having a local rpm/deb repo with packaged modules that have been tested and validated in your setup and using drush to enable or configure them for that production setup.</p> <p>But also having a CI environment wher Drush will get the new modules from the interwebs when needed. and package them for you.</p> <p>To me that sounds beter than getting all the available Drupal modules and packaging them, even automated, and preparing a repository of those modules of which only a small percentage will actually be used by people.</p> <p>But I need to think about it some more :)</p> http://127.0.0.1:8080/blog/packaging-drupal-modules-or-not#comments apt-get centos devops drupal puppet rpm yum Tue, 16 Feb 2010 20:20:13 +0000 Kris Buytaert 987 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 Yummie MySQL Repository http://127.0.0.1:8080/blog/node/646 <p>It seems like <a href="http://jcole.us/blog/archives/2008/04/17/now-available-proven-scaling-mysql-yum-repository/" rel="nofollow">Jeremy</a> wants to be MySQL community president this week :)</p> <p>The announcement of a MySQL yum repository is a good one but it's slightly confusing me .. didn't Jeremy already have this with<br /> <a href="http://www.dorsalsource.org/" rel="nofollow">Dorsal</a>, where there are also 5.1 builds. So what's the difference between Dorsal and the new yum repo anyway . </p> <p>But he asks for Adittionals packages , well 5.1 to start with, apart from that the <a href="http://mirror.centos.org/centos/4/centosplus/i386/RPMS/" rel="nofollow">CentosPlus repo</a> also has builds for Cluster , having a uniform place go get those to would be good. </p> <p>And what about builds for <a href="http://johanandersson.blogspot.com/2008/03/mysql-cluster-cge-building-from-source.html" rel="nofollow">CGE ? </a><br /> Oh and while you are at it .. can you run genbasedir also .. that way we can also use apt4rpm :) </p> <p>Now I all need is a repository with all drupal modules packaged separatly :)</p> http://127.0.0.1:8080/blog/node/646#comments apt4rpm cge dorsal drupal mysql ndbd yum Fri, 18 Apr 2008 18:46:58 +0000 Kris Buytaert 646 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