rpm: remove useless blah blah...

This commit is contained in:
Mikaela Suomalainen 2012-12-12 18:56:19 +02:00
parent f6831f322c
commit 2bb08154cd
2 changed files with 215 additions and 97 deletions

View File

@ -13,47 +13,128 @@ Cheatsheet for distributions using rpm
<hr/> <hr/>
<h1 id="my-cheatsheet">My cheatsheet</h1> <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>This is my cheatsheet for setting up distribution using rpm (mainly Fedora &amp; CentOS). 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> <h2 id="always-get-the-fastest-mirror">Always get the fastest mirror</h2>
<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> <pre><code>yum install yum-plugin-fastestmirror</code></pre>
<h2 id="installing-virtualbox-guest-additions">Installing Virtualbox guest additions</h2> <p>By default cheks every 10 days, change configuration variable in config file to 0 to make it search always when yum is ran.</p>
<p>Start by installing dkms from <a href="https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F">EPEL</a>.</p> <h2 id="rd-party-repositories">3rd party repositories</h2>
<pre><code>rpm -i &lt;package downloaded from EPEL link above&gt; <table>
yum install dkms <tr>
yum groupinstall &quot;Development Tools&quot; <td>
yum install kernel-devel</code></pre> Repository
<p>Press HOST + D and cd to the mount point and run the Linux Additions installer.</p> </td>
<h3 id="fedora">Fedora</h3> <td>
<p>First <a href="http://rpmfusion.org/Configuration">enable RPM Fusion</a>. Then</p> My priority
<pre><code>yum install VirtualBox-guest</code></pre> </td>
<p>and reboot.</p> <td>
<h2 id="enabling-other-repositories">Enabling other repositories</h2> Description
<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> </td>
<h3 id="rpmgforge">RPMGforge</h3> </tr>
<p>Download the <a href="http://wiki.centos.org/AdditionalResources/Repositories/RPMForge#head-f0c3ecee3dbb407e4eed79a56ec0ae92d1398e01">package</a> and install it with</p> <tr>
<pre><code>rpm -i &lt;package&gt;</code></pre> <td>
<h2 id="livna">Livna</h2> Base/Fedora-*
<p><a href="http://rpm.livna.org/">Livna is easy to enable. Just go to their homepage and follow their instructions</a></p> </td>
<h3 id="yum-plugin-priorities">yum-plugin-priorities</h3> <td>
<p>Using multiple 3rd party repositories (EPEL, RPMforge) is dangerous so you must use priorities to be safe.</p> 1
</td>
<td>
Official Fedora/CentOS packages
</td>
</tr>
<tr>
<td>
Extra
</td>
<td>
2
</td>
<td>
CentOS only, extra packages
</td>
</tr>
<tr>
<td>
<a href="https://get.adobe.com/flashplayer/">Flash</a>
</td>
<td>
10
</td>
<td>
Adobe Flash, shouldn't conflict with EPEL and EPEL is CentOS only.
</td>
</tr>
<tr>
<td>
<a href="https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F">EPEL</a>
</td>
<td>
10
</td>
<td>
Extra Packages for Enterprise Linux (CentOS only)
</td>
</tr>
<tr>
<td>
<a href="http://rpmfusion.org/Configuration">RPM Fusion</a>
</td>
<td>
11
</td>
<td>
&quot;Provides software that the Fedora Project or Red Hat doesn't want to ship&quot;
</td>
</tr>
<tr>
<td>
<a href="http://rpm.livna.org/">Livna</a>
</td>
<td>
11
</td>
<td>
Provides libdvdcss for watching DVDs
</td>
</tr>
<tr>
<td>
<a href="http://repoforge.org/use/">RPM Forge</a>
</td>
<td>
12
</td>
<td>
&quot;CentOS only ( ? ) , Provides a set of repositories&quot;
</td>
</tr>
</table>
<h3 id="priorities">Priorities</h3>
<p>Prevent repositories from conflicting each other:</p>
<pre><code>yum install yum-plugin-priorities</code></pre> <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> <p>Ensure that it's enabled!</p>
<pre><code>[main] <p>Edit all .repo files in yum.repos.d and add PRIORITY=X to everything.</p>
enabled=1</code></pre> <h2 id="installing-virtualbox-guest-additions">Installing Virtualbox guest additions</h2>
<p>Now the plugin should be working and you must assign priorities.</p> <pre><code>yum install dkms # requires some of the 3rd party repositories, EPEL on CentOS.</code></pre>
<p>Edit all .repo files in /etc/yum.repos.d and add</p> <pre><code>yum install VirtualBox-guest # Fedora only ( ? ) Requires RPM Fusion</code></pre>
<pre><code>priority=X</code></pre> <p>Or using guest additions shipped with <a href="https://www.virtualbox.org/">VirtualBox</a>;</p>
<p>to end of every section where X is replaced with actual priority.</p> <pre><code>yum groupinstall &quot;Development Tools&quot;
<p><a href="http://wiki.centos.org/PackageManagement/Yum/Priorities">CentOS wiki</a> suggests the following priorities:</p> yum install kernel-devel</code></pre>
<p>CentOS-Base/default repositories: everything is priority=1 except contrib priority=2</p> <p>Press HOST + D and cd to the mount point and run the Linux Additions installer and after successful installation, reboot</p>
<p>Third party repositories (EPEL,rpmforge) should be &gt; 10 and other should be more preferred than other. I used</p> <h2 id="installing-libreoffice-for-people-not-installing-from-dvd-in-fedora">Installing LibreOffice (for people not installing from DVD) in Fedora</h2>
<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> <pre><code>yum groupinstall office</code></pre>
<p>and if your native language isn't English e.g.</p> <h2 id="installing-finnsh-language">Installing Finnsh language</h2>
<p>and replacing &quot;finnish&quot; or &quot;fi&quot; with your native language</p>
<pre><code>yum groupinstall finnish-support</code></pre> <pre><code>yum groupinstall finnish-support</code></pre>
<p>or with KDE</p>
<pre><code>yum install kde-l10n-fi</code></pre>
<h2 id="installing-all-gnome-shell-extensions">Installing all Gnome shell extensions</h2>
<pre><code>yum install gnome-tweak-tool &quot;gnome-shell-extension-*&quot; # This might not be a good idea.</code></pre>
<p>Use gnome-tweak-tool to enable/disable them. They might need reboot/logging in again before they appear in gnome-tweak-tool.</p>
<h2 id="installing-all-codecsgstreamer-pluginss">Installing all codecs/gstreamer pluginsS</h2>
<p><code>yum install &quot;gstreamer-plugins-*&quot; --skip-broken # Might not be a good idea...</code> ## Installing Flash</p>
<pre><code>yum install flashplugin # requires Adobe Flash repository to be enabled.</code></pre>
<!-- vim : set ft=html --> <!-- vim : set ft=html -->
<hr/> <hr/>

