2012-12-09 14:21:17 +02:00

88 lines
5.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" /> <!-- <meta http-equiv="refresh" content="60" /> --> <meta name="description" content="My cheatsheet for rpm based distributions, mainly CentOS/Fedora." /> <meta name="keywords" content="rpm,Linux,CentOS,Fedora" /> <meta name="author" content="Mika Suomalainen" /> <link rel="canonical" href="http://mkaysi.github.com/articles/cheatsheets/rpm.html">
<title>
Cheatsheet for distributions using rpm
</title>
<link rel="stylesheet" type="text/css" href="../../tyyli.css" />
</head>
<body>
<hr/>
<a href="../../sitemap/sitemap.html">Sitemap</a>
<hr/>
<h1 id="my-cheatsheet">My cheatsheet</h1>
<p>This is my cheatsheet for setting up distribution using rpm. I am more experienced with distributions using dpkg, so I need this a little in the beginning.</p>
<p><strong>Note on Fedora: install package &quot;yum-plugin-fastestmirror&quot; to always get the fastest mirror!</strong>. It comes with CentOS by default and is like http.debian.net and mirrors.ubuntu.com from Debian side of Linux family.</p>
<p><strong>DO NOT RUN &quot;yum update&quot; NOR &quot;yum upgrade&quot; NOR ANYTHING ELSE WHICH UPGRADES PACKAGES BEFORE SETTING PRIORIZING!</strong></p>
<pre><code>yum install yum-plugin-fastestmirror</code></pre>
<h2 id="installing-virtualbox-guest-additions">Installing Virtualbox guest additions</h2>
<p>Start by installing dkms from <a href="https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F">EPEL</a>.</p>
<pre><code>rpm -i &lt;package downloaded from EPEL link above&gt;
yum install dkms
yum groupinstall &quot;Development Tools&quot;
yum install kernel-devel</code></pre>
<p>Press HOST + D and cd to the mount point and run the Linux Additions installer.</p>
<h3 id="fedora">Fedora</h3>
<p>First <a href="http://rpmfusion.org/Configuration">enable RPM Fusion</a>. Then</p>
<pre><code>yum install VirtualBox-guest</code></pre>
<p>and reboot.</p>
<h2 id="enabling-other-repositories">Enabling other repositories</h2>
<p>For <a href="https://fedoraproject.org/wiki/EPEL">EPEL</a> follow the first steps for Virtualbox guest additions installing above. Read also Fedora part above and enable RPM Fusion.</p>
<h3 id="rpmgforge">RPMGforge</h3>
<p>Download the <a href="http://wiki.centos.org/AdditionalResources/Repositories/RPMForge#head-f0c3ecee3dbb407e4eed79a56ec0ae92d1398e01">package</a> and install it with</p>
<pre><code>rpm -i &lt;package&gt;</code></pre>
<h2 id="livna">Livna</h2>
<p><a href="http://rpm.livna.org/">Livna is easy to enable. Just go to their homepage and follow their instructions</a></p>
<h3 id="yum-plugin-priorities">yum-plugin-priorities</h3>
<p>Using multiple 3rd party repositories (EPEL, RPMforge) is dangerous so you must use priorities to be safe.</p>
<pre><code>yum install yum-plugin-priorities</code></pre>
<p>Ensure that it's enabled by looking at /etc/yum/pluginconf.d/priorities.conf . It should read</p>
<pre><code>[main]
enabled=1</code></pre>
<p>Now the plugin should be working and you must assign priorities.</p>
<p>Edit all .repo files in /etc/yum.repos.d and add</p>
<pre><code>priority=X</code></pre>
<p>to end of every section where X is replaced with actual priority.</p>
<p><a href="http://wiki.centos.org/PackageManagement/Yum/Priorities">CentOS wiki</a> suggests the following priorities:</p>
<p>CentOS-Base/default repositories: everything is priority=1 except contrib priority=2</p>
<p>Third party repositories (EPEL,rpmforge) should be &gt; 10 and other should be more preferred than other. I used</p>
<p><strong>epel 10 rpmforge 11 rpmfusion 12 livna 12</strong> (Livna provides only libdvdcss and other packages have been moved to rpmfusion.)</p>
<p>Now you should be able to safely run &quot;yum check-update&quot; and &quot;yum update&quot; or &quot;yum upgrade&quot;.</p>
<p>If you have installed Fedora from Live-CD you probably want to instll LibreOffice with</p>
<pre><code>yum groupinstall office</code></pre>
<p>and if your native language isn't English e.g.</p>
<pre><code>yum groupinstall finnish-support</code></pre>
<!-- vim : set ft=html -->
<hr/>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_developer = 0;
var disqus_url = 'http://mkaysi.github.com/articles/cheatsheets/rpm.html';
var disques_title = 'rpm cheatsheet';
var disqus_shortname = 'mkaysishomepage'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async =
true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0])
.appendChild(dsq);
})();
</script>
<noscript>
Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Dis qus.</a>
</noscript>
<p>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus </span></a>
</p>
<!-- vim : set ft=html -->
</body>
</html>