| Red Hat This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-15-2008, 04:42 PM
|
#1
|
|
LQ Newbie
Registered: Oct 2008
Posts: 7
Rep:
|
Add a custom-built rpm to a repository
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?
Thanks,
Neil
|
|
|
|
10-15-2008, 04:52 PM
|
#2
|
|
Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Squeeze, Fedora 14
Posts: 7,268
Rep:
|
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:
rpm -i /usr/src/redhat/RPMS/i686/my.new.rpm
--------------------
Steve Stites
|
|
|
|
10-15-2008, 05:03 PM
|
#3
|
|
LQ Newbie
Registered: Oct 2008
Posts: 7
Original Poster
Rep:
|
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.
Thanks,
Neil
|
|
|
|
10-15-2008, 05:50 PM
|
#4
|
|
Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Squeeze, Fedora 14
Posts: 7,268
Rep:
|
I think that the way you straighten yum out on what versions it has on hand is:
yum clean headers
However, I have never tried this command so take my advice with a grain of salt. Check out the command in man yum and Google and see what you think.
--------------------
Steve Stites
|
|
|
|
10-15-2008, 06:01 PM
|
#5
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Have you tried recreating the repo with createrepo? repomd.xml, etc will need to be updated
|
|
|
|
10-15-2008, 06:08 PM
|
#6
|
|
Member
Registered: Oct 2008
Location: Brisbane Australia
Distribution: always back to Fedora
Posts: 239
Rep:
|
You will have to use the command "createrepo" to update the repo files for your local repositry. See the man page for createrepo.
|
|
|
|
10-15-2008, 09:11 PM
|
#7
|
|
LQ Newbie
Registered: Oct 2008
Posts: 7
Original Poster
Rep:
|
Thanks! I'll look into it.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:36 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|