[CentOS] Adding Repositories and using yum to download packages
Jatin Davey
jashokda at cisco.com
Wed May 12 09:25:49 UTC 2010
On 5/12/2010 2:48 PM, John R. Dennison wrote:
> On Wed, May 12, 2010 at 02:27:56PM +0530, Jatin Davey wrote:
>
>> [root at sc-devld-1 yum.repos.d]# yum install net-snmp
>> Loading "rhnplugin" plugin
>> Loading "installonlyn" plugin
>> This system is not registered with RHN.
>> RHN support will be disabled.
>> Setting up Install Process
>> Setting up repositories
>> not using ftp, http[s], or file for repos, skipping - 5Client is not a
>> valid release or hasnt been released yet
>> Error: Cannot find a valid baseurl for repo: base
>>
> That's a RHEL5 box from the looks of it, but from a follow-up
> post of yours /etc/redhat-release says it's centos. The two
> are mutually exclusive. Also, /etc/redhat-release is a simple
> text file that can be made to say anything so it's not a great
> source of proper identification.
>
> What does "rpm -q centos-release" say?
>
>
>
>
> John
>
Thanks for responding john,
This is what i get from the output of the command that you had asked for:
[root at sc-devld-1 etc]# rpm -q centos-release
package centos-release is not installed
Also i found that there is a file named as redhat-release.bak in the
/etc directory , doing a cat on it gives the following output:
[root at sc-devld-1 etc]# cat redhat-release.bak
Red Hat Enterprise Linux Client release 5 (Tikanga)
Thanks
Jatin
More information about the CentOS
mailing list