LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-23-2014, 02:56 AM   #1
h.safe
LQ Newbie
 
Registered: Jun 2014
Posts: 6

Rep: Reputation: Disabled
local repo is failing


Hi all

I have tried to follow the yum instruction(http://yum.baseurl.org/wiki/RepoCreate) on setting up a local repo and am sure that the steps are followed correctly for an RHEL7 server. Here are some detials:

The local repo file is:
/etc/yum.repos.d/local.repo
The content is :
[local]
name=RHEL-7
baseurl=file:///var/Packages/
enabled=1
gpgcheck=0


the dir contains all the rpm packages that on other servers worked fine. I did yum clean all and also yum list all but get the below error:

Errno 14] curl#37 - "Couldn't open file /var/Packages/repodata/repomd.xml"
Trying other mirror.


One of the configured repositories failed (RHEL-7),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:


if I run yum list all get this :

yum list all
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
isv_ownCloud_community | 1.2 kB 00:00:00
file:///var/Packages/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /var/Packages/repodata/repomd.xml"
Trying other mirror.


It is asking for the repomd.xml file which does not exist however creating of that requires the yum-config-manager which obviously is not installed or alternatively using the createrepo package-again non existant. This server is not connected to the Internet and there must be a way to force it to use its local rpm package as the only way of getting packages to be installed. Where did I go wrong ? Can somebody help me ?
Thanks

Last edited by h.safe; 06-23-2014 at 03:02 AM.
 
Old 06-23-2014, 03:12 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

you need to run createrepo (step 2 in the documentation you linked to).

Evo2.
 
Old 06-23-2014, 06:12 AM   #3
h.safe
LQ Newbie
 
Registered: Jun 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi
Thanks evo2, as tried to be clear at the first post, I wonder if there is anyway I can get the lcoal repo worked witohut going to the createrepo ....
 
Old 06-23-2014, 08:10 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

what is stopping you from installing it? Eg: Download the rpm, move it to the machine with some external media and install it.

Evo2.
 
Old 06-23-2014, 09:02 AM   #5
h.safe
LQ Newbie
 
Registered: Jun 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hello
Well that is the point, when trying it, there are loads and loads of dependencies that the package depends on and the vicious circle goes on and on...
To give you a bit of the taste the createrepo depends on python3 and python3 depends on various other libs, etc etc
The point however was specifically trying to configure it based on the first post scenario and also note that the machine is not having internet connection ....
 
Old 06-23-2014, 02:59 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
this is what yum is for

solving those dependencies
Code:
yum install createrepo
you did buy the required support contract from redhat ?
if not you basically DO NOT install any software

Quote:
This system is not registered to Red Hat Subscription Management.
that right there will STOP you
BUY the REQUIRED support contract !!!!
there is NO WAY around that
No if's and's or but's
buy the license

Last edited by John VV; 06-23-2014 at 03:02 PM.
 
Old 06-23-2014, 08:34 PM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

John makes a very good point - don't use RHEL unless you have a subscription. I suggest you use CentOS. There are many work arounds to install packages in situations where you don't have network, we can keep throwing random ones at you, but unless you tell us more about your set up we won't know what is the best one for you and we will all just be wasting our time.

Evo2.
 
Old 06-24-2014, 10:14 PM   #8
selfprogrammed
Member
 
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37
Posts: 290

Rep: Reputation: 55
I also keep my machine off the Internet and have run into these packages that simply assume that everyone has a high speed internet connection. At some point I give up on them. There are other methods and other distributions that do not require high speed internet connections.

I have run into the game of dependency after dependency too.
At some point you will find that what you are trying to setup was never meant to run alone and requires some facility that is only provided by an Internet connection.
The instructions often are not clear about that, probably because of the mind-set of the writers and the limited context they consider.
 
Old 06-24-2014, 10:51 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
well redhat and cent are server class OS's
and by definition a server IS and HAS to be on a high speed connection

also with the "drpm's " a dsl line is just fine

now a 56k dial up .... well
 
Old 06-25-2014, 07:23 AM   #10
kbnuts
Member
 
Registered: Apr 2014
Posts: 45

Rep: Reputation: Disabled
You might be able to do it via the iso. Set up a repo file pointing at the repo on the iso then install createrepo from there (You'll need it. it needs to build the xml files, if you want to manually hand hack all that yourself... best of luck)

However, as they say here. RHEL needs a license. If you don't like that but want to use 7, wait for CentOS 7 to be built.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
local repo srinivasmmdl Linux - Newbie 2 10-07-2011 10:00 AM
local repo pravlin Debian 2 07-23-2009 09:22 AM
yum local repo dlee12 Linux - Newbie 1 03-01-2009 01:26 PM
Local YUM Repo lord loh. Linux - Software 2 05-28-2007 01:41 AM
local apt repo adem0rdna Fedora 5 02-08-2005 10:59 PM


All times are GMT -5. The time now is 06: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration