LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-03-2008, 10:53 PM   #1
ragsnayak
LQ Newbie
 
Registered: Nov 2008
Location: Bangalore, India
Distribution: Redhat, Ubuntu
Posts: 21

Rep: Reputation: 15
Question Yum repository related question


Hi,

I using RHEL 4. I have configured yum repository using centos. The url is http://mirror.centos.org/centos/4/updates/i386/.

In yum.conf file, I have configured baseurl with the centos url which I have mentioned above.

My questions are
1. Can we have two different baseurls which point to a centos server and my local directory?
2. If yes, which all files have to be configured/modified?


The reason is,
We don't get each and every RPM in centos directory which are needed by different applications. I have some downloaded RPMs. But, yum is not able to figure them out because the baseurl of yum is configured with centos link.


I've been using RHEL 5 from past 6 months. The RPM structure given in the DVD/CD is totally different from RHEL 4.

In RHEL 5, we have Server and VT directories.
In RHEL 4, we have Redhat/ RPMS and Base directories.


Can someone please help me out?

Last edited by ragsnayak; 12-03-2008 at 11:01 PM.
 
Old 12-03-2008, 11:31 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I'm not sure if I'm really following you, but why are you saying you have directory full of rpms that you downloaded that you can't figure out how to get yum to use? If that is the case, you will need to use "createrepo" to generate the structures that yum requires from a repo. Just pointing a url to a directory full of won't work.

I don't know if this link will help on the final point (see post #5)

http://www.linuxquestions.org/questi...ro-dvd-652904/

(you should be able to modify for RH)
 
Old 12-03-2008, 11:42 PM   #3
ragsnayak
LQ Newbie
 
Registered: Nov 2008
Location: Bangalore, India
Distribution: Redhat, Ubuntu
Posts: 21

Original Poster
Rep: Reputation: 15
Question

Am not I clear enough?

I have installed createrepo and configured yum also. I have installed n number of rpms.

To install any package, we must configure yum.config or repo file in /etc/yum.repo.d/.

I have configured my yum.cofig with above mentioned URL.

If we want to install some applications, which depend on some RPMs. But, if those are not present in centos directory which is not in some remote place, then how to install those missing RPMs.

As per my understanding, yum basically searches the dependent/required RPMs from the baseurl which we specify in the yum.config or repo file present in the /etc/yum.repo.d.

Can you please help me out?
 
Old 12-03-2008, 11:49 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are you just putting a list of base-urls in yum.conf? I've never used yum.conf for this (I create repo files), but I would think you would need separate repo entries for each, so something like

[repo1]
name=Repo Number 1
baseurl=http://repo1_url

[repo2]
name=Repo Number 2
baseurl=http://repo2_url


Whereas I'm guessing you have

[repos]
name=Repo
baseurl=http://repo1_url
baseur1=http://repo2_url

Is that correct?
 
Old 12-03-2008, 11:52 PM   #5
ragsnayak
LQ Newbie
 
Registered: Nov 2008
Location: Bangalore, India
Distribution: Redhat, Ubuntu
Posts: 21

Original Poster
Rep: Reputation: 15
Hi Billy,

I've mentioned only one URL in the yum.conf. So, I'll try to give two or more url links. Let me check me the .repo file.

Thanks a lot.
 
Old 12-03-2008, 11:56 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
So are you just saying the dependency rpms aren't in any of the repos you have configured?
 
Old 12-04-2008, 12:20 AM   #7
ragsnayak
LQ Newbie
 
Registered: Nov 2008
Location: Bangalore, India
Distribution: Redhat, Ubuntu
Posts: 21

Original Poster
Rep: Reputation: 15
Yes. I think so. I'll check my repo file and yum.config file. I never tried to give two/more urls in the repo file.
If you have any good reference on repo files or solving those dependencies porblem, please suggest me.

Last edited by ragsnayak; 12-04-2008 at 12:28 AM.
 
Old 12-04-2008, 12:36 AM   #8
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I still don't quite follow the problem - try the yum command and post the output.
 
  


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 Repository nitrohuffer2001 Linux - General 7 04-23-2013 03:23 AM
YUM related Question tittos Linux - Newbie 2 10-31-2008 01:26 PM
yum antivirus and repository question ehartanto Linux - Enterprise 9 10-30-2008 02:21 AM
YUM repository Mr.J Linux - Newbie 3 06-27-2008 01:18 AM
Redhat 5.1 Yum Repository vs Fedora x.x Yum Repository lead2gold Linux - Software 1 05-22-2008 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:01 AM.

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