LinuxQuestions.org
Help answer threads with 0 replies.
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 06-11-2011, 12:08 PM   #1
shwethavb
LQ Newbie
 
Registered: May 2011
Posts: 18

Rep: Reputation: Disabled
Issue on yum configuration


I have RHEL5 installed on VMware machine , when i tried to install any of package using "yum",i always get below message

[B]Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Parsing package install arguments
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
No Match for argument: vim
Nothing to do
[root@localhost ~]#


what does it mean, why will i get this message always ??

Please assist me ASAP ,thank you
 
Old 06-11-2011, 12:23 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi there,

The reason you get this error message because there are no repositories configured from where yum can pickup the packages. You can refer to the following document to set up your own repositories:

https://access.redhat.com/kb/docs/DOC-7228

Also if you have got Redhat support then you contact Redhat support to fix that for you. Here is the link: http://www.redhat.com/support/

If this is a test system which you have configured for learning or testing purpose (assuming you have got it from your friend or someone) then you better use CentOS. It is same as Redhat you can say it is Redhat without brand. Whatever is there in Redhat you will find in CentOS. You can download CentOS from here: http://iso.linuxquestions.org/centos/
 
Old 06-11-2011, 12:40 PM   #3
shwethavb
LQ Newbie
 
Registered: May 2011
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by T3RM1NVT0R View Post
Hi there,

The reason you get this error message because there are no repositories configured from where yum can pickup the packages. You can refer to the following document to set up your own repositories:

https://access.redhat.com/kb/docs/DOC-7228

Also if you have got Redhat support then you contact Redhat support to fix that for you. Here is the link: http://www.redhat.com/support/

If this is a test system which you have configured for learning or testing purpose (assuming you have got it from your friend or someone) then you better use CentOS. It is same as Redhat you can say it is Redhat without brand. Whatever is there in Redhat you will find in CentOS. You can download CentOS from here: http://iso.linuxquestions.org/centos/
But when i issued below commands, it displayed 3 output files related to yum,as i already have those there files in my system,

Does presence of yum.repos.d file means yum repository already configured ?? or do u still want me to configure yum though i hav yum.repos.d file ??

[root@localhost /]# cd /etc
[root@localhost etc]# ls |grep yum
yum
yum.conf
yum.repos.d
[root@localhost etc]#
 
Old 06-11-2011, 12:58 PM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

/etc/yum.repos.d is a directory and not a file. Having that directory does not imply that you have got your repository setup. If you look into that directory you will find some files with .repo extension, you can create one file of your own say: myrepo.repo and add the instruction to where to look for the packages.

Please read the document link that I have mentioned in my previous post.

Example of a .repo file is as follows:

[base-local]
name=linux
failovermethod=priority
baseurl=http://xxx.xxx.xxx.xxx/yum-packs/
enable=1
gpgcheck=0

In this file you are instructing yum to look for a packages in a repository name linux which is located at http://xxx.xxx.xxx.xxx/yum-packs directory. Where xxx.xxx.xxx.xxx is the ip address of that server (it can be a local server as well)
 
Old 06-11-2011, 06:44 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,517

Rep: Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619
from this line in the error
-- it says it ALL
Quote:
This system is not registered with RHN.
RHN support will be disabled.
you did NOT PAY FOR IT !
RHEL is not free
You have to buy a licenst to be able to install software
-- buy the license --
-- YES YOU DO HAVE TO PAY FOR IT !!! ---
https://www.redhat.com/wapps/store/c...RdQ**.4b748952


or use a different OS
 
Old 06-16-2011, 05:58 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,847

Rep: Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584
Actually, you may have paid for it, but first you must register it if you have
Code:
rhn_register
at the cmd line as root user.
If you want RHEL functionality without paying, go Centos or Scientific Linux ; both free versions of RHEL.
 
  


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
yum-updatesd Configuration Dig Linux - Server 3 04-24-2012 06:04 AM
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
Yum configuration ashish_1985@ymail.com Linux - Newbie 1 02-11-2011 05:43 AM
Yum configuration in Redhat 5 udaya31 Linux - Software 3 03-04-2010 08:52 PM
yum-PRESTO configuration help DarkSlayer Linux - Newbie 2 03-29-2009 12:59 AM

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

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