updating a yum repository on red hat 6
so ... I've downloaded some pre-built rpm's. how would I add these new rpm's to my repository for distribution to my network?
that is the FASTEST WAY to FUBAR your system ! ( google it if you do not know what "fubar" is )
doing that might also cause your computer to NEVER EVER boot ever again
this is the fastest way to KILL every RHEL6 install on the network , not fun or easy to fix .
do not put random rpms in your local repo
contact red hat support
you are paying for the Required support contract(s)
and for a good sized " networked" set up -- like say an office
that is NOT cheep..
you are paying out a lot of cash , you might as well use the tech support you are paying for .
1st. Thank you for replying.
2nd. The environment is my home network.
3rd. The purpose of the question is to learn how to
add *ANY* rpm, that I deem appropriate, into a repository that I manage such
that I can use yum to install that rpm on another machine from my repository.
example: I just created an rpm for creating a user.
I wish to deploy this user to multiple machines.
How would I put that user.rpm into the local repository?
Yes, there are other ways of doing this, however I'm
attempting to do this via an rpm.
for RHEL contact red hat support and set up the red hat satellite program
the "satellite program " takes care of a local network on a local repo
PS. you also must have a paid and up to date support contract with red hat to install updates and software , also the OS installs must be registered with red hat
if you did not buy the required red hat support contract and are not going to do so then do not use RHEL !
instead install a FREE rebuild like CentOS 6.4
We seem to be getting side-tracked here. I expected to get an answer like:
run this cmd: $hostname> foo --option.
Instead I'm getting: This is the wrong thing to do or contact RedHat.
So am I to understand that you do *not* know how to add an rpm to a rhel repository?
So *if* it was a centOS repository, how would you add an rpm to it?
And yes, I know that this is the Enterprise forum. Does that mean that if you know
the answer you can't share it here?
for red hat , see the red hat docs
the FREE rebuild of RHEL
CentOS or Scientific linux guides will require you to do things that REQUIRE a paid for red hat support contract
RHN not supported error
without the paid for contract
the "rpm" command should only be used as a very last resort , or for a few software exceptions
see the man page
( you do not need that for the free CentOS or SL )
on RHEL you need to install some software that is in the RHN repo FIRST
for that you must have a paid for support contract
see the CentOS wiki page
if you try to use those commands on a non registered and supported install of RHEL
they will NOT work
that is why i told you to contact red hat support
you NEED the paid for support contract
How are you serving the repo? Via nfs, web server, or do you use spacewalk( the free alternative to rhn satellite )? Have you already created a repo, ie by running the createrepo command? If you did or if you have an existing repo just copy the rpms to your repo directory and run createrepo --update and the path to your repo.
you code has: yum localinstall ????
on my machine yum --help does not show localinstall as an option/cmd.
re: installing rpm's not from the official repository.
you gave this error: will toss an "this system is not registered with redhat" and a
RHN not supported error
my response: so ... when I installed the rpm's not from redhat, I did not get that
error. in fact, they installed fine.
1st. Thanks for responding.
2nd. I did the following:
1. copied the media to /var/www/html/inst/R* [ rhel 6.3.blah ]
2. added new rpm's into R*/Packages
3. rn your command: createrepo --update . in /var/www/html/inst/R*/Packages.
- it didn't work. I suspect that the path is incorrect.
So, I did the following.
cp /var/www/html/inst/R*/P* /var/ftp
cp new rpm's into /var/ftp
createrepo -d /var/ftp
that final cmd actually worked and the new rpm's showed up.
Thanks for all of your help.
with RHEL there is a 30 day "trial" period
you HAVE to buy the required license !!!
there is no real way around that !
buy the REQUIRED software support contract !!!
END OF STORY !
install the FREE rebuild of RHEL
"Migrate an existing system from RHEL6 or SL6 to CentOS 6"
So we can mark this closed.
"yum localinstall <rpmname>" does basically the same as "yum install <rpmname>" as long as the rpm is in the same dirctory/full path is given. Otherwise yum would search for the rpm in its database.
what you might be after would be" createrepo -d". Run this command in your repository folder and it will set up all you need.
nvm someone already mentioned it.
if one is going to use RedHat
one needs to buy the required license
not doing so will cause all kinds of major problems, software incompatibilitys and headaches and "hair pulling out"
yes it can be done BUT paying for the red hat license and access to RHN , or installing CentOS 6.4
is MUCH less of a major hassle than trying to bypass the required license issue
and using CentOS is a much BETTER option than NOT paying for RHEL
I read this pretty often here in this forum, that whoever uses RHEL needs to have a licence or will suffer pain, death and unhappiness.
Actually: That's crap.
The system itself doesn't care if you have a licence or not. I know many systems running RHEL 5 and 6, which have all the licence fees paid for, but are not configured with the licence. They work flawless for years. It all depends on the actual setup and use case of the system, but unfortunately there are many people out ther, who can only think the same distance they can see, as usual...
Yes, legally you are required to have a licence for production RHEL systems, but for test systems I'd never consider to buy one (use CentOS instead).
No, for the system itself, it doesn't really matter (if you can ignore the screen message about the missing licence file (which could be faked anyway...)).
|All times are GMT -5. The time now is 12:44 PM.|