LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-28-2017, 10:49 AM   #1
glowe
Member
 
Registered: Jan 2006
Posts: 31

Rep: Reputation: Disabled
Why is yum not seeing available files?


Hi All,

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:

[root@app02 media]# ll python2-pyvmomi-6.5-1*
-rw-r--r-- 1 root root 410592 Dec 28 07:57 python2-pyvmomi-6.5-1.el7.noarch.rpm
[root@app02 media]# pwd
/var/www/html/media
[root@app02 media]# yum install python2-pyvmomi-6.5-1
Loaded plugins: langpacks, search-disabled-repos
No package python2-pyvmomi-6.5-1 available.
Error: Nothing to do
[root@app02 media]# cat /etc/yum.repos.d/local.repo
[media]
name=media
baseurl=http://192.168.1.18/media
gpgcheck=0
enabled=1
[root@app02 media]#


How come it can't find the python2-pyvmomi package?
 
Old 12-28-2017, 11:31 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,840

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
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.
 
Old 12-28-2017, 02:10 PM   #3
glowe
Member
 
Registered: Jan 2006
Posts: 31

Original Poster
Rep: Reputation: Disabled
Hi pan64,

I'm still having issues. I ran createrepo --update and it still won't install a few RPMs. For example:

[root@redhat7-repo Packages]# yum install openshift-ansible-playbooks
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
No package openshift-ansible-playbooks available.
Error: Nothing to do
[root@redhat7-repo Packages]# ls openshift-ansible-playbooks*
openshift-ansible-playbooks-3.6.173.0.3-1.el7.noarch.rpm
[root@redhat7-repo Packages]#

Did I misunderstand your post?
 
Old 12-28-2017, 09:51 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
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
 
Old 12-29-2017, 05:46 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,840

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
I have no idea what did you really execute (and where). Probably you need to give more info. Probably you made a mistake (or more)...
 
Old 12-29-2017, 01:07 PM   #6
glowe
Member
 
Registered: Jan 2006
Posts: 31

Original Poster
Rep: Reputation: Disabled
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?
 
Old 12-29-2017, 09:26 PM   #7
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
it looks like you did not configure the offline ( guessing lan here) repo

read the documentation on making a lan/offline repo

is the client set up and pointing to the repo ?
is the server folder set up to be read BY the client ?

Last edited by John VV; 12-29-2017 at 09:27 PM.
 
Old 01-03-2018, 01:08 PM   #8
glowe
Member
 
Registered: Jan 2006
Posts: 31

Original Poster
Rep: Reputation: Disabled
This is the link I used to create the config:

https://access.redhat.com/solutions/23016

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?
 
Old 01-04-2018, 03:05 AM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,840

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
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...
 
  


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
LXer: DNF (Dandified yum), the next generation of yum package manager (Fork of Yum) for Fedora system LXer Syndicated Linux News 0 08-07-2016 05:12 PM
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
added yum files rebooted and wont load gnome - OpenGL/Cairo/Yum pckg help UmmJiga Linux - Newbie 3 11-03-2009 11:12 AM
Yum Files ssslackw Fedora 1 07-02-2009 03:43 PM
yum.conf - extract files from a DVD. How define repo location and what is yum command emuub Linux - Software 2 06-17-2007 07:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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