LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 07-16-2013, 01:30 AM   #1
feralsboy
LQ Newbie
 
Registered: Apr 2013
Posts: 10

Rep: Reputation: Disabled
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?
 
Old 07-16-2013, 01:10 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
so ... I've downloaded some pre-built rpm's.
DO NOT just install some random rpm's " found on the net"
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
Quote:
how would I add these new rpm's to my repository for distribution to my network?
as per above
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 .
 
Old 07-16-2013, 01:37 PM   #3
feralsboy
LQ Newbie
 
Registered: Apr 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi John,

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.
 
Old 07-16-2013, 02:08 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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
 
Old 07-16-2013, 02:44 PM   #5
feralsboy
LQ Newbie
 
Registered: Apr 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi John,

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?

Regards,
 
Old 07-16-2013, 03:03 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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

Code:
su -
yum localinstall ????
will toss an "this system is not registered with redhat" and a
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
Code:
man rpm
on RHEL you will need to set up the "satellite program " to install from a local repo
( 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
http://wiki.centos.org/HowTos/CreateLocalRepos
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
 
Old 07-16-2013, 06:44 PM   #7
hawk1278
LQ Newbie
 
Registered: Aug 2012
Posts: 12

Rep: Reputation: Disabled
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.
 
Old 07-18-2013, 03:02 PM   #8
feralsboy
LQ Newbie
 
Registered: Apr 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
John VV,

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.

hawk1278,

Hi!

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.
 
Old 07-18-2013, 03:30 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
with RHEL there is a 30 day "trial" period
after that
you HAVE to buy the required license !!!
there is no real way around that !

buy the REQUIRED software support contract !!!
-----------------
END OF STORY !
-----------------

or

install the FREE rebuild of RHEL
CentOS 6.4

see :
"Migrate an existing system from RHEL6 or SL6 to CentOS 6"
http://wiki.centos.org/HowTos/Migrat...28migrating%29

Last edited by John VV; 07-18-2013 at 03:55 PM.
 
Old 07-18-2013, 07:33 PM   #10
feralsboy
LQ Newbie
 
Registered: Apr 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
So we can mark this closed.

thanks.
 
Old 07-29-2013, 10:06 AM   #11
dt64
Member
 
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 218

Rep: Reputation: 38
"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.
 
Old 08-22-2013, 11:37 PM   #12
wstewart90
Member
 
Registered: May 2013
Distribution: Arch Linux
Posts: 86

Rep: Reputation: Disabled
try createrepo

Last edited by wstewart90; 08-23-2013 at 02:12 AM.
 
Old 08-22-2013, 11:39 PM   #13
wstewart90
Member
 
Registered: May 2013
Distribution: Arch Linux
Posts: 86

Rep: Reputation: Disabled
nvm someone already mentioned it.

Last edited by wstewart90; 08-23-2013 at 02:12 AM.
 
Old 08-23-2013, 02:19 AM   #14
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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

Last edited by unSpawn; 08-23-2013 at 02:40 AM. Reason: //Edit
 
Old 08-23-2013, 02:58 AM   #15
dt64
Member
 
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 218

Rep: Reputation: 38
@John VV:
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...)).
 
  


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
Updating php via ssh and Yum: different repository? tex1820 Linux - Server 4 12-04-2012 04:55 AM
is there repository for red hat enterprise Linux ahmed_faew Linux - Enterprise 6 05-26-2011 05:43 AM
CentOS' YUM repository not updating? guest cAos 3 03-19-2005 03:57 AM
after updating RHEL AS 4 w/ CentOS' YUM repository.... guest cAos 2 03-17-2005 10:53 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 04:03 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