<?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>Linux Explore &#187; Yum a package management tool</title>
	<atom:link href="https://blog.linuxexplore.com/category/yum-a-package-management-tool/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.linuxexplore.com</link>
	<description>Exploring Linux</description>
	<lastBuildDate>Mon, 07 Apr 2014 00:30:50 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>Yum A Package Management Tool</title>
		<link>https://blog.linuxexplore.com/2010/10/03/yum-a-package-management-tool/</link>
		<comments>https://blog.linuxexplore.com/2010/10/03/yum-a-package-management-tool/#comments</comments>
		<pubDate>Sun, 03 Oct 2010 16:07:50 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore Tips & Tricks]]></category>
		<category><![CDATA[Yum a package management tool]]></category>
		<category><![CDATA[package-management]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=281</guid>
		<description><![CDATA[yum is a package management tool, used to install, uninstall or update the Linux (CentOS, RHEL, Fedora etc.) packages. You can use yum with root privilege only. To install a package: yum install packagename To update a package, if already install or to install a package: yum update packagename To reinstall a installed package: yum&#8230;]]></description>
				<content:encoded><![CDATA[<p>yum is a package management tool, used to install, uninstall or update the Linux (CentOS, RHEL, Fedora etc.) packages. You can use yum with <strong>root</strong> privilege only.</p>
<p>To install a package:</p>
<blockquote><p>yum install packagename</p></blockquote>
<p>To update a package, if already install or to install a package:</p>
<blockquote><p>yum update packagename</p></blockquote>
<p>To reinstall a installed package:</p>
<blockquote><p>yum reinstall packagename</p></blockquote>
<p>To remove a installed package:</p>
<blockquote><p>yum remove packagename</p></blockquote>
<p>To see the list of package groups:</p>
<blockquote><p>yum grouplist</p></blockquote>
<p>To install all the packages of a group:</p>
<blockquote><p>yum groupinstall packagegroupname</p></blockquote>
<p>To update all the packages of a group:</p>
<blockquote><p>yum groupupdate packagegroupname</p></blockquote>
<p>To remove all the packages of a group:</p>
<blockquote><p>yum groupremove packagegroupname</p></blockquote>
<p>If you want to exclude some packages from group to install or update or remove, use<strong> &#8220;&#8211;exclude&#8221;</strong> option:</p>
<blockquote><p>yum groupinstall packagegroupname &#8211;exclude=excludepackagename</p></blockquote>
<p>To clean the cache of packages database:</p>
<blockquote>
<blockquote><p>yum clean all</p></blockquote>
</blockquote>
<p>Now some little tricky commands.</p>
<p>To disable all the repository &amp; enable the given repositories only &amp; then again same yum commands:</p>
<blockquote><p>yum &#8211;disablerepo=* &#8211;enablerepo=myreponame1,myreponame2 install packagename</p></blockquote>
<p>You can get the reponame from the repo files inside the <strong>/etc/yum.repo.d</strong> directory. For example, the CentOS.repo file&#8217;s content is showing the reponame inside the square brackets &#8220;<strong>[ ]</strong>&#8221; as <strong>base </strong>&amp; <strong>update</strong>. To select all the repo,&#8221;<strong>*</strong>&#8221; is used.</p>
<blockquote><p>[base]<br />
name=CentOS-$releasever &#8211; Base<br />
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&amp;arch=$basearch&amp;repo=os<br />
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/<br />
gpgcheck=1<br />
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5</p>
<p>#released updates<br />
[updates]<br />
name=CentOS-$releasever &#8211; Updates<br />
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&amp;arch=$basearch&amp;repo=updates<br />
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/<br />
gpgcheck=1<br />
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5</p></blockquote>
<p><strong>&#8220;yum clean all&#8221;</strong> command does not clean the cache of disabled repositories, clean the cache by enabling all the repositories, remove all the cache:</p>
<blockquote><p>yum &#8211;enablerepo=* clean all</p></blockquote>
<p>you can also remove the directory /var/cache/yum/* to clean all the cache of repositories.</p>
<p>There are so many other commands &amp; combination in yum. If you like to share, please write as a comment.</p>
<p><strong>If you like this post, don&#8217;t forget to share it with others&#8230;&#8230;&#8230;&#8230;..</strong></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2010/10/03/yum-a-package-management-tool/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
