From f30eb2d3d3ee96d1678274d1c368f9209cda0f57 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Sun, 9 Dec 2012 14:09:01 +0200 Subject: [PATCH] articles/cheatsheets/rpm: finished / tested --- articles/cheatsheets/rpm.html | 87 ++++++++++++++++++++++++++++++++ articles/cheatsheets/rpm.html.md | 47 ++++++++++++----- 2 files changed, 121 insertions(+), 13 deletions(-) create mode 100644 articles/cheatsheets/rpm.html diff --git a/articles/cheatsheets/rpm.html b/articles/cheatsheets/rpm.html new file mode 100644 index 0000000..a3caabc --- /dev/null +++ b/articles/cheatsheets/rpm.html @@ -0,0 +1,87 @@ + + + + + +Cheatsheet for distributions using rpm + + + + +
+Sitemap +
+ +

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.

+

Note on Fedora: install package "yum-plugin-fastestmirror" to always get the fastest mirror!. It comes with CentOS by default and is like http.debian.net and mirrors.ubuntu.com from Debian side of Linux family.

+

DO NOT RUN "yum update" NOR "yum upgrade" NOR ANYTHING ELSE WHICH UPGRADES PACKAGES BEFORE SETTING PRIORIZING!

+
yum install yum-plugin-fastestmirror
+

Installing Virtualbox guest additions

+

Start by installing dkms from EPEL.

+
rpm -i <package downloaded from EPEL link above>
+yum install dkms
+yum groupinstall "Development Tools"
+yum install kernel-devel
+

Press HOST + D and cd to the mount point and run the Linux Additions installer.

+

Fedora

+

First enable RPM Fusion. Then

+
yum install VirtualBox-guest
+

and reboot.

+

Enabling other repositories

+

For EPEL follow the first steps for Virtualbox guest additions installing above. Read also Fedora part above and enable RPM Fusion.

+

RPMGforge

+

Download the package and install it with

+
rpm -i <package>
+

Livna

+

Livna is easy to enable. Just go to their homepage and follow their instructions

+

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
+

Ensure that it's enabled by looking at /etc/yum/pluginconf.d/priorities.conf . It should read

+
[main]
+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
+

to end of every section where X is replaced with actual priority.

+

CentOS wiki suggests the following priorities:

+

CentOS-Base: everything is priority=1 except contrib priority=2

+

Third party repositories (EPEL,rpmforge) should be > 10 and other should be more preferred than other. I used

+

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
+ +
+ +
+ + + +

+comments powered by Disqus +

+ + + + + diff --git a/articles/cheatsheets/rpm.html.md b/articles/cheatsheets/rpm.html.md index 702e7fd..aa7f7d6 100644 --- a/articles/cheatsheets/rpm.html.md +++ b/articles/cheatsheets/rpm.html.md @@ -21,6 +21,8 @@ This is my cheatsheet for setting up distribution using rpm. I am more experienc Note on Fedora: install package "yum-plugin-fastestmirror" to always get the fastest mirror!. It comes with CentOS by default and is like http.debian.net and mirrors.ubuntu.com from Debian side of Linux family. +DO NOT RUN "yum update" NOR "yum upgrade" NOR ANYTHING ELSE WHICH UPGRADES PACKAGES BEFORE SETTING PRIORIZING! + ``` 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. +### Fedora + +First [enable RPM Fusion](http://rpmfusion.org/Configuration). Then + +``` +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. +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 @@ -50,6 +62,10 @@ Download the [package](http://wiki.centos.org/AdditionalResources/Repositories/R rpm -i ``` +## 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. @@ -67,16 +83,7 @@ enabled=1 Now the plugin should be working and you must assign priorities. -Edit the following files: - -``` -/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 +Edit all .repo files in /etc/yum.repos.d and add ``` 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 -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 +```