LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-05-2012, 01:09 AM   #1
jitendra bhaskar
LQ Newbie
 
Registered: Apr 2010
Location: Bombay
Distribution: RHEL-5 and CentOS-6
Posts: 23

Rep: Reputation: 0
Unhappy CentOs Yum configuration


Hi Team,

I have install CentOs-6 and i was trying to install rpm from online CentOS yum repository but i cant do it,
May be some default Yum setting is change from my side
Can any one help me to configure default yum setting on my CentOs-6 box? so i can install require rpm/dependencies from online CentOs site.
 
Old 04-05-2012, 01:44 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Did you check that you have internet connectivity? If you do, then the next step is to check what repositories you have configured and enabled. For that you'll need to check the contents of the files in /etc/yum.repos.d/ which in a default CentOS 6 installation would include the following files:
Quote:
CentOS-Base.repo
CentOS-Debuginfo.repo
CentOS-Media.repo
Kind regards,

Eric
 
Old 04-05-2012, 01:52 AM   #3
jitendra bhaskar
LQ Newbie
 
Registered: Apr 2010
Location: Bombay
Distribution: RHEL-5 and CentOS-6
Posts: 23

Original Poster
Rep: Reputation: 0
Unhappy

Hi EricTRa,

Thanks for prompt reply,
please see below out put from my box


[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# ls -lrth
total 24K
-rw-r--r--. 1 root root 728 Nov 13 2010 mirrors-rpmforge-testing
-rw-r--r--. 1 root root 717 Nov 13 2010 mirrors-rpmforge-extras
-rw-r--r--. 1 root root 739 Nov 13 2010 mirrors-rpmforge
-rw-r--r--. 1 root root 126 Nov 13 20:25 google-talkplugin.repo
-rw-r--r--. 1 root root 1.1K Apr 5 09:50 rpmforge.repo
 
Old 04-05-2012, 02:04 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Apparently you only have the RPMForge repositories configured and not the basic CentOS ones. Did you remove the repo files for CentOS? You'll need at least the Base repository to be able to apply updates and patches for your version. Can you confirm you have internet connectivity?

Kind regards,

Eric
 
Old 04-05-2012, 02:06 AM   #5
jitendra bhaskar
LQ Newbie
 
Registered: Apr 2010
Location: Bombay
Distribution: RHEL-5 and CentOS-6
Posts: 23

Original Poster
Rep: Reputation: 0
Yes,

I have internet connectivity and i am replying from the same Linux box
 
Old 04-05-2012, 02:11 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

This is what I have for a clean CentOS 6.2:
/etc/yum.repos.d/CentOS-Base.repo
Code:
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the 
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates 
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
This is only the base to allow you to get updates and install software (and dependencies) from base, updates and extras. Put the file in your /etc/yum.repos.d directory (make sure you get the .repo extension) and run:
Code:
yum update
Next try to install the software you were trying before. If it fails, please tell us what software you are trying to install.

Kind regards,

Eric
 
Old 04-05-2012, 02:29 AM   #7
jitendra bhaskar
LQ Newbie
 
Registered: Apr 2010
Location: Bombay
Distribution: RHEL-5 and CentOS-6
Posts: 23

Original Poster
Rep: Reputation: 0
Hey EricTRA,

Thanks for your help at least something positive happen and i have done what you told, i am trying to install gcc but giving an error

Please see below steps done by me as u mentioned

[root@localhost yum.repos.d]# pwd
/etc/yum.repos.d
[root@localhost yum.repos.d]# ls -lrth
total 24K
-rw-r--r--. 1 root root 728 Nov 13 2010 mirrors-rpmforge-testing
-rw-r--r--. 1 root root 717 Nov 13 2010 mirrors-rpmforge-extras
-rw-r--r--. 1 root root 739 Nov 13 2010 mirrors-rpmforge
-rw-r--r--. 1 root root 126 Nov 13 20:25 google-talkplugin.repo
-rw-r--r--. 1 root root 1.1K Apr 5 09:50 rpmforge.repo
-rw-r--r--. 1 root root 1.9K Apr 5 12:46 CentOS-Base.repo

[root@localhost yum.repos.d]# yum update

Now its updating my packages...
arround 613 packages are updating...

Please be on-line let me finish my update
 
Old 04-05-2012, 04:47 AM   #8
jitendra bhaskar
LQ Newbie
 
Registered: Apr 2010
Location: Bombay
Distribution: RHEL-5 and CentOS-6
Posts: 23

Original Poster
Rep: Reputation: 0
Hi EricTRA,

Its working fine...

Thanks for your great help


Regards
Jitendra
 
Old 04-05-2012, 04:53 AM   #9
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Good to hear! If you consider your problem solved then please mark the thread as such. Have fun with Linux.

Kind regards,

Eric
 
1 members found this post helpful.
  


Reply



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
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Software 2 03-30-2010 08:15 AM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Newbie 1 03-29-2010 12:56 PM
yum update on CentOS 5.3 upgraded my system to CentOS 5.4 diskoe Red Hat 1 10-29-2009 04:41 PM
Help on YUM configuration via CentOS sites rajeshkerala Linux - Newbie 2 05-02-2009 08:36 AM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:35 PM.

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