<?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>Sohail Riaz, Linux and Open Source Blog &#187; YUM</title>
	<atom:link href="http://www.sohailriaz.com/category/yum/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sohailriaz.com</link>
	<description>Sohail Riaz, Linux and Open Source Blog</description>
	<lastBuildDate>Sat, 17 Jul 2010 07:38:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How To Install MyTOP &#8211; a top clone for MySQL</title>
		<link>http://www.sohailriaz.com/how-to-install-mytop-a-top-clone-for-mysql/</link>
		<comments>http://www.sohailriaz.com/how-to-install-mytop-a-top-clone-for-mysql/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 08:57:54 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[YUM]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=112</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/how-to-install-mytop-a-top-clone-for-mysql/"><img src=""  alt="" title="" /></a>
In this howto i will describe how to install mytop package on CentOS 5.3. MyTOP is top command clone to monitor mysql performance including queries, threads etc. You can get source of it from here to build or you can use rpmforge repositories for pre-build rpms. The machine i used to demonstrte is in production [...]]]></description>
			<content:encoded><![CDATA[<p>In this howto i will describe how to install mytop package on CentOS 5.3. MyTOP is top command clone to monitor mysql performance including queries, threads etc. You can get source of it from <a title="MyTOP Website" href="http://jeremy.zawodny.com/mysql/mytop/" target="_blank">here</a> to build or you can use rpmforge repositories for pre-build rpms. The machine i used to demonstrte is in production and getting very high mysql access, its running on CentOS 5.3.<span id="more-112"></span></p>
<h3>1 Setting Up RPMForge Repository</h3>
<p>RPMForge repository (http://dag.wieers.com) is the biggest rpm respository for RHEL, CentOS for all versions. To enable RPMForge respository run following command. The following command directly install rpm from http://dag.wieers.com site.</p>
<blockquote><p>rpm -Uhv <a href="http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm">http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm</a></p></blockquote>
<p>This rpm will add necessary files in our repository configuration and can be viewed at <strong>/etc/yum.repos.d/rpmforge.repo</strong></p>
<h3>2 Install MyTOP</h3>
<p>Use yum to install mytop on your machine</p>
<blockquote><p>yum -y install mytop</p></blockquote>
<p>It will install mytop with all necessary pre-requisite to run mytop.</p>
<h3>3 Running MyTOP</h3>
<p>To run use</p>
<blockquote><p>mytop</p></blockquote>
<p>if you have restricted access using password then</p>
<blockquote><p>mytop -u root -p &lt;password&gt; -h localhost</p></blockquote>
<p><strong><span style="color: #ff0000;">NOTE</span></strong>: You may get following error in CentOS 5.3<br />
<strong>Error in option spec: “long|!”</strong></p>
<p>To fix this do following.</p>
<blockquote><p>chmod 755 /usr/bin/mytop<br />
vi /usr/bin/mytop</p></blockquote>
<p>Search for the line</p>
<blockquote><p>&#8220;long|!&#8221;              =&gt; \$config{long_nums},</p></blockquote>
<p>Change it to by commenting using #</p>
<blockquote><p>#&#8221;long|!&#8221;              =&gt; \$config{long_nums},</p></blockquote>
<p>Now run the command again and it will run fine and you can see mytop giving all the information about you mysql server.</p>
<blockquote><p>mytop</p></blockquote>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=112&amp;ts=1283814780" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/how-to-install-mytop-a-top-clone-for-mysql/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How To Create RPM Using Source RPM</title>
		<link>http://www.sohailriaz.com/how-to-create-rpm-using-source-rpm/</link>
		<comments>http://www.sohailriaz.com/how-to-create-rpm-using-source-rpm/#comments</comments>
		<pubDate>Sun, 24 May 2009 08:20:26 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[WGET]]></category>
		<category><![CDATA[YUM]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[RPM]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=99</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/how-to-create-rpm-using-source-rpm/"><img src=""  alt="" title="" /></a>
In this how to i will describe how to create binary rpm (installable) using source rpm i.e *.src.rpm. Source rpm is collection of source files in tar.gz, patches and spec file. Spec file defines how the source code will compile with current machine, defining depencies and generate rpm from source rpm. Usually we do this [...]]]></description>
			<content:encoded><![CDATA[<p>In this how to i will describe how to create binary rpm (installable) using source rpm i.e *.src.rpm. Source rpm is collection of source files in tar.gz, patches and spec file. Spec file defines how the source code will compile with current machine, defining depencies and generate rpm from source rpm. Usually we do this when we need to have some custom changes to be made in required software.<span id="more-99"></span></p>
<h3>1) Pre-requisite</h3>
<p>First of all you should have install rpm-devel and rpm-build rpms from your distro repository. Confirm it using following command</p>
<blockquote><p>rpm -qa | grep rpm</p>
<p>rpm-4.3.3-26<br />
rpm-devel-4.3.3-26<br />
rpm-python-4.3.3-26<br />
redhat-rpm-config-8.0.32.1-4<br />
rpmdb-CentOS-4.7-0.20080805<br />
rpm-libs-4.3.3-26<br />
rpm-build-4.3.3-26</p></blockquote>
<p>If you see required rpms in the list then you are good to go with source rpm compilation, else you have to install required rpms.</p>
<blockquote><p>yum -y install rpm-build rpm-devel</p>
<p>or</p>
<p>rpm -ivh /path/rpm-build* /path/rpm-devel*</p></blockquote>
<p>The rpm-build and rpm-devel also build following directories for source rpm compilations.</p>
<p>/usr/src/redhat/{BUILD,RPMS,SOURCES,SPECS,SRPMS}</p>
<h3>2) Compiling the source</h3>
<p>Get your source rpm which you need to compile.  Here i will get the ffmpeg source rpm from http://dag.wieers.com/rpm/packages/ffmpeg/ because i need to add libamr-nb and libamr-wb support for converting 3gp clips.</p>
<blockquote><p>wget http://dag.wieers.com/rpm/packages/ffmpeg/ffmpeg-0.4.9-0.9.20070530.rf.src.rpm</p>
<p>rpm -ivh ffmpeg-0.4.9-0.9.20070530.rf.src.rpm</p></blockquote>
<p>It will install source files tar.gz, patch files in</p>
<p>/usr/src/redhat/SOURCES</p>
<p>and spec file in</p>
<p>/usr/src/redhat/SPECS</p>
<p>I have to add &#8211;with-libamrnb and &#8211;with-libamrwb in ./configure command specified in ffmpeg.spec and you can edit whatever you are going to change/edit.</p>
<p>After editing now compile the sources and generate rpm using spec file.</p>
<blockquote><p>cd /usr/src/redhat/SPECS</p>
<p>rpmbuild -bb ffmpeg.spec</p></blockquote>
<p>The above command will apply patches if any and compile the source and generate rpm under /usr/src/redhat/RPMS sub-directories regarding to your architecture i.e</p>
<p>/usr/src/redhat/RPMS/i386 for i386,i686</p>
<p>/usr/src/redhat/RPMS/x86_64 for x86_64 etc.</p>
<p>While compiling you will see the verbose output of compilation and you should see clean compilation with notifying of generating rpm at the end.</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=99&amp;ts=1283814780" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/how-to-create-rpm-using-source-rpm/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How To Configure Yum Behind Authenticated Proxy Server</title>
		<link>http://www.sohailriaz.com/how-to-configure-yum-behind-authenticated-proxy-server/</link>
		<comments>http://www.sohailriaz.com/how-to-configure-yum-behind-authenticated-proxy-server/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 07:12:03 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Proxy]]></category>
		<category><![CDATA[YUM]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=36</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/how-to-configure-yum-behind-authenticated-proxy-server/"><img src=""  alt="" title="" /></a>
This how to describe to configure YUM to work behind proxy server using username / password for authentication. YUM is great tool available in RHEL/Fedora/CentOS to install/update/remove packages easily from local and internet repositories. In the most offices / schools / colleges where proxies are implemented and direct connection to the internet is not possible [...]]]></description>
			<content:encoded><![CDATA[<p>This how to describe to configure YUM to work behind proxy server using username / password for authentication. YUM is great tool available in RHEL/Fedora/CentOS to install/update/remove packages easily from local and internet repositories. In the most offices / schools / colleges where proxies are implemented and direct connection to the internet is not possible and all internet traffic goes through proxy servers. Same as in my office we have to use proxy server with username / password to authenticate ourself to get internet access. So we are going to configure my YUM software to use proxy to get my LINUX updated with new softwares all the times with repositories available on internet.<span id="more-36"></span></p>
<p>OS = Fedora 10</p>
<h3>1) Configure yum.conf</h3>
<blockquote><p>vi /etc/yum.conf</p></blockquote>
<p>enter following lines at bottom of [main] section</p>
<blockquote><p>proxy=http://yourproxyaddress:port/<br />
proxy_username=youruser<br />
proxy_password=yourpassword</p></blockquote>
<h3>2) Export http_proxy variable</h3>
<blockquote><p>export http_proxy=&#8221;http://yourproxyaddress:80/&#8221;</p></blockquote>
<h3>3) Export http_proxy variable in bash login script</h3>
<blockquote><p>vi /root/.bash_profile</p></blockquote>
<blockquote><p>export http_proxy=&#8221;http://yourproxyaddress:80/&#8221;</p></blockquote>
<p>This will help you to export http_proxy variable automatically everytime you login.</p>
<p>Now use &#8220;yum list&#8221; command to check for its working.</p>
<blockquote><p>yum list</p></blockquote>
<p>Enjoy Brothers <img src='http://www.sohailriaz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=36&amp;ts=1283814780" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/how-to-configure-yum-behind-authenticated-proxy-server/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>HowTo Install YUM on CentOS 5.2 VPS</title>
		<link>http://www.sohailriaz.com/howto-install-yum-on-centos-52-vps/</link>
		<comments>http://www.sohailriaz.com/howto-install-yum-on-centos-52-vps/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 03:05:02 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[YUM]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=19</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/howto-install-yum-on-centos-52-vps/"><img src=""  alt="" title="" /></a>
