2012-12-08 11:24:12 +02:00
<!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 / >
[Sitemap ](../../sitemap/sitemap.html )
< hr / >
# My cheatsheet
2012-12-12 18:56:19 +02:00
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.
2012-12-08 11:24:12 +02:00
2012-12-12 18:56:19 +02:00
## Always get the fastest mirror
2012-12-09 14:09:01 +02:00
2012-12-08 21:14:43 +02:00
```
yum install yum-plugin-fastestmirror
```
2012-12-12 22:40:33 +02:00
By default cheks every 10 days, change configuration variable "maxhostfileage" file to 0 to make it search always when yum is ran in /etc/yum/yum.pluginconf.d/fastestmirror.conf and check that "enabled" is set to "1". If it's 0, the plugin is disabled.
2012-12-12 18:56:19 +02:00
## 3rd party repositories
< table >
< tr >
< td > Repository< / td >
< td > My priority< / td >
< 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 >
2012-12-12 21:58:24 +02:00
< td > CentOS only ( ? ), "Provides a set of repositories"< / td >
2012-12-12 18:56:19 +02:00
< / tr >
< / table >
2012-12-12 21:56:11 +02:00
### Terminal enabling
2012-12-12 18:56:19 +02:00
2012-12-12 21:56:11 +02:00
This is faster than the GUI method
### Fedora
```
echo "Adobe doesn't provide direct download link for the package :("
rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
rpm -ivh http://rpm.livna.org/livna-release.rpm
```
### CentOS
```
echo "Adobe doesn't provide direct download link for the package :("
rpm -ivh http://download.fedoraproject.org/pub/epel/< RELEASE > /i386/repoview/epel-release.html # replace < release > with CentOS / RedHat version. For example: 5 or 6 NOT 6.X or 5.X!
rpm -ivh http://download1.rpmfusion.org/free/el/updates/< RELEASE > /i386/rpmfusion-free-release-< RELEASE > -1.noarch.rpm # Read the comment on line above
rpm -ivh http://download1.rpmfusion.org/nonfree/el/updates/< RELEASE > /i386/rpmfusion-nonfree-release-< RELEASE > -1.noarch.rpm # The line two lines above tells you what to do...
rpm -ivh http://rpm.livna.org/livna-release.rpm
rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el< RELEASE > .rf.< ARCH > .rpm # Replace < RELEASE > with CentOS version (examples some lines above) and < ARCH > with i686 or x86_64
```
## Priorities
2012-12-12 18:56:19 +02:00
Prevent repositories from conflicting each other:
2012-12-08 11:24:12 +02:00
```
2012-12-12 18:56:19 +02:00
yum install yum-plugin-priorities
2012-12-08 11:24:12 +02:00
```
2012-12-12 22:40:33 +02:00
Ensure that it's enabled by looking at /etc/yum/pluginconf.d/priorities.conf ! "enabled" should be 1
2012-12-08 11:24:12 +02:00
2012-12-12 22:40:33 +02:00
Edit all .repo files in /etc/yum.repos.d/ and add PRIORITY=X to everything. My priorities are listed on same table as repositories themselves.
2012-12-09 14:09:01 +02:00
2012-12-12 18:56:19 +02:00
## Installing Virtualbox guest additions
2012-12-09 14:09:01 +02:00
```
2012-12-13 08:11:26 +02:00
yum install dkms # requires EPEL on CentOS.
2012-12-09 14:09:01 +02:00
```
2012-12-12 18:56:19 +02:00
```
2012-12-13 08:11:26 +02:00
yum install VirtualBox-guest # Requires RPM Fusion
2012-12-12 18:56:19 +02:00
```
2012-12-09 14:09:01 +02:00
2012-12-12 18:56:19 +02:00
Or using guest additions shipped with [VirtualBox];
2012-12-08 11:24:12 +02:00
2012-12-12 18:56:19 +02:00
```
2012-12-13 08:11:26 +02:00
yum install @development -tools kernel-devel
2012-12-12 18:56:19 +02:00
```
2012-12-08 11:24:12 +02:00
2012-12-13 08:11:26 +02:00
Press HOST + D and cd to the mount point and run the Linux Additions installer and after successful installation, reboot. These didn't work for me on Fedora 17, but worked on CentOS. With Fedora I recommend installing VirtualBox-guest from RPM Fusion.
2012-12-08 11:24:12 +02:00
2012-12-13 08:11:26 +02:00
## Installing LibreOffice & language support (for people not installing from DVD) in Fedora
2012-12-08 11:24:12 +02:00
2012-12-13 08:11:26 +02:00
Remember to replace "finnish" and "fi" with your language
2012-12-08 11:24:12 +02:00
```
2012-12-13 08:11:26 +02:00
yum install @office @finnish -support kde-l10n-fi
2012-12-08 11:24:12 +02:00
```
2012-12-12 18:56:19 +02:00
## Installing all Gnome shell extensions
2012-12-08 11:24:12 +02:00
```
2012-12-12 18:56:19 +02:00
yum install gnome-tweak-tool "gnome-shell-extension-*" # This might not be a good idea.
2012-12-08 11:24:12 +02:00
```
2012-12-12 18:56:19 +02:00
Use gnome-tweak-tool to enable/disable them. They might need reboot/logging in again before they appear in gnome-tweak-tool.
2012-12-08 11:24:12 +02:00
2012-12-12 22:40:33 +02:00
## Installing all codecs/gstreamer plugins
2012-12-09 14:09:01 +02:00
```
2012-12-12 18:56:19 +02:00
yum install "gstreamer-plugins-*" --skip-broken # Might not be a good idea...
2012-12-09 14:09:01 +02:00
```
2012-12-12 22:40:33 +02:00
2012-12-12 18:56:19 +02:00
## Installing Flash
2012-12-09 14:09:01 +02:00
```
2012-12-12 22:40:33 +02:00
yum install flash-plugin # requires Adobe Flash repository to be enabled.
2012-12-09 14:09:01 +02:00
```
2012-12-08 11:24:12 +02:00
2012-12-12 21:56:09 +02:00
## Installing NVidia restricted drivers
```
2012-12-13 08:11:26 +02:00
yum install akmod-nvidia kmod-nvidia # requires RPM Fusion
2012-12-12 21:56:09 +02:00
```
## Installing (restricted?) miscellaneous things
Codecs, restricted font technologies etc.
```
yum install audacious-plugins-freeworld k3b-extras-freeworld xine-lib-extras-freeworld libdvdcss vlc mozilla-vlc unrar freetype-freeworld
```
< hr / >
Some commands mentioned here are copied from [Linux.fi] wiki, but it's in Finnish.
< hr / >
2012-12-12 18:56:19 +02:00
[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/
2012-12-12 21:56:09 +02:00
[Linux.fı ]:http://linux.fi/wiki/Etusivu
2012-12-08 11:24:12 +02:00
<!-- 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 >