Number of repositories for which yum can be configured.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
You CAN configure yum for as many repos as you wish.
There are issues with mixing too many repos. The general rule of thumb is the base repo(which you MUST have) and one other repo. The problem that often occurs with mixing repos is that two packages may (or may not) have the same name but do not have the same features enabled.
"yum repolist all" will tell you what repos you have configured and which ones are enabled.
-h, --help show this help message and exit
-t, --tolerant be tolerant of errors
-C run entirely from cache, don't update cache
-c [config file] config file location
-R [minutes] maximum command wait time
-d [debug level] debugging output level
-e [error level] error output level
-y answer yes for all questions
--version show Yum version and exit
--installroot=[path] set install root
--enablerepo=[repo] enable one or more repositories (wildcards allowed)
--disablerepo=[repo] disable one or more repositories (wildcards allowed)
-x [package], --exclude=[package]
exclude package(s) by name or glob
--obsoletes enable obsoletes processing during updates
--noplugins disable Yum plugins
What is the problem with my repos?
I dont know much about.
I just followed the instructions on some of the websites which offered configuring yum for repos.
There's no problem with your repos, though without a RHN subscription, you won't get updates through yum. If possible, you should switch to Fedora or CentOS - the former is what releases of Red Hat are based on, and the latter is a repackaging of Red Hat that is fully binary-compatible. Both are community-supported, which means you can access the servers that host packages for free.
There is a procedure to remove the RHN plugin. Unfortunately you still need a base repo (RHN or Centos) in order to use most the packages in the alternative repos. Since the alternative repos do not have any of the packages that are in the base repos, you run into unresolvable dependency issues. Short version is that you have three basic options, pay to play RHEL, switch to Centos, or switch to something else. While it is true that you could compile everything, at that point you are really not running RHEL anymore.
You have to remove the RHN plugin in order to bypass that issue and a couple of other things. You can do a google search on using Centos repos on RHEL and find lots of different instructions. It is usually much easier and more reliable to just switch to Centos.
A base repo is a repo that provides the base packages. For el5 (RHEL5 or Centos5) there are two main base repos, the RHEL5 repo(pay only) or the Centos repo. All the other third party repos will not have the base packages (becuase they are provided by the base repo) but instead provide packages that are not in the base repo.
If you use 'yum info packagename' it will tell you which repos and which versions each repo has. If you use the short name of the package (say just firefox) you will normally install the highest version number it can install.