<?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>Lâmôlabs &#187; rpm</title>
	<atom:link href="http://www.lamolabs.org/blog/tag/rpm/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lamolabs.org/blog</link>
	<description>Lame Oh Labs .... Linux &#38; Tech! Is there anything else?</description>
	<lastBuildDate>Thu, 09 Sep 2010 15:02:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>[one-liner]: Using Yum to Download RPMs under Fedora, CentOS, and RHEL</title>
		<link>http://www.lamolabs.org/blog/3520/one-liner-using-yum-to-download-rpms-under-fedora-centos-rhel/</link>
		<comments>http://www.lamolabs.org/blog/3520/one-liner-using-yum-to-download-rpms-under-fedora-centos-rhel/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 14:37:29 +0000</pubDate>
		<dc:creator>slmingol</dc:creator>
				<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[one-liner]]></category>
		<category><![CDATA[package management]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://www.lamolabs.org/blog/?p=3520</guid>
		<description><![CDATA[Background

<p>From time to time I&#8217;ve run into an RPM that won&#8217;t install via yum. These usually pop up because I&#8217;ve mixed packages in from a 3rd party repository, and the 3rd party package has some overlapping files with an already installed RPM.</p>

Problem

<p>Here&#8217;s an example that happened to me recently on a Fedora 10 system where [...]]]></description>
			<content:encoded><![CDATA[<h3>Background</h3>

<p>From time to time I&#8217;ve run into an <strong><span class="caps">RPM</span></strong> that <strong>won&#8217;t install</strong> via <strong>yum</strong>. These usually pop up because I&#8217;ve <strong>mixed</strong> packages in from a <strong>3rd party repository</strong>, and the 3rd party package has some overlapping files with an already installed <span class="caps">RPM.</span></p>

<h3>Problem</h3>

<p>Here&#8217;s an example that happened to me recently on a Fedora 10 system where I was trying to install some pulseaudio related packages.</p>


<div class="wp_codebox"><table width="100%" ><tr id="p35205"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code" id="p3520code5"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> yum <span style="color: #c20cb9; font-weight: bold;">install</span> xmms-pulse xine-lib-pulseaudio
Package xmms-pulse-0.9.4-6.fc10.i386 already installed and latest version
Resolving Dependencies
--<span style="color: #000000; font-weight: bold;">&gt;</span> Running transaction check
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package xine-lib-pulseaudio.i386 0:1.1.16.3-2.fc10 <span style="color: #000000; font-weight: bold;">set</span> to be updated
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: xine-lib = 1.1.16.3-2.fc10 <span style="color: #000000; font-weight: bold;">for</span> package: xine-lib-pulseaudio-1.1.16.3-2.fc10.i386
--<span style="color: #000000; font-weight: bold;">&gt;</span> Finished Dependency Resolution
xine-lib-pulseaudio-1.1.16.3-2.fc10.i386 from updates has depsolving problems
  --<span style="color: #000000; font-weight: bold;">&gt;</span> Missing Dependency: xine-lib = 1.1.16.3-2.fc10 is needed by package xine-lib-pulseaudio-1.1.16.3-2.fc10.i386 <span style="color: #7a0874; font-weight: bold;">&#40;</span>updates<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Error: Missing Dependency: xine-lib = 1.1.16.3-2.fc10 is needed by package xine-lib-pulseaudio-1.1.16.3-2.fc10.i386 <span style="color: #7a0874; font-weight: bold;">&#40;</span>updates<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 You could try using <span style="color: #660033;">--skip-broken</span> to work around the problem
 You could try running: package-cleanup <span style="color: #660033;">--problems</span>
                        package-cleanup <span style="color: #660033;">--dupes</span>
                        rpm <span style="color: #660033;">-Va</span> <span style="color: #660033;">--nofiles</span> <span style="color: #660033;">--nodigest</span></pre></td></tr></table></div>




<h3>Solution</h3>

<p>If you&#8217;re confident that this is a <strong>&#8220;false positive&#8221;</strong> type of error you can force your way around it like so. First download the <span class="caps">RPM </span>using the never mentioned command <strong>yumdownloader</strong>. </p>

<p><strong><span class="caps">NOTE</span>:</strong> yumdownloader is part of the yum-utils package.</p>


<div class="wp_codebox"><table width="100%" ><tr id="p35206"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p3520code6"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> yumdownloader xine-lib-pulseaudio</pre></td></tr></table></div>




<p>Next try to install/upgrade the package.</p>


<div class="wp_codebox"><table width="100%" ><tr id="p35207"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p3520code7"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> rpm <span style="color: #660033;">-Uvh</span> <span style="color: #660033;">--nodeps</span> xine-lib-pulseaudio-1.1.16.3-2.fc10.i386.rpm 
Preparing...                <span style="color: #666666; font-style: italic;">########################################### [100%]</span>
	<span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>xine<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/</span>1.26<span style="color: #000000; font-weight: bold;">/</span>xineplug_ao_out_pulseaudio.so from <span style="color: #c20cb9; font-weight: bold;">install</span> of xine-lib-pulseaudio-1.1.16.3-2.fc10.i386 conflicts with <span style="color: #c20cb9; font-weight: bold;">file</span> from package xine-lib-1.1.16.3-18.fc10.i386</pre></td></tr></table></div>




<p>This is what I would consider a bogus error. For whatever reason, both <span class="caps">RPM</span>s share the same file, so let&#8217;s just install it already by doing a forced installation of the <span class="caps">RPM.</span></p>


<div class="wp_codebox"><table width="100%" ><tr id="p35208"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p3520code8"><pre class="bash" style="font-family:monospace;"> <span style="color: #000000; font-weight: bold;">%</span> rpm <span style="color: #660033;">-Uvh</span> <span style="color: #660033;">--force</span> <span style="color: #660033;">--nodeps</span> xine-lib-pulseaudio-1.1.16.3-2.fc10.i386.rpm 
Preparing...                <span style="color: #666666; font-style: italic;">########################################### [100%]</span>
   <span style="color: #000000;">1</span>:xine-lib-pulseaudio    <span style="color: #666666; font-style: italic;">########################################### [100%]</span></pre></td></tr></table></div>




<p><strong><span class="caps">NOTE</span>:</strong> For further details regarding my <strong>one-liner</strong> blog posts, check out my <a href="http://www.lamolabs.org/blog/2147/intro-blogs-one-liner-code-block-style-guides/">one-liner style guide primer</a>.</p><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.lamolabs.org/blog/401/git-and-subversion-setup-on-centos-5/" rel="bookmark" class="wherego_title">Git and subversion setup on CentOS 5</a></li><li><a href="http://www.lamolabs.org/blog/2147/intro-blogs-one-liner-code-block-style-guides/" rel="bookmark" class="wherego_title">Intro to my Blog&#8217;s [one-liner] Code Block Style Guides</a></li><li><a href="http://www.lamolabs.org/blog/3479/syslog-message-levels/" rel="bookmark" class="wherego_title">Syslog Message Levels</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.lamolabs.org/blog/3520/one-liner-using-yum-to-download-rpms-under-fedora-centos-rhel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing Ruby Support in Vim on Fedora 10, 11, and CentOS 5 &amp; Installing the Vim Textile plugin</title>
		<link>http://www.lamolabs.org/blog/2662/fixing-ruby-support-in-vim-on-fedora-10-11-and-centos-5-installing-the-vim-textile-plugin/</link>
		<comments>http://www.lamolabs.org/blog/2662/fixing-ruby-support-in-vim-on-fedora-10-11-and-centos-5-installing-the-vim-textile-plugin/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 15:00:09 +0000</pubDate>
		<dc:creator>slmingol</dc:creator>
				<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[textile]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.lamolabs.org/blog/?p=2662</guid>
		<description><![CDATA[Background

<p>A while back I was trying to get the vim textile plugin installed and ran into a problem. Apparently the vim that&#8217;s included with Fedora 10, 11, and CentOS 5 doesn&#8217;t include ruby support. This bug report explains what&#8217;s wrong with vim and how it&#8217;s missing ruby support. The problem is visible with this command:</p>


1
2
3
4
% [...]]]></description>
			<content:encoded><![CDATA[<h4>Background</h4>

<p>A while back I was trying to get the <a href="http://www.vim.org/scripts/script.php?script_id=2305">vim textile plugin</a> installed and ran into a problem. Apparently the vim that&#8217;s included with Fedora 10, 11, and CentOS 5 doesn&#8217;t include ruby support. This <a href="https://bugzilla.redhat.com/show_bug.cgi?id=503872">bug report</a> explains what&#8217;s wrong with vim and how it&#8217;s missing ruby support. The problem is visible with this command:</p>


<div class="wp_codebox"><table width="100%" ><tr id="p266218"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p2662code18"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #660033;">--version</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> ruby
+printer +profile +python +quickfix +reltime +rightleft <span style="color: #660033;">-ruby</span> +scrollbind 
...
...</pre></td></tr></table></div>




<p>The <strong>&ndash;ruby</strong> tells us that ruby support isn&#8217;t enabled. The only solution I&#8217;ve seen thus far is to rebuild vim. Not really a huge deal but it&#8217;s work non the less 8-).</p>

<h4>Rebuilding vim with ruby support</h4>

<p>Here&#8217;s how I fixed it.</p>

<p><strong>download vim Source <span class="caps">RPM </span>(SRPM)</strong></p>


<div class="wp_codebox"><table width="100%" ><tr id="p266219"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p2662code19"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>mirrors.xmission.com<span style="color: #000000; font-weight: bold;">/</span>fedora<span style="color: #000000; font-weight: bold;">/</span>updates<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span><span style="color: #000000; font-weight: bold;">/</span>SRPMS<span style="color: #000000; font-weight: bold;">/</span>vim-7.2.148-1.fc10.src.rpm</pre></td></tr></table></div>




<p><strong>confirm that ruby is installed</strong></p>


<div class="wp_codebox"><table width="100%" ><tr id="p266220"><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code" id="p2662code20"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> yum list installed ruby<span style="color: #000000; font-weight: bold;">*|</span>column -t<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> ruby
ruby.i386        1.8.6.287-2.fc10  installed
ruby-devel.i386  1.8.6.287-2.fc10  installed
ruby-irb.i386    1.8.6.287-2.fc10  installed
ruby-libs.i386   1.8.6.287-2.fc10  installed
ruby-rdoc.i386   1.8.6.287-2.fc10  installed</pre></td></tr></table></div>




<p><strong>make sure you have your own rpmbuild directory</strong></p>


<div class="wp_codebox"><table width="100%" ><tr id="p266221"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p2662code21"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> ~<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>BUILD,RPMS,SOURCES,SPECS,SRPMS<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># caution with this second command if you already have your own .rpmmacros, this will overwrite!</span>
<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'%_topdir %(echo $HOME)/rpmbuild'</span> <span style="color: #000000; font-weight: bold;">&gt;</span> ~<span style="color: #000000; font-weight: bold;">/</span>.rpmmacros</pre></td></tr></table></div>




<p><strong>rebuild vim / re-install vim</strong></p>


<div class="wp_codebox"><table width="100%" ><tr id="p266222"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p2662code22"><pre class="bash" style="font-family:monospace;">rpmbuild <span style="color: #660033;">--rebuild</span> vim-7.2.148-1.fc10.src.rpm
rpm <span style="color: #660033;">--force</span> <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span>vim-<span style="color: #7a0874; font-weight: bold;">&#123;</span>c,e,m,X<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #000000; font-weight: bold;">*</span></pre></td></tr></table></div>




<p><strong>check that vim now has ruby support</strong></p>


<div class="wp_codebox"><table width="100%" ><tr id="p266223"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p2662code23"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #660033;">--version</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> ruby
+printer +profile +python +quickfix +reltime +rightleft +ruby +scrollbind 
...
...</pre></td></tr></table></div>




<p>Ahh. a <strong>+ruby</strong> means it worked.</p>

<h4>Textile Plugin for vim</h4>

<p>Now onto installing the vim textile plugin. </p>

<p><strong>First things first, we need to install rubygems</strong></p>


<div class="wp_codebox"><table width="100%" ><tr id="p266224"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p2662code24"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> yum <span style="color: #c20cb9; font-weight: bold;">install</span> rubygems</pre></td></tr></table></div>




<p><strong>Next we need to install the</strong> <a href="http://redcloth.org/">RedCloth</a> <strong>gem, it&#8217;s required by the</strong> <a href="http://www.vim.org/scripts/script.php?script_id=2305">textile plugin</a></p>


<div class="wp_codebox"><table width="100%" ><tr id="p266225"><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code" id="p2662code25"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> RedCloth
Building native extensions.  This could take a while...
Successfully installed RedCloth-4.2.2
1 gem installed
Installing ri documentation <span style="color: #000000; font-weight: bold;">for</span> RedCloth-4.2.2...
Installing RDoc documentation <span style="color: #000000; font-weight: bold;">for</span> RedCloth-4.2.2...</pre></td></tr></table></div>




<p><strong>Finally, install the textile plugin</strong></p>

<p>Downloading the textile plugin from <a href="http://www.vim.org/scripts/script.php?script_id=2305">here</a>,</p>

<p><span id="more-2662"></span></p>


<div class="wp_codebox"><table width="100%" ><tr id="p266226"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
</pre></td><td class="code" id="p2662code26"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># unpack the zip</span>
<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">unzip</span> textile-0.3.zip
   creating: textile<span style="color: #000000; font-weight: bold;">/</span>
   creating: textile<span style="color: #000000; font-weight: bold;">/</span>doc<span style="color: #000000; font-weight: bold;">/</span>
  inflating: textile<span style="color: #000000; font-weight: bold;">/</span>doc<span style="color: #000000; font-weight: bold;">/</span>textile.txt  
   creating: textile<span style="color: #000000; font-weight: bold;">/</span>ftplugin<span style="color: #000000; font-weight: bold;">/</span>
  inflating: textile<span style="color: #000000; font-weight: bold;">/</span>ftplugin<span style="color: #000000; font-weight: bold;">/</span>textile.vim  
   creating: textile<span style="color: #000000; font-weight: bold;">/</span>plugin<span style="color: #000000; font-weight: bold;">/</span>
  inflating: textile<span style="color: #000000; font-weight: bold;">/</span>plugin<span style="color: #000000; font-weight: bold;">/</span>textile.vim  
   creating: textile<span style="color: #000000; font-weight: bold;">/</span>syntax<span style="color: #000000; font-weight: bold;">/</span>
  inflating: textile<span style="color: #000000; font-weight: bold;">/</span>syntax<span style="color: #000000; font-weight: bold;">/</span>textile.vim  
&nbsp;
<span style="color: #666666; font-style: italic;"># cd into the textile dir</span>
<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #7a0874; font-weight: bold;">cd</span> textile
&nbsp;
<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">tree</span> .
.
<span style="color: #000000; font-weight: bold;">|</span>-- doc
<span style="color: #000000; font-weight: bold;">|</span>   <span style="color: #000000; font-weight: bold;">`</span>-- textile.txt
<span style="color: #000000; font-weight: bold;">|</span>-- ftplugin
<span style="color: #000000; font-weight: bold;">|</span>   <span style="color: #000000; font-weight: bold;">`</span>-- textile.vim
<span style="color: #000000; font-weight: bold;">|</span>-- plugin
<span style="color: #000000; font-weight: bold;">|</span>   <span style="color: #000000; font-weight: bold;">`</span>-- textile.vim
<span style="color: #000000; font-weight: bold;">`</span>-- syntax
    <span style="color: #000000; font-weight: bold;">`</span>-- textile.vim
&nbsp;
<span style="color: #000000;">4</span> directories, <span style="color: #000000;">4</span> files
&nbsp;
<span style="color: #666666; font-style: italic;"># install the plugin</span>
<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-r</span> <span style="color: #000000; font-weight: bold;">*</span> ~<span style="color: #000000; font-weight: bold;">/</span>.vim<span style="color: #000000; font-weight: bold;">/</span></pre></td></tr></table></div>




<p><strong>screenshot of textile plugin in action</strong></p>

<div id="attachment_2670" class="wp-caption aligncenter" style="width: 643px"><a href="http://www.lamolabs.org/blog/wp-content/uploads/2009/09/ss_vim_textile_plugin.png" rel="lightbox[2662]"><img src="http://www.lamolabs.org/blog/wp-content/uploads/2009/09/ss_vim_textile_plugin.png" alt="vim&amp;#039;s textile plugin" title="ss_vim_textile_plugin" width="633" height="362" class="size-full wp-image-2670" /></a><p class="wp-caption-text">vim's textile plugin</p></div><div id="wherego_related"> </div>]]></content:encoded>
			<wfw:commentRss>http://www.lamolabs.org/blog/2662/fixing-ruby-support-in-vim-on-fedora-10-11-and-centos-5-installing-the-vim-textile-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up XMMS and MP3 support on Fedora 10</title>
		<link>http://www.lamolabs.org/blog/1012/setting-up-xmms-and-mp3-support-on-fedora-10/</link>
		<comments>http://www.lamolabs.org/blog/1012/setting-up-xmms-and-mp3-support-on-fedora-10/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 02:22:32 +0000</pubDate>
		<dc:creator>slmingol</dc:creator>
				<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.lamolabs.org/blog/?p=1012</guid>
		<description><![CDATA[<p>Quick list of the steps I needed to go through in order to get XMMS with MP3 support working on Fedora 10.</p>


1
2
3
4
5
6
7
# add rpmfusion free
% rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
# add rpmfusion nonfree
% rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
&#160;
% yum install gstreamer-plugins-bad gsteamer-plugins-ugly xine-lib-extras-nonfree
% yum install xmms xmms-mp3




<p>Couple of notes. I had previously installed atrpms, and xmms &#38; xmms-libs from [...]]]></description>
			<content:encoded><![CDATA[<p>Quick list of the steps I needed to go through in order to get <span class="caps">XMMS </span>with <span class="caps">MP3 </span>support working on Fedora 10.</p>


<div class="wp_codebox"><table width="100%" ><tr id="p101229"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p1012code29"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># add rpmfusion free</span>
<span style="color: #000000; font-weight: bold;">%</span> rpm <span style="color: #660033;">-ivh</span> http:<span style="color: #000000; font-weight: bold;">//</span>download1.rpmfusion.org<span style="color: #000000; font-weight: bold;">/</span>free<span style="color: #000000; font-weight: bold;">/</span>fedora<span style="color: #000000; font-weight: bold;">/</span>rpmfusion-free-release-stable.noarch.rpm
<span style="color: #666666; font-style: italic;"># add rpmfusion nonfree</span>
<span style="color: #000000; font-weight: bold;">%</span> rpm <span style="color: #660033;">-ivh</span> http:<span style="color: #000000; font-weight: bold;">//</span>download1.rpmfusion.org<span style="color: #000000; font-weight: bold;">/</span>nonfree<span style="color: #000000; font-weight: bold;">/</span>fedora<span style="color: #000000; font-weight: bold;">/</span>rpmfusion-nonfree-release-stable.noarch.rpm
&nbsp;
<span style="color: #000000; font-weight: bold;">%</span> yum <span style="color: #c20cb9; font-weight: bold;">install</span> gstreamer-plugins-bad gsteamer-plugins-ugly xine-lib-extras-nonfree
<span style="color: #000000; font-weight: bold;">%</span> yum <span style="color: #c20cb9; font-weight: bold;">install</span> xmms xmms-mp3</pre></td></tr></table></div>




<p>Couple of notes. I had previously installed atrpms, and xmms &amp; xmms-libs from this repo which didn&#8217;t seem to be compatible from the fusion repos. So I disabled the atrpms repo in the /etc/yum.repo.d atrpms files and then ran this command.</p>


<div class="wp_codebox"><table width="100%" ><tr id="p101230"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1012code30"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> yum removed xmms xmms-libs</pre></td></tr></table></div>




<p>Thanks to <a href="http://www.ghacks.net/author/jack/">Jack</a> over on the <a href="http://www.ghacks.net/2008/12/25/add-mp3-support-in-fedora-10/">Ghacks.net website</a> for showing me the way on this one quickly. Saved me a ton of time in chasing this one down.</p><div id="wherego_related"> </div>]]></content:encoded>
			<wfw:commentRss>http://www.lamolabs.org/blog/1012/setting-up-xmms-and-mp3-support-on-fedora-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS RPM Tutorial Part 2 &#8211; Useful Repo Tips</title>
		<link>http://www.lamolabs.org/blog/169/centos-rpm-tutorial-2/</link>
		<comments>http://www.lamolabs.org/blog/169/centos-rpm-tutorial-2/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 09:22:37 +0000</pubDate>
		<dc:creator>slmingol</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[package management]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://www.lamolabs.org/blog/?p=169</guid>
		<description><![CDATA[

Good description of CentOS repo resources here
Docs that discuss setting priorities with yum are available here
If you&#8217;re lazy like me and don&#8217;t want to mess with RPM hell I highly recommend switching to smart as your package manager which is available here


Readers who viewed this page, also viewed:CentOS RPM Tutorial Part 1 &#8211; Building your [...]]]></description>
			<content:encoded><![CDATA[
<ul>
<li>Good description of CentOS repo resources <a href="http://wiki.centos.org/AdditionalResources/Repositories">here</a></li>
<li>Docs that discuss setting priorities with yum are available <a href="http://wiki.centos.org/PackageManagement/Yum/Priorities">here</a></li>
<li>If you&#8217;re lazy like me and don&#8217;t want to mess with <span class="caps">RPM </span>hell I highly recommend switching to smart as your package manager which is available <a href="http://labix.org/smart">here</a></li>
</ul>

<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.lamolabs.org/blog/164/centos-rpm-tutorial-1/" rel="bookmark" class="wherego_title">CentOS RPM Tutorial Part 1 &#8211; Building your own RPMs</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.lamolabs.org/blog/169/centos-rpm-tutorial-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS RPM Tutorial Part 1 &#8211; Building your own RPMs</title>
		<link>http://www.lamolabs.org/blog/164/centos-rpm-tutorial-1/</link>
		<comments>http://www.lamolabs.org/blog/164/centos-rpm-tutorial-1/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 09:11:51 +0000</pubDate>
		<dc:creator>slmingol</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[package management]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://www.lamolabs.org/blog/?p=164</guid>
		<description><![CDATA[Step 1a: the manual way

<p>NOTE: Lifted from Lic Fessden&#8217;s blog here</p>


1
2
3
4
5
6
7
8
9
10
11
12
13
yum install rpm-build
&#160;
mkdir -p ~/rpm
mkdir -p ~/rpm/BUILD
mkdir -p ~/rpm/RPMS
mkdir -p ~/rpm/SOURCES
mkdir -p ~/rpm/SPECS
mkdir -p ~/rpm/SRPMS
mkdir -p ~/rpm/tmp
&#160;
-or-
&#160;
mkdir -p ~/rpm/&#123;BUILD,RPMS,SOURCES,SPECS,SRPMS,tmp&#125;




<p>And create the file ~/.rpmmacros with the following in it:</p>


1
2
3
%packager Your Name
%_topdir /home/YOUR HOME DIR/rpm
%_tmppath /home/YOUR HOME DIR/rpm/tmp




Step 1b: the semi-automated way

<p>requirement: EPEL yum repository setup &#38; [...]]]></description>
			<content:encoded><![CDATA[<h5>Step 1a: the manual way</h5>

<p><strong><span class="caps">NOTE</span>:</strong> Lifted from Lic Fessden&#8217;s blog <a href="http://lincgeek.org/blog/wp-trackback.php?p=303">here</a></p>


<div class="wp_codebox"><table width="100%" ><tr id="p16437"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code" id="p164code37"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> rpm-build
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> ~<span style="color: #000000; font-weight: bold;">/</span>rpm
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> ~<span style="color: #000000; font-weight: bold;">/</span>rpm<span style="color: #000000; font-weight: bold;">/</span>BUILD
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> ~<span style="color: #000000; font-weight: bold;">/</span>rpm<span style="color: #000000; font-weight: bold;">/</span>RPMS
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> ~<span style="color: #000000; font-weight: bold;">/</span>rpm<span style="color: #000000; font-weight: bold;">/</span>SOURCES
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> ~<span style="color: #000000; font-weight: bold;">/</span>rpm<span style="color: #000000; font-weight: bold;">/</span>SPECS
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> ~<span style="color: #000000; font-weight: bold;">/</span>rpm<span style="color: #000000; font-weight: bold;">/</span>SRPMS
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> ~<span style="color: #000000; font-weight: bold;">/</span>rpm<span style="color: #000000; font-weight: bold;">/</span>tmp
&nbsp;
<span style="color: #660033;">-or-</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> ~<span style="color: #000000; font-weight: bold;">/</span>rpm<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>BUILD,RPMS,SOURCES,SPECS,SRPMS,tmp<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></td></tr></table></div>




<p>And create the file <i>~/.rpmmacros</i> with the following in it:</p>


<div class="wp_codebox"><table width="100%" ><tr id="p16438"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p164code38"><pre class="text" style="font-family:monospace;">%packager Your Name
%_topdir /home/YOUR HOME DIR/rpm
%_tmppath /home/YOUR HOME DIR/rpm/tmp</pre></td></tr></table></div>




<h5>Step 1b: the semi-automated way</h5>

<p><strong>requirement:</strong> <a href="http://fedoraproject.org/wiki/EPEL"><span class="caps">EPEL </span>yum repository</a> setup &amp; configured</p>


<div class="wp_codebox"><table width="100%" ><tr id="p16439"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p164code39"><pre class="text" style="font-family:monospace;">yum install rpmdevtools
rpmdev-setuptree</pre></td></tr></table></div>




<p><span id="more-164"></span></p>

<h5>Step 2: Setting up a tarball</h5>


<div class="wp_codebox"><table width="100%" ><tr id="p16440"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code" id="p164code40"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># make the pkg.</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>rpm<span style="color: #000000; font-weight: bold;">/</span>SOURCES
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> ~<span style="color: #000000; font-weight: bold;">/</span>rpm<span style="color: #000000; font-weight: bold;">/</span>SOURCES<span style="color: #000000; font-weight: bold;">/</span>sam-1
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">&lt;</span>files<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">dirs</span><span style="color: #000000; font-weight: bold;">&gt;</span> ~<span style="color: #000000; font-weight: bold;">/</span>rpm<span style="color: #000000; font-weight: bold;">/</span>SOURCES<span style="color: #000000; font-weight: bold;">/</span>sam-<span style="color: #000000;">1</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># tar the pkg.</span>
<span style="color: #c20cb9; font-weight: bold;">tar</span> czvf sam-1.tar.gz sam-<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># make spec file (sam.spec)</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>rpm<span style="color: #000000; font-weight: bold;">/</span>SPECS</pre></td></tr></table></div>




<p><b>sam.spec</b></p>


<div class="wp_codebox"><table width="100%" ><tr id="p16441"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
</pre></td><td class="code" id="p164code41"><pre class="text" style="font-family:monospace;">Summary: My first rpm script package
Name: sam
Version: 1
Release: 1
Source0: sam-1.tar.gz
License: GPL
Group: MyJunk
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-buildroot
%description
Make some relevant package description here
%prep
%setup -q
%build
%install
install -m 0755 -d $RPM_BUILD_ROOT/opt/sam
install -m 0755 myscript.sh $RPM_BUILD_ROOT/opt/sam/myscript.sh
%clean
rm -rf $RPM_BUILD_ROOT
%post
echo &quot; &quot;
echo &quot;This will display after rpm installs the package!&quot;
%files
%dir /opt/sam
/opt/sam/myscript.sh</pre></td></tr></table></div>




<p>A lot of that file is pretty self explanatory except the install lines and the lines after %file. The install lines tell rpm what to install where and with what permissions. You also have to do any directory creation there as well (the one with the -d in the line). The things after %file are similar in that this tells rpm&#8217;s database which files are attached to this package. The %dir signifies a new directory, otherwise the files are listed with their complete paths.</p>

<h5>Step 3: Building the <span class="caps">RPM</span></h5>

<p>Now that you have all that together. The last thing you need do is create the package.</p>


<div class="wp_codebox"><table width="100%" ><tr id="p16442"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p164code42"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>rpm
rpmbuild <span style="color: #660033;">-ba</span> SPECS<span style="color: #000000; font-weight: bold;">/</span>sam.spec
<span style="color: #666666; font-style: italic;"># creates file: ~/rpm/RPMS/noarch/sam-1-1.noarch.rpm</span></pre></td></tr></table></div>




<h5>Further reading</h5>

<p>Found this handy <a href="http://www.gurulabs.com/downloads/GURULABS-RPM-LAB/GURULABS-RPM-GUIDE-v1.0.PDF"><span class="caps">PDF</span></a> guide over on the <a href="http://www.gurulabs.com/goodies/guru-guides/">gurulabs.com</a> website. You can also download it directly from my site <a href="http://www.lamolabs.org/blog/wp-content/uploads/2009/02/GURULABS-RPM-GUIDE-v1.0.pdf">here</a>.</p><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.lamolabs.org/blog/169/centos-rpm-tutorial-2/" rel="bookmark" class="wherego_title">CentOS RPM Tutorial Part 2 &#8211; Useful Repo Tips</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.lamolabs.org/blog/164/centos-rpm-tutorial-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
