LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-27-2009, 05:51 PM   #1
redhat5
Member
 
Registered: Jul 2009
Posts: 50

Rep: Reputation: 15
Wink Number of repositories for which yum can be configured.


what is the number of repositories for which i can configure YUM?

And are there any chances of instability when using number of repositories with yum?

I am using RHEL5.

And i suspect that i have configure my yum for DAG WIEERS.

How to know that?

Last edited by redhat5; 07-27-2009 at 05:54 PM.
 
Old 07-27-2009, 06:24 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
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.
 
Old 07-28-2009, 01:27 AM   #3
redhat5
Member
 
Registered: Jul 2009
Posts: 50

Original Poster
Rep: Reputation: 15
I did

yum repolist all

it returned

[root@localhost ~]# yum repolist all
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.

usage: yum [options] < grouplist, localinstall, groupinfo, localupdate, resolvedep, erase, deplist, groupremove, makecache, upgrade, provides, shell, install, whatprovides, groupinstall, update, groupupdate, info, search, check-update, list, remove, clean, grouperase >

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.
 
Old 07-28-2009, 01:30 AM   #4
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
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.
 
Old 07-28-2009, 02:21 AM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
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.
 
Old 07-28-2009, 01:19 PM   #6
redhat5
Member
 
Registered: Jul 2009
Posts: 50

Original Poster
Rep: Reputation: 15
cant i use centos repos with the RHN configuration remaining as such.

what do i need to do for that?
 
Old 07-28-2009, 01:28 PM   #7
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
No, because when yum finds that you are not registered on the RHN, it stops.
 
Old 07-29-2009, 04:21 AM   #8
redhat5
Member
 
Registered: Jul 2009
Posts: 50

Original Poster
Rep: Reputation: 15
and how can i disable rhn repo search by yum........

so that i can only use those repos which i have myself configured.

Besides this, i want to know

What a base repo is?

Can any repo be configured as a base repo or some specific ones?

Also, i have not been abe to use yum much because being new, i messed with yum repos several times and each time ended with not working yum.

Can you please tell me a repository which contains most of the needed programs like firefox, wine, xine, mplayer........

Also, how can i know, which repository is being used by yum when i give a command like

yum install "packagename"

Thank You!

Last edited by redhat5; 07-29-2009 at 05:32 AM.
 
Old 07-29-2009, 01:21 PM   #9
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
YUM Repositories MMaghraby Linux - Software 4 03-30-2009 03:31 AM
number of zones is 16 though i configured one zone only linuxjamil Linux - Server 1 11-11-2008 03:30 AM
Problem with repositories/yum jim.thornton Linux - Newbie 1 04-25-2008 04:03 PM
rsync yum repositories mijohnst Linux - Networking 3 04-20-2006 10:29 PM
yum repositories ?? ZeroIdea Linux - Software 2 10-23-2005 06:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration