Linux - SoftwareThis 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
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.
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.
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)
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.