Jatin Davey
2010-May-12 06:08 UTC
[CentOS] Adding Repositories and using yum to download packages
Hi I am using CentOS 5.3 and after installing the OS i scrolled to the /etc/yum.repos.d directory and i could not find any repositories being present there. So i googled a bit on adding the repositories and found the link: http://www.osresources.com/index.php?action=artikel&cat=11&id=6&artlang=en then when i try to install the net-snmp package that i require to monitor my box i get the following error: [root at sc-devld-1 etc]# yum install net-snmp Loading "rhnplugin" plugin Loading "installonlyn" plugin Repository base is listed more than once in the configuration Repository contrib is listed more than once in the configuration Repository centosplus is listed more than once in the configuration Repository addons is listed more than once in the configuration Repository extras is listed more than once in the configuration 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: update Please let me know what needs to be done. Thanks Jatin
John R Pierce
2010-May-12 06:19 UTC
[CentOS] Adding Repositories and using yum to download packages
Jatin Davey wrote:> Hi > > I am using CentOS 5.3 and after installing the OS i scrolled to the > /etc/yum.repos.d directory and i could not find any repositories being > present there. So i googled a bit on adding the repositories and found > the link: > > http://www.osresources.com/index.php?action=artikel&cat=11&id=6&artlang=en >thats some *really* bad advice. really really bad. undo everything yuou did there, and follow this instead... http://wiki.centos.org/AdditionalResources/Repositories
Jatin Davey
2010-May-12 06:48 UTC
[CentOS] Adding Repositories and using yum to download packages
On 5/12/2010 11:49 AM, John R Pierce wrote:> Jatin Davey wrote: > >> Hi >> >> I am using CentOS 5.3 and after installing the OS i scrolled to the >> /etc/yum.repos.d directory and i could not find any repositories being >> present there. So i googled a bit on adding the repositories and found >> the link: >> >> http://www.osresources.com/index.php?action=artikel&cat=11&id=6&artlang=en >> >> > thats some *really* bad advice. really really bad. undo everything > yuou did there, and follow this instead... > http://wiki.centos.org/AdditionalResources/Repositories > > > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > >I follwed the link that you have given but in it the explanation is given assuming that the Base repo is already present in the /etc/yum.repos.d directory but in my box i dont have any files in the /etc/yum.repos.d directory. So how do i add these basic needed repositories. In all my other boxes i do have it in the yum/repos.d directory. Please guide me in this regard. Thanks Jatin
Tom G. Christensen
2010-May-12 08:03 UTC
[CentOS] Adding Repositories and using yum to download packages
Jatin Davey wrote:> Hi > > I am using CentOS 5.3 and after installing the OS i scrolled to the > /etc/yum.repos.d directory and i could not find any repositories being > present there. So i googled a bit on adding the repositories and found > the link: >That sounds very much like you've actually installed RHEL and not CentOS. You can look at /etc/redhat-release to see what you've actually installed. -tgc
Jatin Davey
2010-May-12 08:09 UTC
[CentOS] Adding Repositories and using yum to download packages
On 5/12/2010 1:33 PM, Tom G. Christensen wrote:> Jatin Davey wrote: > >> Hi >> >> I am using CentOS 5.3 and after installing the OS i scrolled to the >> /etc/yum.repos.d directory and i could not find any repositories being >> present there. So i googled a bit on adding the repositories and found >> the link: >> >> > That sounds very much like you've actually installed RHEL and not CentOS. > > You can look at /etc/redhat-release to see what you've actually installed. > > -tgc > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >This is what i get as the output when i check the release of my system: [root at sc-devld-1 pluginconf.d]# cat /etc/*release CentOS release 5.3 (Final) Thanks Jatin