View File

@ -17,102 +17,139 @@
# My cheatsheet # My cheatsheet
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. This is my cheatsheet for setting up distribution using rpm (mainly Fedora & CentOS). I am more experienced with distributions using dpkg, so I need this a little in the beginning.
<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. ## Always get the fastest mirror
<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
``` ```
## Installing Virtualbox guest additions By default cheks every 10 days, change configuration variable in config file to 0 to make it search always when yum is ran.
Start by installing dkms from [EPEL](https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F). ## 3rd party repositories
``` <table>
rpm -i <package downloaded from EPEL link above> <tr>
yum install dkms <td>Repository</td>
yum groupinstall "Development Tools" <td>My priority</td>
yum install kernel-devel <td>Description</td>
``` </tr>
<tr>
<td>Base/Fedora-*</td>
<td>1</td>
<td>Official Fedora/CentOS packages</td>
</tr>
<tr>
<td>Extra</td>
<td>2</td>
<td>CentOS only, extra packages</td>
</tr>
<tr>
<td>[Flash]</td>
<td>10</td>
<td>Adobe Flash, shouldn't conflict with EPEL and EPEL is CentOS only.</td>
</tr>
<tr>
<td>[EPEL]</td>
<td>10</td>
<td>Extra Packages for Enterprise Linux (CentOS only)</td>
</tr>
<tr>
<td>[RPM Fusion]</td>
<td>11</td>
<td>"Provides software that the Fedora Project or Red Hat doesn't want to ship"</td>
</tr>
<tr>
<td>[Livna]</td>
<td>11</td>
<td>Provides libdvdcss for watching DVDs</td>
</tr>
<tr>
<td>[RPM Forge]</td>
<td>12</td>
<td>"CentOS only ( ? ) , Provides a set of repositories"</td>
</tr>
Press HOST + D and cd to the mount point and run the Linux Additions installer. </table>
### Fedora ### Priorities
First [enable RPM Fusion](http://rpmfusion.org/Configuration). Then Prevent repositories from conflicting each other:
```
yum install VirtualBox-guest
```
and reboot.
## Enabling other repositories
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
Download the [package](http://wiki.centos.org/AdditionalResources/Repositories/RPMForge#head-f0c3ecee3dbb407e4eed79a56ec0ae92d1398e01) and install it with
```
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
Using multiple 3rd party repositories (EPEL, RPMforge) is dangerous so you must use priorities to be safe.
``` ```
yum install yum-plugin-priorities yum install yum-plugin-priorities
``` ```
Ensure that it's enabled by looking at /etc/yum/pluginconf.d/priorities.conf . It should read Ensure that it's enabled!
Edit all .repo files in yum.repos.d and add PRIORITY=X to everything.
## Installing Virtualbox guest additions
``` ```
[main] yum install dkms # requires some of the 3rd party repositories, EPEL on CentOS.
enabled=1
``` ```
Now the plugin should be working and you must assign priorities.
Edit all .repo files in /etc/yum.repos.d and add
``` ```
priority=X yum install VirtualBox-guest # Fedora only ( ? ) Requires RPM Fusion
``` ```
to end of every section where X is replaced with actual priority. Or using guest additions shipped with [VirtualBox];
[CentOS wiki](http://wiki.centos.org/PackageManagement/Yum/Priorities) suggests the following priorities: ```
yum groupinstall "Development Tools"
yum install kernel-devel
```
CentOS-Base/default repositories: everything is priority=1 except contrib priority=2 Press HOST + D and cd to the mount point and run the Linux Additions installer and after successful installation, reboot
Third party repositories (EPEL,rpmforge) should be > 10 and other should be more preferred than other. I used ## Installing LibreOffice (for people not installing from DVD) in Fedora
<strong>epel 10 rpmforge 11 rpmfusion 12 livna 12</strong> (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 yum groupinstall office
``` ```
and if your native language isn't English e.g. ## Installing Finnsh language
and replacing "finnish" or "fi" with your native language
``` ```
yum groupinstall finnish-support yum groupinstall finnish-support
``` ```
or with KDE
```
yum install kde-l10n-fi
```
## Installing all Gnome shell extensions
```
yum install gnome-tweak-tool "gnome-shell-extension-*" # This might not be a good idea.
```
Use gnome-tweak-tool to enable/disable them. They might need reboot/logging in again before they appear in gnome-tweak-tool.
## Installing all codecs/gstreamer pluginsS
```
yum install "gstreamer-plugins-*" --skip-broken # Might not be a good idea...
```
## Installing Flash
```
yum install flashplugin # requires Adobe Flash repository to be enabled.
```
[Flash]:https://get.adobe.com/flashplayer/
[EPEL]:https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F
[RPM Fusion]:http://rpmfusion.org/Configuration
[Livna]:http://rpm.livna.org/
[RPM Forge]:http://repoforge.org/use/
[VirtualBox]:https://www.virtualbox.org/
<!-- vim : set ft=html --> <!-- vim : set ft=html -->
<hr/> <hr/>