LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-25-2013, 08:29 PM   #1
tensigh
Member
 
Registered: Mar 2004
Location: Tokyo, Japan
Distribution: Backtrack 5 R3
Posts: 145

Rep: Reputation: 15
CentOS 5 server - repositories may not be correct


Hello,

At work I've inherited a production web server that's running CentOS 5.

A lot of the base commands aren't available; lscpu, fdisk, etc. When I try to install something via yum I always get "Nothing to do".

I went to CentOS's website and copy and pasted the repo info and did yum clean all, but to no avail.

What should I do to fix my repos so I can install base CentOS software? I'm more familiar with Debian but this seems like a similar process.

Any help would be greatly appreciated
 
Old 07-26-2013, 01:28 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,489

Rep: Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614
CentOS 5.9 is the only version supported in the older 5 series
have a look in the /etc/yum.repo.d/ folder and read the ip address in the repo files

is the "releserver" variable in the ip address or is it hard coded to a unsupported version like 5.3

for example from my SL 6.4 install
Quote:
baseurl=http://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/os/
or dose it look like this
Quote:
baseurl=http://ftp.scientificlinux.org/linux/scientific/6.4/i386/os/
also please post the output of this command
Code:
cat /etc/redhat-release

Last edited by John VV; 07-26-2013 at 01:30 PM.
 
Old 07-28-2013, 07:55 AM   #3
tensigh
Member
 
Registered: Mar 2004
Location: Tokyo, Japan
Distribution: Backtrack 5 R3
Posts: 145

Original Poster
Rep: Reputation: 15
1. baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/

2. CentOS release 5 (Final)

(Sorry, the website blasted my earlier reply. I posted more info but I don't want to type it a third time!!!)
 
Old 07-28-2013, 12:25 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,489

Rep: Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614
i would say upgrade
Code:
 su -

yum --releasever=5.9 upgrade
 
Old 07-28-2013, 05:08 PM   #5
tensigh
Member
 
Registered: Mar 2004
Location: Tokyo, Japan
Distribution: Backtrack 5 R3
Posts: 145

Original Poster
Rep: Reputation: 15
Production server upgrade

That sounds like good advice - I think I should schedule that.

This is a production server. This will just upgrade the standard OS packages, right? Will it upgrade/change the kernel edition and change GRUB's boot options as well?
Whenever I do one of these upgrades on Debian it tends to be a little bit of a pill. Not a real pain in the ass, just a lot of work.

Since I've never done an OS upgrade on CentOS, what other things should I consider?
 
Old 07-28-2013, 05:53 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3591Reputation: 3591Reputation: 3591Reputation: 3591Reputation: 3591Reputation: 3591Reputation: 3591Reputation: 3591Reputation: 3591Reputation: 3591Reputation: 3591
Quote:
Originally Posted by tensigh View Post
This will just upgrade the standard OS packages, right?
If no other repos are listed with 'yum repolist' (or see /etc/yum.repo.d/).


Quote:
Originally Posted by tensigh View Post
Will it upgrade/change the kernel edition
Yes.


Quote:
Originally Posted by tensigh View Post
and change GRUB's boot options as well?
Not that I'm aware of.


Quote:
Originally Posted by tensigh View Post
Since I've never done an OS upgrade on CentOS, what other things should I consider?
Since this is a production server ensure backups have been made regularly and test a restore. Since you haven't confirmed which CentOS 5 release ('cat /etc/redhat-release') you're actually running start by going over the release notes at http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.9 and verify system integrity (see 'man rpm': verify). Since this is a production server you may want to ensure the upgrade goes as planned by using a staging server before applying changes to production.
 
Old 07-28-2013, 06:22 PM   #7
tensigh
Member
 
Registered: Mar 2004
Location: Tokyo, Japan
Distribution: Backtrack 5 R3
Posts: 145

Original Poster
Rep: Reputation: 15
Thanks for the help

Thanks for your help.

Quote:
Originally Posted by unSpawn View Post

Since you haven't confirmed which CentOS 5 release ('cat /etc/redhat-release')
Actually, if you look at my earlier post, you'll see that I did post that information.

I will consider your advice when I plan the upgrade.
 
Old 07-28-2013, 07:35 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,489

Rep: Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614
5.9 is the ONLY supported version
none of the other versions of the 5 series are supported
CentOS 5.0 ,5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7, and 5.8 have NOT had updates
nor bug fixes , and there is NO new software to update

only 5.9 is receiving updates ( and the current 6.4 )

Cent being a rebuild of RHEL fallows the red hat rules

the major version of software in CentOS 5.0 will be the same 5 years later in 5.9 .
For 99.999% of users there should not be any issues in doing the normal standard upgrade .
Now for the very small number of people there might be an issue

so back up and do a bit of reading
the CentOS 5.9 change log is a good start


if this is the FULL output of the "cat" command on that text file
Quote:
CentOS release 5 (Final)
then something is a bit off

that file has this in it fro 5.9
Quote:
CentOS release 5.9 (Final)
now if you are in deed running 5.9

then it is eather upto date
or
repos are missing

can you please post the output of this
Code:
su -
yum repolist all
that outputs a list of software repos and if they are on and off
 
  


Reply

Tags
centos, repositories, repository, yum


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
Best CentOS repositories. theKbStockpiler Red Hat 4 08-29-2011 07:57 PM
Other CentOS Repositories Linux31 Red Hat 3 08-11-2007 09:19 AM
CentOS Repositories? lostn1slinux Linux - Software 1 09-10-2006 09:42 AM
Centos 4.3 Repositories harley51 Fedora 1 04-22-2006 07:32 PM
Centos repositories and codecs flebber Linux - General 1 10-21-2005 01:23 PM

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

All times are GMT -5. The time now is 03:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration