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.
I have created a repo for offline usage. I get files to it via downloading it via a "yum install --downloadonly --downloaddir=/tmp <package_name>". and then copy the downloaded file to my offline repo. I just copied over the python2-pyvmomi-6.5-1 rpm and for some reason, yum doesn't see it. Here's what I have:
yum uses repositories. These repositories have catalogs which lists the content of the repo. So it cannot install a standalone rpm without that. see the command createrepo.
this is redhat right ???
and not centos7 or sl7 ( or fermi 7 )
if it is rhel7 you do have the required support contract ?
-- you DO need it !
so log into the redhat site with your credentials you set up when you bought the support contract and do a search for "creatrepo "
and read the instructions
if you do not have a support contract for RHEL 7.4 then BUY ONE
if this is CentOS , cent also uses the redhat documentation ( the free for every one docs)
The white papers and "redhat knowledge_base" are for Licensed users only
Here's a summary of what I did (my bad that I didn't provide more detail).
1. Created a subscription/entitlement with Red Hat on my server.
2. Copied over the files I wanted from the Red Hat ISO.
3. Ran subscription-manager repos --list
4. From the previous list, ran subscription-manager repos --enable="rhel-7-server-rpms" --enable="rhel-7-server-extras-rpms"
5. Ran createrepo -v /path/to/my/repo/list
6. Ran createrepo -g comps.xml /path/to/my/repo/list
7. On a client:
# yum install openshift-ansible-playbooks-3.6.173.0.3-1.el7.noarch.rpm
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
No package openshift-ansible-playbooks-3.6.173.0.3-1.el7.noarch.rpm available.
Error: Nothing to do
#
It works on the server, but not the client. What am I missing?
To answer your questions. The client is setup and pointing to the repo. And the server folder is set up to be ready by the client. Where do we go from here?
probably you misunderstood post #7.
On the client (before step 7) you need to configure yum to be able to use the repo created in step 6. Just creating the repo is not enough. Also you need to be sure the repo on the server is available (shared?) and reachable from the client.
If nothing helps you need to check the new repo locally on the server if that works...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.