9

So after a fresh Scientific Linux 6.3 Desktop install, I:

yum install rpmforge-release && yum update

and

yum install epel-release.noarch

then:

yum install wine gparted cups-pdf && echo 'includepkgs=nss-mdns wine* gparted cups-pdf' >> /etc/yum.repos.d/epel.repo

OK! After this I:

vi /etc/yum.repos.d/epel.repo
includepkgs=nss-mdns wine* gparted cups-pdf

So this is how I install a fresh wine (+cups-pdf) and gparted.

Q: Is this a stable thing to do? I mean can this cause problems in the future? (that there are some epel packages installed, but I use a whitelist after installing the mentioned few packages to help stability - because I only need epel for the few things gparted/wine/cups-pdf). Will these stepes cause problems in the future?

10

I use epel and rpmforge in my centos. But I recommend you to install the yum-priorities plugin since there are some programs in both repositories.

Ok, so here is the link of yum-priorities explained in detail: http://wiki.centos.org/PackageManagement/Yum/Priorities

But basically, after installing yum-priorities, you must edit /etc/yum/pluginconf.d/priorities.conf from enabled=0 to enabled=1

And also add this line to every repository (because there may be more than one) in every repo file in /eyc/yum.repos.d/

priority=Number

There is also a oneliner to see your priorities:

sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n

This is me output:

priority = 1 [base]
priority = 1 [centosplus]
priority = 1 [extras]
priority = 1 [updates]
priority = 2 [contrib]
priority = 10 [atrpms]
priority = 10 [elrepo]
priority = 10 [elrepo-extras]
priority = 10 [elrepo-kernel]
priority = 10 [epel]
priority = 10 [epel-debuginfo]
priority = 10 [epel-source]
priority = 11 [elrepo-testing]
priority = 11 [epel-testing]
priority = 11 [epel-testing-debuginfo]
priority = 11 [epel-testing-source]
priority = 20 [rpmforge]
priority = 20 [rpmforge-extras]
priority = 21 [rpmforge-testing]
priority = 30 [nfb] This is my own repo.
1

Yes, mixing repos can create huge dependency deadlocks for you, so you must thread carefully.

What I have found works best for me is to install them, but to leave them disabled: 'enabled=0' in /etc/yum.repos.d/.repo ..

Then when I must use them, I would bring them in like so:

yum --enablerepo=epel,rpmforge-extras list package-name  
yum --enablerepo=rpmforge install package-name

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.