<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Admon Home &#187; yum</title>
	<atom:link href="http://www.admon.org/tag/yum/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.admon.org</link>
	<description>Linux System Administration</description>
	<lastBuildDate>Sat, 19 May 2012 03:36:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>YUM: Download a RPM package without installation</title>
		<link>http://www.admon.org/yum-download-a-rpm-package-without-installation/</link>
		<comments>http://www.admon.org/yum-download-a-rpm-package-without-installation/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 14:07:19 +0000</pubDate>
		<dc:creator>joseph</dc:creator>
				<category><![CDATA[System Tuning]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[yum]]></category>
		<category><![CDATA[yum-utils]]></category>

		<guid isPermaLink="false">http://planet.admon.org/?p=576</guid>
		<description><![CDATA[Yum is commonly used in major RPM based Linux distributions such as CentOS, Redhat and SuSE, it can help us perform automatic dependency checking. If you&#8217;d like to only download the RPM packages via yum and do not install/update them, it&#8217;s nearly impossible by default. How can we download a RPM package using YUM? Generally, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://planet.admon.org/wp-content/uploads/2010/04/yum.png"><img class="size-full wp-image-738 alignleft" title="yum" src="http://planet.admon.org/wp-content/uploads/2010/04/yum.png" alt="Yellowdog Updater, Modified" width="185" height="70" /></a>Yum is commonly used in major RPM based Linux distributions such as <a href="http://www.centos.org/">CentOS</a>, <a href="http://www.redhat.com/">Redhat</a> and <a href="http://www.novell.com/linux/">SuSE</a>, it can help us perform automatic dependency checking. If you&#8217;d like to only download the RPM packages via yum and do not install/update them, it&#8217;s nearly impossible by default. <span id="more-576"></span></p>
<p>How can we download a RPM package using YUM?  Generally, there are two ways, you can use either <strong>yum-downloadonly</strong> or <strong>yum-utils</strong>.  <strong>1, yum-downloadonly installation and usage example</strong> You just need to install a plugin called yum-downloadonly. This plugin supplies a new parameter called <em>&#8211;downloadonly</em> so that yum can download the package  s without an further installation/upgrade. It&#8217;s much like <a href="http://www.debian.org/doc/manuals/apt-howto/">apt-get</a>&#8216;s -d option in Ubuntu/Debian:</p>
<pre>$ yum --help| grep download
Loaded plugins: downloadonly, fastestmirror
  --downloadonly        don't update, just download
  --downloaddir=DLDIR   specifies an alternate directory to store package</pre>
<p>A further question is How can I install the download-only plugin for Yum? It&#8217;s as simple as a normal install, you just need to run:</p>
<pre>$ sudo yum install yum-downloadonly</pre>
<p>If you wanna download a package without installation, you just need to add the parameter <em>&#8211;downloadonly</em>. By default the downloaded package will be stored in /var/cache/yum,  you can specifies an alternate directory to store this file such as /opt, like this:</p>
<pre>yum update httpd -y --downloadonly --downloaddir=/opt</pre>
<p><strong>2, yum-utils.noarch installation and usage example</strong></p>
<p><a href="http://yum.baseurl.org/wiki/YumUtils">Yum-utils</a> is a collection of utilities and plugins extending and supplementing yum in different ways, and all the utilities are contained in yum-utils package, including the one that we need which is called yumdownloader.</p>
<pre># yum -y install yum-utils.noarch</pre>
<p>Now we can use the yumdownloader command to download packages from yum repositories. Here&#8217;s an example:</p>
<pre># yumdownloader httpd</pre>
<p>When you get the RPM, you can <a href="http://planet.admon.org/howto/rpm-common-usage-examples/">query further information from it</a>, or decompress it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.admon.org/yum-download-a-rpm-package-without-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to skip updating certain packages by YUM</title>
		<link>http://www.admon.org/how-to-skip-updating-certain-packages-by-yum/</link>
		<comments>http://www.admon.org/how-to-skip-updating-certain-packages-by-yum/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 07:58:37 +0000</pubDate>
		<dc:creator>joseph</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[system updates]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://planet.admon.org/?p=557</guid>
		<description><![CDATA[I&#8217;m runing RHEL/CentOS for a group of database servers, and they mainly use MySQL for productive services. Recently I noticed that MySQL&#8217;s new feathers and bug fixes that comes from system updates make little sense to our needs, so I&#8217;m planing not to apply these changes on our live servers, unless it&#8217;s really needed. The [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m runing RHEL/CentOS for a group of database servers, and they mainly use MySQL for productive services. Recently I noticed that MySQL&#8217;s new feathers and bug fixes that comes from <a href="http://mirror.centos.org/centos/5/updates/">system updates</a> make little sense to our needs, so I&#8217;m planing not to apply these changes on our live servers, unless it&#8217;s really needed.<span id="more-557"></span></p>
<p>The question is: How can I disable a certain package from being updated by <a href="http://yum.baseurl.org/">Yum</a> in Linux server environment?</p>
<p>After having a check with the parameter &#8220;<em>&#8211;help</em>&#8220;, I know that the Yum under RedHat / CentOS has an option &#8220;<em>&#8211;exclude</em>&#8220;, and it will exclude a specific package by name or shell glob (* or ?) from being updated, here&#8217;re two examples:</p>
<p><strong>1, Bypass updates for an exact package</strong><br />
You can just run this command. Note that you need to login as privileged user to use following commands:</p>
<pre>yum --exclude=mysql-server update</pre>
<p><strong>2, Bypass some packages with glob</strong><br />
For example, with the following command, you can exclude both mysql-client and mysql-server from update:</p>
<pre>yum --exclude=mysql* update</pre>
<p>There&#8217;s another alternative way to bypass the package.<br />
Yum also supplies a <strong>configuration parameter</strong> that can be used in <em>/etc/yum.conf</em> to bypass specified packages completely.<br />
To exclude packages from being updated, you can edit <em>/etc/yum.conf</em> and add one line as below:</p>
<pre>exclude=mysql*</pre>
<p>Further readings:  <a href="http://www.centos.org/docs/5/html/yum/sn-updating-your-system.html">Updating Your System with yum</a><br />
For any issues, it&#8217;s welcome to create postings at our support forum at <a href="http://forum.admon.org/">forum.admon.org</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.admon.org/how-to-skip-updating-certain-packages-by-yum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update CentOS 4 to CentOS 5 remotely</title>
		<link>http://www.admon.org/update-centos-4-to-centos-5-remotely/</link>
		<comments>http://www.admon.org/update-centos-4-to-centos-5-remotely/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 14:36:24 +0000</pubDate>
		<dc:creator>joseph</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[System Tuning]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://planet.admon.org/?p=510</guid>
		<description><![CDATA[I just successfully updated my Dell PowerEdge 1850 from CentOS 4.8 to CentOS 5.4, luckily the issues I faced were not so rare. The steps I used are listed below, may it helpful for you as well! Although this post is mainly intended for CentOS it should work on RHEL systems as well. Before you [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://planet.admon.org/wp-content/uploads/2009/12/centos5-150x150.png"><img class="alignleft size-full wp-image-749" title="centos5-150x150" src="http://planet.admon.org/wp-content/uploads/2009/12/centos5-150x150.png" alt="CentOS-5 Logo" width="150" height="150" /></a>I just successfully updated my Dell <a href="http://reviews.zdnet.co.uk/hardware/servers/0,1000001736,39193837,00.htm">PowerEdge 1850</a> from CentOS 4.8 to CentOS 5.4, luckily the issues I faced were not so rare. The steps I used are listed below, may it helpful for you as well! Although this post is mainly intended for CentOS it should work on RHEL systems as well.</p>
<p>Before you start, A word of advice i believe most experienced RHEL/CentOS users will show you regarding what you&#8217;re thinking:</p>
<p>Upgrade between minor versions (i.e. CentOS 5.2 -&gt; 5.3 -&gt; 5.4, or even 5.0 -&gt; 5.4) YES<br />
Upgrade between major system versions (i.e. CentOS 4.8 to CentOS 5.4) NO<span id="more-510"></span></p>
<p>As far as I recall, not even Red Hat recommends this &#8211; although they do guarantee the miner updates will go smoothly. Even if you manage to hammer that 4.8 to 5.4 upgrade into place, you might end up with a mess that will be very difficult to maintain. Before processing the system update, it&#8217;s suggested to create a backup!</p>
<p>If you are currently running a version of RHEL/CentOS earlier than 4.8 (<em>cat /etc/redhat-release</em>), then please do a proper &#8216;<em>yum update</em>&#8216; and get your current system updated to 4.8 before we start.</p>
<p>Then the first thing we need to do is to make sure none of our core binaries, libraries or other content is immutable as it causes package installation failures. If you use immutable bits on system paths then you should run these commands:</p>
<pre>chattr -Ria /bin
chattr -Ria /etc
chattr -Ria /etc
chattr -Ria /include
chattr -Ria /lib
chattr -Ria /sbin
chattr -Ria /usr/bin
chattr -Ria /usr/include
chattr -Ria /usr/lib
chattr -Ria /usr/libexec
chattr -Ria /usr/local/bin
chattr -Ria /usr/local/include
chattr -Ria /usr/local/lib
chattr -Ria /usr/local/sbin
chattr -Ria /usr/sbin
chattr -Ria /usr/share
chattr -Ria /var/lib
chattr -Ria /var/lock
chattr -Ria /var/log
chattr -Ria /var/run
chattr -Ria /var/spool/repackage</pre>
<p>Once finished, go ahead and have a quick run through of cleaning up yum cache, double check that any pending updates are installed and <a href="http://planet.admon.org/howto/rpm-common-usage-examples/">rebuild the rpmdb</a>:</p>
<pre>yum clean all &amp;&amp; yum update</pre>
<p>If you run into any dependency issues for packages that are not essential, such as syslinux and lftp then you can either exclude them or better just remove them. If the denpency issue is openssh-server related, you can enable telnet login during update by modifing <em>/etc/xinetd.d/telnet</em>.</p>
<pre>rpm -e lftp syslinux mkboot</pre>
<p>OR (but not recommended)</p>
<pre>yum update --exclude=syslinux --exclude=lftp --exclude=mkboot</pre>
<p>At this point you should be able to run a &#8216;<em>yum update</em>&#8216; command with optional exclude and receive no errors. Now we are ready to get going, please google around, find and download these packages, they mostly available at <a href="http://mirror.centos.org/centos/5.4/os/i386/CentOS/">CentOS official mirror site</a>:</p>
<pre># ls
centos-release-5-4.el5.centos.1.i386.rpm    python-elementtree-1.2.6-5.el4.centos.i386.rpm
centos-release-notes-5.4-4.i386.rpm       python-elementtree-1.2.6-5.el5.i386.rpm
kernel-2.6.18-164.el5.i686.rpm            python-elementtree-1.2.6-5.i386.rpm
kernel-devel-2.6.18-164.el5.i686.rpm      python-sqlite-1.1.7-1.2.1.i386.rpm</pre>
<p>We need to go ahead and setup the centos-release package as follows:</p>
<pre>rpm -Uhv centos-release-*.rpm</pre>
<p>If you see that CentOS-Base.repo was created as <em>/etc/yum.repos.d/CentOS-Base.repo.rpmnew</em> then move it to the right place:</p>
<pre># mv /etc/yum.repos.d/CentOS-Base.repo.rpmnew /etc/yum.repos.d/CentOS-Base.repo</pre>
<p>Now we are ready to go with kernel changes, this is an important part so pay attention. The key to successful upgrade is that you remove ALL OLD KERNELS as many packages will fail to install during the upgrade if they detect a release 4.x kernel due to minimum kernel version dependency checks. We will first start with installing the new CentOS 5.4 kernel so it preserves grub templating:</p>
<pre>rpm -ivh kernel-2.6.18-164.el5.i686.rpm kernel-devel-2.6.18-164.el5.i686.rpm --nodeps</pre>
<p>NOTE: release 5.x has smp support integrated into the standard kernel, so no *-smp version is required for multi-processor systems.</p>
<p>If you are running an older system the chances are you got allot of older kernel packages installed, so make sure you get them all out of the way:</p>
<pre>rpm -e $(rpm -qa | grep kernel | grep -v 2.6.18 | tr 'n' ' ') --nodeps</pre>
<p>That said and done you should now only have 2 kernel packages installed which are the 2.6.18 release 5.x kernels. DO NOT under any circumstance continue if you still got 2.6.9 release 4.x kernels packages installed, remove them ALL!</p>
<pre># rpm -qa | grep -i kernel
kernel-2.6.18-164.el5
kernel-devel-2.6.18-164.el5</pre>
<p>A cleanup of <em>/etc/grub.conf</em> may be required, though the rpm command should have done this for you already, but review it anyways for good measure. You should find that 2.6.18-164.el5 is the only kernel in the file. When kernel updated, a reboot here is OK, but it&#8217;s not suggested.</p>
<p>Then we can continute the system updates. There is a known bug with python-elementtree package versions which cause yum/rpm to think the release 4.x version is newer than the 5.x version, to get around this without blowing up the entire python installation we need to remove the package from just the rpmdb as follows:</p>
<pre>rpm -e --justdb python-elementtree --nodeps</pre>
<p>We can now go ahead and use yum to start the upgrade process, this is a dry run and will take some minutes to compile list of available packages and associated dependency checks. You should carry the exclude options, if any, that you used during the &#8216;yum update&#8217; process as so to avoid unresolvable dependencies:</p>
<pre>yum clean all
yum upgrade</pre>
<p>You will end up with a small list of dependency errors, these should be resolved by again evaluating a packages need as a critical system component and either removing it with &#8216;<em>rpm -e</em>&#8216; or excluding it with &#8216;<em>–exclude</em>&#8216; (remember to <a href="http://planet.admon.org/howto/rpm-common-usage-examples/">query description</a> if you are unsure what something does). In my case the packages that threw up red flags were stuff I had manually installed over time such as nfs in addition to default installed samba, these can all safely be removed or excluded as you prefer.</p>
<pre>    Error: Missing Dependency: perl(Convert::ASN1) is needed by package samba
    Error: Missing Dependency: libevent-1.1a.so.1 is needed bypackage nfs-utils</pre>
<p>At this point you should be ready to do a final dry run and see where we stand on dependencies, rerun the earlier &#8216;<em>yum upgrade</em>&#8216; while making sure to carry over any exclude options you are using.</p>
<p>You should now end up with a summary of actions that yum needs to perform, go ahead and kick it off&#8230; this will take a bit time to complete.</p>
<pre>    Transaction Summary
    ===========================================================
    Install 183 Package(s)
    Update 527 Package(s)
    Remove 0 Package(s)
    Total download size: 679 M
    Is this ok [y/N]:<strong>Y</strong>
</pre>
<p>Once yum has completed we need to fix a few things, the first is the rpmdb needs a rebuild due to version changes that will cause any rpm commands to fail:</p>
<pre>rm -f /var/lib/rpm/__db.00*
rpm --rebuilddb
yum clean all</pre>
<p>The next issue on the list is python-elementtree and python-sqlite, one or both of these may have <a href="http://forum.admon.org/rhel-centos/7355-yum-no-module-named-sqlite-resovled.html">ended up in a broken state</a> that will cause all yum commands to break, so we will go ahead and reinstall both of them:</p>
<pre>rpm -e --justdb python-elementtree --nodeps
rpm -ivh python-elementtree-1.2.6-5.el5.i386.rpm
rpm -ivh python-sqlite-1.1.7-1.2.1.i386.rpm --nodeps --force</pre>
<p>The yum command should now work, go ahead and run it with no options, if you do not get any errors, you are all sorted!</p>
<p>Hopefully the install went well for you, the only thing left to do is go ahead and reboot the system:</p>
<pre>shutdown -rf now</pre>
<p>For the sake of avoiding a system raised fsck, we will reboot with the -f option to skip fsck.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.admon.org/update-centos-4-to-centos-5-remotely/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>CentOS-5.4 i386 and x86_64 Released</title>
		<link>http://www.admon.org/centos-5-4-i386-and-x86_64-released/</link>
		<comments>http://www.admon.org/centos-5-4-i386-and-x86_64-released/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 14:07:55 +0000</pubDate>
		<dc:creator>joseph</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://planet.admon.org/?p=367</guid>
		<description><![CDATA[CentOS community annouced the availability of CentOS-5.4 for i386 and x86_64 Architectures this week. It&#8217;s based on the upstream release Redhat Enterprise Linux 5.4.0 and includes packages from all variants including Server and Client. This is just an announcement email, not the release notes. The Release Notes for CentOS-5.4 can be found on-line at wiki.centos.org. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="https://www.centos.org/"><a href="http://planet.admon.org/wp-content/uploads/2009/12/centos5-150x150.png"><img class="alignleft size-full wp-image-749" title="centos5-150x150" src="http://planet.admon.org/wp-content/uploads/2009/12/centos5-150x150.png" alt="CentOS-5 Logo" width="150" height="150" /></a>CentOS community</a> annouced the availability of CentOS-5.4 for i386 and x86_64 Architectures this week. It&#8217;s based on the upstream release Redhat Enterprise Linux 5.4.0 and includes packages from all variants including Server and Client.</p>
<p>This is just an announcement email, not the release notes. The Release Notes for CentOS-5.4 can be found <a href="http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.4">on-line at wiki.centos.org</a>.<span id="more-367"></span></p>
<p><strong><a href="http://mirror.centos.org/centos/5/isos/">Download CentOS 5.4 at Mirror.CentOS.org Now!</a></strong></p>
<p>Since upstream released their 5.4 media, a series of updates have been issued. All these pending updates for CentOS-5.4 will be released over the next 48 to 96 hours to be complete by Monday, 26th Oct 2009.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.admon.org/centos-5-4-i386-and-x86_64-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable Disable the automatic YUM updates</title>
		<link>http://www.admon.org/enabledisable-the-automatic-yum-updates/</link>
		<comments>http://www.admon.org/enabledisable-the-automatic-yum-updates/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 02:22:25 +0000</pubDate>
		<dc:creator>joseph</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[rhel4]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://www.admon.org/?p=928</guid>
		<description><![CDATA[How can I disable YUM automatic update completely? In some old versioned system, YUM auto-update feature comes as an extension named &#8220;yum-autoupdate&#8221;, and it contains runlevel scripts and scheduled crontab scripts.  Enable YUM automatic update It&#8217;s as simple as our services, which can be done as below: chkconfig --add yum-autoupdate service yum-autoupdate start Diable YUM [...]]]></description>
			<content:encoded><![CDATA[<p>How can I disable YUM automatic update completely?</p>
<p>In some old versioned system, YUM auto-update feature comes as an extension named &#8220;yum-autoupdate&#8221;, and it contains runlevel scripts and scheduled crontab scripts. <span id="more-928"></span></p>
<p><strong>Enable YUM automatic update</strong></p>
<p>It&#8217;s as simple as our services, which can be done as below:</p>
<pre>chkconfig --add yum-autoupdate
service yum-autoupdate start</pre>
<p><strong>Diable YUM automatic update</strong></p>
<p>Here&#8217;s a script for you to do the job, it disables both run-level script, and remove the scheduled cron jobs:</p>
<pre>#!/bin/sh
################################
# Disable yum cron and daemons #
################################

echo "++++++++++++++++++++++++++++++++++++++++++++++++"
echo "Yum cron jobs are now disabled"

[ -e /etc/cron.hourly/yum-autoupdate ] &amp;&amp; rm -f /etc/cron.hourly/yum-autoupdate
[ -e /etc/cron.hourly/yum ] &amp;&amp; rm -f /etc/cron.hourly/yum
[ -e /etc/cron.daily/yum.cron ] &amp;&amp; rm -f /etc/cron.daily/yum.cron

yum_status=`chkconfig --list |grep yum |grep "3:on"`
service_name=`chkconfig --list |grep yum | cut -f 1`

for serv in $service_name; do
  if [ "x$yum_status" != "x" ]; then
    echo "++++++++++++++++++++++++++++++++++++++++++++++++"
    echo "+ $serv has been switched to off"
    chkconfig $serv off
  fi

  if [ -e /var/lock/subsys/$serv ]; then
    /etc/init.d/$serv stop
  fi

  echo "Done $serv"
done
############################</pre>
<p>If you need to re-enable the service, better to force re-install the extension &#8220;yum-autoupdate&#8221;, and the removed files will be restored.</p>
<p>[Updates] In recent distributions, the auto-update extension is named yum-updatesd, which has the scheduled cron jobs removed, so basically you can take it as a normal service.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.admon.org/enabledisable-the-automatic-yum-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to skip broken dependencies when Upgrading System</title>
		<link>http://www.admon.org/how-to-skip-broken-dependencies-when-upgrading-system/</link>
		<comments>http://www.admon.org/how-to-skip-broken-dependencies-when-upgrading-system/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 10:39:53 +0000</pubDate>
		<dc:creator>joseph</dc:creator>
				<category><![CDATA[System Tuning]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://blog.admon.org/?p=143</guid>
		<description><![CDATA[I made a mistake and added additional repo under CentOS / RHEL 5.x server. Now when I try to upgrade packages it gives me out broken ependencies / missing dependency error. How do I skip broken packages and apply updates to other installed software&#8217;s? Packages with broken dependencies is really bad. Yum generally take care [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>I made a mistake and added additional repo under <a href="http://www.centos.org/">CentOS</a> / <a href="http://www.redhat.com">RHEL 5.x</a> server. Now when I try to upgrade packages it gives me out broken ependencies / missing dependency error. How do I <strong>skip broken packages</strong> and apply updates to other installed software&#8217;s?<span id="more-143"></span></p>
<p>Packages with broken dependencies is really bad. Yum generally take care of such business, but when you mix additional repos it may give out &#8216;Missing Dependency&#8217; error under <strong>RHEL</strong> / <strong>CentOS Linux</strong> 5.x systems.</p>
<p>You need to add plugin called <strong>yum-skip-broken</strong> which adds a new parameter -<strong>-skip-broken</strong> to yum to make it possible to check packages for dependency problems and skip the one with problems.</p>
<p>Install yum-skip-broken</p>
<p>Type the following command as root user:</p>
<pre># yum -y install yum-skip-broken</pre>
<p>Sample output:</p>
<pre>Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* base: mirror.steadfast.net
* updates: mirror.steadfast.net
* addons: centos-distro.cavecreek.net
* extras: mirrors.liquidweb.com
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--&gt; Running transaction check
---&gt; Package yum-skip-broken.noarch 0:1.1.10-9.el5.centos set to be updated
--&gt; Finished Dependency Resolution
Dependencies Resolved
=======================================================
Package                 Arch       Version          Repository        Size
=======================================================
Installing:
yum-skip-broken         noarch     1.1.10-9.el5.centos  base               11 k
Transaction Summary
======================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 11 k
Downloading Packages:
(1/1): yum-skip-broken-1. 100% |=========================|  11 kB    00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: yum-skip-broken              ######################### [1/1]
Installed: yum-skip-broken.noarch 0:1.1.10-9.el5.centos
Complete!</pre>
<p>How to handle skiping packages with dependency problems<br />
Now type the command as follows:</p>
<pre># yum -y upgrade --skip-broken</pre>
<p>OR</p>
<pre># yum -y update --skip-broken</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.admon.org/how-to-skip-broken-dependencies-when-upgrading-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert RHEL 5 to CentOS 5</title>
		<link>http://www.admon.org/convert-rhel-5-to-centos-5/</link>
		<comments>http://www.admon.org/convert-rhel-5-to-centos-5/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 11:53:52 +0000</pubDate>
		<dc:creator>joseph</dc:creator>
				<category><![CDATA[System Tuning]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://planet.admon.org/?p=349</guid>
		<description><![CDATA[Recently I was working on a Dell PE1950 at work and decided to get Xen installed, so that I can create some virtual servers for our developers. Finding out that Xen in Redhat Enterprise Linux is not so easy to download &#8211; I cannot find it from any public accessible websites, I decided to use [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was working on a <a href="http://www.itreviews.co.uk/hardware/h1075.htm">Dell PE1950</a> at work and decided to get Xen installed, so that I can create some virtual servers for our developers.</p>
<p>Finding out that Xen in <a href="http://www.redhat.com/rhel">Redhat Enterprise Linux</a> is not so easy to download &#8211; I cannot find it from any public accessible websites, I decided to use CentOS&#8217;s yum repoes to download and install Xen. When I have CentOS yum repo created in <em>/etc/yum.repo.d</em>, I noticed that it cannot work in RHEL &#8211; It cannot recognize OS version without some updates of application.<span id="more-349"></span></p>
<p>That&#8217;s why I tried to convert my RHEL 5.3 to CentOS 5.3. Here are the commands that I used. You can just copy &amp; paste:</p>
<pre>rpm -e --nodeps redhat-release
rpm -e --nodeps yum-rhn-plugin
wget http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
rpm --import RPM-GPG-KEY-CentOS-5
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/centos-release-notes-5.3-3.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/centos-release-5-3.el5.centos.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm</pre>
<p>Now the convertion has finished, you can check <em>/etc/redhat-release</em> for an updated information, and the repo&#8217;s config directory for more details on current repoes.</p>
<p>Finally, dont forget to enjoy a FREE CentOS yum updating:</p>
<pre>yum clean all
yum update</pre>
<p>I’m not quite sure if it totally works well. Nevertheless, I&#8217;ve succefully had the system updated, the Xen kernel are running smoothly as well. If I faced any issues, I&#8217;d create a new post at <a href="http://forum.admon.org/rhel-centos/">our redhat/centos support forum</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.admon.org/convert-rhel-5-to-centos-5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

