Linux - NewbieThis 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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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]
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 ?
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 ....
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.
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.
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.