This howto describe how to install yum on CentOS 5.2 VPS. VPS (Virtual Private Servers) usually comes cheap to install, administrate and manage LINUX with administrated (root) priviliges. In this way you have fully fuctional LINUX available to work on it. But some of the host provide very basic template of CentOS 5.2 for VPS [...]]]></description>
			<content:encoded><![CDATA[<p>This howto describe how to install yum on CentOS 5.2 VPS. VPS (Virtual Private Servers) usually comes cheap to install, administrate and manage LINUX with administrated (root) priviliges. In this way you have fully fuctional LINUX available to work on it. But some of the host provide very basic template of CentOS 5.2 for VPS which only install minimal amount of software to run these VPS. I came across one of my VPS with very minimal installation and which doesn&#8217;t have YUM install in it. YUM (Yellow Update Manager) is a very necessary tool now a days to install any software from internet using online repository without getting any getting problems of dependencies.<span id="more-19"></span></p>
<p>So I decided to install yum software with all depended softwares from CentOS.org site using rpm command. First you have to get to any mirror site of CentOS which contain CentOS 5.2 rpms.</p>
<h3>1. Installation</h3>
<p>The best part of this howto is you have to just install the necessary softwares and everything will be ready after install. The following packages will be needed to install YUM software successfully.</p>
<ul>
<li><span style="color: #000000;">yum</span></li>
<li><span style="color: #000000;">python-elementtree</span></li>
<li><span style="color: #000000;">python-iniparse</span></li>
<li><span style="color: #000000;">python-sqlite</span></li>
<li><span style="color: #000000;">rpm-python</span></li>
<li><span style="color: #000000;">python-urlgrabber</span></li>
<li><span style="color: #000000;">yum-metadata-parser</span></li>
<li><span style="color: #000000;">m2crypto</span></li>
</ul>
<p>It may be possible that some of the above software are already installed and may be some more depended software needed. For more software you just have to add any other depended software full URL to the following command which i will used to install yum.</p>
<blockquote><p>rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/yum-3.2.8-9.el5.centos.1.noarch.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/rpm-python-4.4.2-48.el5.i386.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/python-urlgrabber-3.1.0-2.noarch.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/m2crypto-0.16-6.el5.2.i386.rpm</p></blockquote>
<p>As soon as installation completed, you have fully functional YUM is available and now you can use any command to test successfull installation, usually i used</p>
<blockquote><p>yum list</p></blockquote>
<p>To check the available software for distribution I am using.</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=19&amp;ts=1283814780" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/howto-install-yum-on-centos-52-vps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
