| Installing 3rd party repositories for Yum |
| Sunday, 20 May 2007 | |||||||||||||
Before we start...Q: What in the world is a repository?
Q: I can't install anything! I'm getting transaction errors like this: error: can't create transaction lock on /var/lib/rpm/__db.000 A: This is because to install packages, you have to become the root user which is the only user which should have access to your package database. To do so, run this command before you start any of the commands below: su - (That's su followed by a space and a dash)
LivnaInstalling Livna is one command:
DribbleThe beauty of the Dribble repo is that one command will work for all Fedora versions. Make sure you have livna installed and run: rpm -ivh http://dribble.org.uk/repo/dribble-release-5-3.noarch.rpm
FreshRPMsTo install FreshRPMs, run: wget http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/7/freshrpms-release/\
RPMForge (Dries)Currently there is no release RPM for Dries (RPMForge) and as a result it must be manually configured. Below is a generic configuration that should work, however if it doesn't work properly, please see the Dries configuration page for more information. Place a the following contents into the /etc/yum.repos.d/rpmforge.repo file: # Name: RPMforge RPM Repository for Fedora Core $releasever - $basearch Common QuestionsConcerning repos and Fedora developmentIf you are using rawhide (aka Fedora Development), follow the instructions like normal and if a specific version is required as in the case of Livna, use the latest version possible. To enable the development repo, look in the /etc/yum.repos.d folder and you should find name.repo file and a name-devel.repo file. Edit the name.repo file and change: enabled=1 to: enabled=0 Now, in the name-devel.repo file, change: enabled=0 to: enabled=1 This will disable the regular repository and enable the development repository so that the packages are compatible with the Fedora's development repository(ies).
A note of warningPlease remember that until RpmFusion is completed, repositories such as FreshRPMs and ATRPMs have packages that conflict with packages from Livna and/or Fedora Core|Extras. If you would like to avoid these conflicts, it is recommended that you set the incompatible repos to the disabled state. Just as shown above, simply edit the respective .repo file and change enabled=1 to enabled=0 Refer to the table below to find the location of the various .repo files:
Q: I would like to use a repo, but you recommended I disable it - What's the point!? yum --enablerepo=freshrpms install package_from_freshrpms Will temporarily enable freshrpms and install package_from_freshrpms. Once yum has finished it's work, the FreshRPMs repo returns to it's normal disabled state.
|
|||||||||||||
| < Prev | Next > |
|---|