LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-10-2009, 08:19 AM   #1
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 214

Rep: Reputation: 33
Upgrade CentOS 5 to CentOS 5.2


Hi,

I have CentOS 5.0 DVD and install on my system and running fine. I want to update it to CentOS 5.2 / CentOS 5.3. Can anyone please let me know how to upgrade running CentOS to latest version.

Any help would be greatly appreciated !
 
Old 11-10-2009, 08:33 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
You just install the updates to rpm's you don't already have the latest version of, there is no "procedure" to it - It is still "RedHat 5". Generally a standard "yum update" will do this.
 
Old 11-10-2009, 08:38 AM   #3
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 214

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by acid_kewpie View Post
You just install the updates to rpm's you don't already have the latest version of, there is no "procedure" to it - It is still "RedHat 5". Generally a standard "yum update" will do this.
Thanks for the quick reply , i hope if i run yum update will help me in this.
 
Old 11-10-2009, 08:47 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Think of the sub-releases of rhel more like errata baselines. Install 5.0 and update 300 packages, install 5.4 and update 3... same end result.
 
Old 11-10-2009, 12:13 PM   #5
weekend69
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
someone can confirm that this solution works fine?

only "yum update" command is need?

if there's some dependencies problem, all instalation will broken???

thanks!
 
Old 11-10-2009, 12:44 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
there is no difference between 5.0, 5.1, 5.2, 5.3 or 5.4 other than the patches and fixes released as RPM's. If you install redhat5.0 and run "yum update" it will become 5.4. you are *NOT* doing an upgrade.
 
Old 11-10-2009, 02:52 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,632

Rep: Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652
just run " yum update" and you will have a cent 5.4 .
 
Old 11-11-2009, 01:46 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
As a disclaimer to some extent though, some packages do change in subtle ways as succdessive updates are added, so specific customizations you make to packages can work slightly differently after an update, e.g. fixing a bug might make a security feature work when it didn't before unbeknownst to you. Always the way with updates, but there is no cast iron guarentee everything will work exactly as it did before, but such is IT and this shouldn't be seen as a drawback or such.
 
Old 11-11-2009, 03:58 AM   #9
weekend69
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
The scenario is:

- remote server w/out physical access
- production installation (firebird running, people working, etc)
- complicated, nervous and average crazy customer

so I'm doing this update through "back door" because I need it to run some X applications via ssh -Y

let's start:

yum groupinstall "X Window System"

...
--> Running transaction check
--> Processing Dependency: glibc-common = 2.5-12 for package: glibc
Error: No Package Matching glibc.i686

shit!

rpm -qa --queryformat "% {NAME}-%{VERSION}.%{ARCH}\n" | grep glib | sort
avahi-glib-0.6.16.x86_64
compat-glibc-2.3.4.i386
compat-glibc-2.3.4.x86_64
compat-glibc-headers-2.3.4.x86_64
dbus-glib-0.70.x86_64
glib2-2.12.3.i386
glib2-2.12.3.x86_64
glib2-devel-2.12.3.x86_64
glibc-2.5.i686
glibc-2.5.x86_64
glibc-common-2.5.x86_64
glibc-devel-2.5.i386
glibc-devel-2.5.x86_64
glibc-headers-2.5.x86_64

.i386? .i686???

wget http://mirror.mcs.anl.gov/pub/scient....5-12.i386.rpm

rpm -ivh glibc-common-2.5-12.i386.rpm

...file /usr/bin/ldd from install of glibc-common-2.5-12 conflicts with file from package glibc-common-2.5-12

it's logical trying soft method:

yum groupinfo "X Window System"
Loading "installonlyn" plugin
Setting up Group Process
Setting up repositories

Group: X Window System
Description: Install this group of packages to use the base graphical (X) user interface.
Mandatory Packages:
xorg-x11-server-Xorg
xorg-x11-fonts-misc
xorg-x11-fonts-ISO8859-1-75dpi
xorg-x11-fonts-100dpi
xorg-x11-fonts-75dpi
xorg-x11-xauth
desktop-backgrounds-basic
xorg-x11-fonts-ISO8859-1-100dpi
xorg-x11-xinit
xorg-x11-fonts-Type1
xorg-x11-xfs
xorg-x11-fonts-truetype
bitmap-fonts
xorg-x11-drivers
Default Packages:
xorg-x11-twm
xorg-x11-apps
pirut
openssh-askpass
rhn-setup-gnome
firstboot
system-config-display
gdm
rhgb
synaptics
krb5-auth-dialog
system-config-soundcard
xterm
dejavu-lgc-fonts
linuxwacom
system-config-services
vnc-server
system-config-date
glx-utils
pup
system-config-printer-gui
wdaemon
authconfig-gtk
system-config-network
bitstream-vera-fonts
system-config-users
Optional Packages:
xorg-x11-resutils
xorg-x11-xsm
xorg-x11-server-Xnest
xorg-x11-xfs-utils
xorg-x11-server-Xvfb
switchdesk

yum install xorg-x11-server-Xorg xorg-x11-fonts-misc xorg-x11-fonts-ISO8859-1-75dpi xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi xorg-x11-xauth desktop-backgrounds-basic xorg-x11-fonts-ISO8859-1-100dpi xorg-x11-xinit xorg-x11-fonts-Type1 xorg-x11-xfs xorg-x11-fonts-truetype bitmap-fonts xorg-x11-drivers

Transaction Check Error:
file /usr/share/man/man8/booleans.8.gz from install of libselinux-utils-1.33.4-5.5.el5 conflicts with file from package libselinux-1.33.4-2.el5
file /usr/share/man/man8/matchpathcon.8.gz from install of libselinux-utils-1.33.4-5.5.el5 conflicts with file from package libselinux-1.33.4-2.el5
file /usr/share/man/man8/selinux.8.gz from install of libselinux-utils-1.33.4-5.5.el5 conflicts with file from package libselinux-1.33.4-2.el5


bof! selinux!

rpm -qa --queryformat="%{n}-%{v}-%{r}.%{arch}\n" | grep selinux | sort
libselinux-1.33.4-2.el5.i386
libselinux-1.33.4-2.el5.x86_64
libselinux-devel-1.33.4-2.el5.i386
libselinux-devel-1.33.4-2.el5.x86_64
libselinux-python-1.33.4-2.el5.x86_64
selinux-policy-2.4.6-30.el5.noarch
selinux-policy-targeted-2.4.6-30.el5.noarch

the same: search for this (is outdated) install (don't work: more conflicts) and so on...

I think never can update this system
 
Old 11-12-2009, 02:50 AM   #10
weekend69
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
after too many tries, I see the light: yum remove <some_packages> and yum update <concrete_packages>.x86_64 and finally Xorg runs!!

now fighting with Gnome etc etc

regards!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant Upgrade Centos 4.6 to Centos 5.3 with I2O subsystem crackyblue Linux - Software 2 11-25-2009 05:02 PM
LXer: PV-Grub on CentOS 5.2 PV DomU at Xen 3.3 CentOS 5.2 Dom0 (all 64-bit) LXer Syndicated Linux News 0 10-05-2008 10:12 PM
printer setup from Centos 5 to Vista home prem. on a headless centos pc ncsuapex Red Hat 6 03-10-2008 11:40 AM
LXer: Install CentOS 5 DomU on CentOS 5 Dom0(64 bit) from NFS share LXer Syndicated Linux News 0 11-09-2007 03:41 AM
LXer: CentOS announces CentOS 5 i386 Live CD LXer Syndicated Linux News 0 07-11-2007 07:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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