mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2025-02-23 17:00:40 +01:00
articles/cheatsheets/rpm: finished / tested
This commit is contained in:
parent
474326ca04
commit
f30eb2d3d3
87
articles/cheatsheets/rpm.html
Normal file
87
articles/cheatsheets/rpm.html
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
<!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 "yum-plugin-fastestmirror" 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 "yum update" NOR "yum upgrade" 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 <package downloaded from EPEL link above>
|
||||||
|
yum install dkms
|
||||||
|
yum groupinstall "Development Tools"
|
||||||
|
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 <package></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: everything is priority=1 except contrib priority=2</p>
|
||||||
|
<p>Third party repositories (EPEL,rpmforge) should be > 10 and other should be more preferred than other. I used</p>
|
||||||
|
<p>epel 10 rpmforge 11 rpmfusion 12 livna 12 (Livna provides only libdvdcss and other packages have been moved to rpmfusion.)</p>
|
||||||
|
<p>Now you should be able to safely run "yum check-update" and "yum update" or "yum upgrade".</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>
|
||||||
|
|
||||||
|
|
@ -21,6 +21,8 @@ This is my cheatsheet for setting up distribution using rpm. I am more experienc
|
|||||||
|
|
||||||
<strong>Note on Fedora: install package "yum-plugin-fastestmirror" 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.
|
<strong>Note on Fedora: install package "yum-plugin-fastestmirror" 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.
|
||||||
|
|
||||||
|
<strong>DO NOT RUN "yum update" NOR "yum upgrade" NOR ANYTHING ELSE WHICH UPGRADES PACKAGES BEFORE SETTING PRIORIZING!</strong>
|
||||||
|
|
||||||
```
|
```
|
||||||
yum install yum-plugin-fastestmirror
|
yum install yum-plugin-fastestmirror
|
||||||
```
|
```
|
||||||
@ -38,9 +40,19 @@ yum install kernel-devel
|
|||||||
|
|
||||||
Press HOST + D and cd to the mount point and run the Linux Additions installer.
|
Press HOST + D and cd to the mount point and run the Linux Additions installer.
|
||||||
|
|
||||||
|
### Fedora
|
||||||
|
|
||||||
|
First [enable RPM Fusion](http://rpmfusion.org/Configuration). Then
|
||||||
|
|
||||||
|
```
|
||||||
|
yum install VirtualBox-guest
|
||||||
|
```
|
||||||
|
|
||||||
|
and reboot.
|
||||||
|
|
||||||
## Enabling other repositories
|
## Enabling other repositories
|
||||||
|
|
||||||
For [EPEL](https://fedoraproject.org/wiki/EPEL) follow the first steps for Virtualbox guest additions installing above.
|
For [EPEL](https://fedoraproject.org/wiki/EPEL) follow the first steps for Virtualbox guest additions installing above. Read also Fedora part above and enable RPM Fusion.
|
||||||
|
|
||||||
### RPMGforge
|
### RPMGforge
|
||||||
|
|
||||||
@ -50,6 +62,10 @@ Download the [package](http://wiki.centos.org/AdditionalResources/Repositories/R
|
|||||||
rpm -i <package>
|
rpm -i <package>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Livna
|
||||||
|
|
||||||
|
[Livna is easy to enable. Just go to their homepage and follow their instructions](http://rpm.livna.org/)
|
||||||
|
|
||||||
### yum-plugin-priorities
|
### yum-plugin-priorities
|
||||||
|
|
||||||
Using multiple 3rd party repositories (EPEL, RPMforge) is dangerous so you must use priorities to be safe.
|
Using multiple 3rd party repositories (EPEL, RPMforge) is dangerous so you must use priorities to be safe.
|
||||||
@ -67,16 +83,7 @@ enabled=1
|
|||||||
|
|
||||||
Now the plugin should be working and you must assign priorities.
|
Now the plugin should be working and you must assign priorities.
|
||||||
|
|
||||||
Edit the following files:
|
Edit all .repo files in /etc/yum.repos.d and add
|
||||||
|
|
||||||
```
|
|
||||||
/etc/yum/yum.repos.d/CentOS-Base.repo
|
|
||||||
/etc/yum/yum.repos.d/epel.repo
|
|
||||||
/etc/yum/yum.repos.d/epel-testing.repo
|
|
||||||
/etc/yum/yum.repos.d/rpmforge.repo
|
|
||||||
```
|
|
||||||
|
|
||||||
and add
|
|
||||||
|
|
||||||
```
|
```
|
||||||
priority=X
|
priority=X
|
||||||
@ -88,9 +95,23 @@ to end of every section where X is replaced with actual priority.
|
|||||||
|
|
||||||
CentOS-Base: everything is priority=1 except contrib priority=2
|
CentOS-Base: everything is priority=1 except contrib priority=2
|
||||||
|
|
||||||
Third party repositories (EPEL,rpmforge) should b > 10 and other should be more preferred than other. I used
|
Third party repositories (EPEL,rpmforge) should be > 10 and other should be more preferred than other. I used
|
||||||
|
|
||||||
epel 10 rpmforge 11
|
epel 10 rpmforge 11 rpmfusion 12 livna 12 (Livna provides only libdvdcss and other packages have been moved to rpmfusion.)
|
||||||
|
|
||||||
|
Now you should be able to safely run "yum check-update" and "yum update" or "yum upgrade".
|
||||||
|
|
||||||
|
If you have installed Fedora from Live-CD you probably want to instll LibreOffice with
|
||||||
|
|
||||||
|
```
|
||||||
|
yum groupinstall office
|
||||||
|
```
|
||||||
|
|
||||||
|
and if your native language isn't English e.g.
|
||||||
|
|
||||||
|
```
|
||||||
|
yum groupinstall finnish-support
|
||||||
|
```
|
||||||
|
|
||||||
<!-- vim : set ft=html -->
|
<!-- vim : set ft=html -->
|
||||||
<hr/>
|
<hr/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user