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!
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.
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.
To set a yum repository i copied all the packages of Server folder from RHEL 5.1 DVD to my /home/repo , Some one told me that before making new repodata , delete the old folder named repodata and a file named TRANS.TBL which already exist in Server folder of RHEL 5.1 DVD.
Saving Primary metadata
Saving file lists metadata
Saving other metadata
4. then i created a file
[root@localhost ~]# vi /etc/yum.repos.d/rhel.repo
contents of file are
[RHEL]
name=my repository
baseurl=file:///home/repo/
gpgcheck=0
5. now i am trying yum command
[root@localhost ~]# yum -y install httpd
Loading "rhnplugin" plugin
Loading "installonlyn" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Setting up repositories
Reading repository metadata in from local files
No Match for argument: httpd
Nothing to do
6. please tell me why instead of installing httpd package the above problem is occurring.
Is there any mistake done by me.
In addition to JohnVV's response above; do you have a subscription for RHEL for this machine?
If so you can register this machine with RHN; and this will automatically configure yum for you; as well as give you access to the latest available packages.
Using the install media as your repo, you're limiting yourself to packages that were released at the time of the creation of that media.
Lastly as per JohnVV, please consider upgrading to RHEL 5 update 5 which is the latest release.
I have no subscription of this machine. It is only for my home use. Previously i configured yum repository and it was working fine with out any RHN registration. But i formatted my system and installed a fresh copy of RHEL 5.1, but now when i trying to configure yum repository it is give the above output when using yum command to install any package.
One thing more also tell me how to update from RHEL 5.1 to RHEL 5.5. Do i need to again install Linux with RHEL 5.5 DVD or by only updating some of the packages of existing RHEL 5.1 .
Here i think the question is on how to make the local repository working on RHEL whether its 5.1 or 5.5. Even i tried the same and got the error. I don't know why its showing error on a local repository. Any answers on creating a working local repository ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.