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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
[root@localhost ~]# yum repolist all
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
options:
-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
[root@localhost ~]#
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.