Red HatThis forum is for the discussion of Red Hat Linux.
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.
We have a local repository, and I recently used rpmbuild -bb to build an rpm. I copied it over to the RPMS subdir where all the other rpms are, but it doesn't show up when I do a 'yum update pkgname' on a server. Do I have to somehow tell the repository that I put some new rpms there? Is there a tool to do this, or do I just vi a file and add the rpm names?
You can add a local directory to Red Hat's list of repositories. I am uncertain about Red Hat but I would guess that the repository list is kept in /etc/yum.repos.d.
In any case you can install a rpm package which is not in any repository by using the rpm command. Something like:
We already have a local directory with rpms, and it's already in our yum configuration so that when we do a 'yum update|install $pkgname' it will look in this repository. The issue I'm having is that I copied an rpm into that directory, and yum doesn't seem to know that. When I try 'yum update $pkgname', it says that I already have the latest version(the rpm I build is a newer version).
I could conceivable run rpm -Uvh /path/to/$pkgname, but that kinda get's troublesome with dependencies and all, and we've established that we want to use yum for this.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.