Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
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.
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 .
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
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.
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.
"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.
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
@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...)).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.