Switch from centos 4 to SL4?

2009-11-16 Thread Chris Tooley

Hello All,

My google foo is apparently not good enough to find a page that might 
describe the process of switching from centos4 to SL4.. Does anyone know 
of a good HOWTO or tutorial about this?


Thanks,
~Chris


Re: Switch from centos 4 to SL4?

2009-11-16 Thread Geerd-Dietger Hoffmann
Hello

On Mon, Nov 16, 2009 at 5:41 PM, Chris Tooley  wrote:
> Hello All,
>
> My google foo is apparently not good enough to find a page that might
> describe the process of switching from centos4 to SL4.. Does anyone know of
> a good HOWTO or tutorial about this?

Could you please be a little more precise. Do you want to use the SL
packages and leave the base (difficult) or do you want to reinstall?
Changing a running system could be quite hard.

Cheers Didi



My www page: www.ribalba.de
Email / Jabber: riba...@gmail.com
Skype : ribalba


Re: Switch from centos 4 to SL4?

2009-11-16 Thread Chris Tooley

Geerd-Dietger Hoffmann wrote:

Hello

On Mon, Nov 16, 2009 at 5:41 PM, Chris Tooley  wrote:

Hello All,

My google foo is apparently not good enough to find a page that might
describe the process of switching from centos4 to SL4.. Does anyone know of
a good HOWTO or tutorial about this?


Could you please be a little more precise. Do you want to use the SL
packages and leave the base (difficult) or do you want to reinstall?
Changing a running system could be quite hard.

Cheers Didi


Hi!

I would like it to identify as Scientific Linux, and use the Scientific 
Linux repos for regular updates - reinstall sounds like I may have to 
burn an ISO...?


Thanks,
-Chris


Re: Switch from centos 4 to SL4?

2009-11-16 Thread Troy Dawson

Chris Tooley wrote:

Geerd-Dietger Hoffmann wrote:

Hello

On Mon, Nov 16, 2009 at 5:41 PM, Chris Tooley  wrote:

Hello All,

My google foo is apparently not good enough to find a page that might
describe the process of switching from centos4 to SL4.. Does anyone know of
a good HOWTO or tutorial about this?

Could you please be a little more precise. Do you want to use the SL
packages and leave the base (difficult) or do you want to reinstall?
Changing a running system could be quite hard.

Cheers Didi


Hi!

I would like it to identify as Scientific Linux, and use the Scientific 
Linux repos for regular updates - reinstall sounds like I may have to 
burn an ISO...?


Thanks,
-Chris


If you just want to switch a running system, I *think* this would be all 
you need to do.


1 - Point Yum to look at SL yum repositories
1a - rm -f /etc/yum.repos.d/*repo
(a bit drastic, but if you want to go slow, just move everything)
1b (SL5) - rpm -Uvh 
http://ftp.scientificlinux.org/linux/scientific/5x/i386/misc/RPMS/yum-conf-latest.SL.noarch.rpm 

1b (SL4) - rpm -Uvh 
http://ftp.scientificlinux.org/linux/scientific/4x/i386/misc/RPMS/yum-conf-latest.SL.noarch.rpm 



2 - Replace the following packages:
yum (from centos) -> yum (from SL)
centos-release -> sl-release
centos-release-notes -> sl-release-notes (SL5 Only)
2a - yum clean all
(or even better 'rm -rf /var/cache/yum')
2b - yum update yum
2c - yum install sl-release\*

3 - Do a yum update, cleaning up the rest of the stuff.

Note: I have not done or tried this.   But it seems logical.

Troy
--
__
Troy Dawson  daw...@fnal.gov  (630)840-6468
Fermilab  ComputingDivision/LSCS/CSI/USS Group
__


Re: Switch from centos 4 to SL4?

2009-11-16 Thread Chris Tooley

Hi All, first of all, thanks for the help.

If you just want to switch a running system, I *think* this would be all 
you need to do.


1 - Point Yum to look at SL yum repositories
1a - rm -f /etc/yum.repos.d/*repo
(a bit drastic, but if you want to go slow, just move everything)
1b (SL4) - rpm -Uvh 
http://ftp.scientificlinux.org/linux/scientific/4x/i386/misc/RPMS/yum-conf-latest.SL.noarch.rpm 


Done.


2 - Replace the following packages:
yum (from centos) -> yum (from SL)
centos-release -> sl-release
centos-release-notes -> sl-release-notes (SL5 Only)


I cannot seem to install yum: I get dependency errors:

# rpm -i yum-2.4.3-10.SL.noarch.rpm
warning: yum-2.4.3-10.SL.noarch.rpm: V3 DSA signature: NOKEY, key ID 
82fd17b2

error: Failed dependencies:
python-elementtree is needed by yum-2.4.3-10.SL
urlgrabber is needed by yum-2.4.3-10.SL

So I attempt to follow the dependency trail, and end up stalled at:

# rpm -i yum-2.4.3-10.SL.noarch.rpm python-2.3.4-14.7.el4.i386.rpm 
python-elementtree-1.2.6-4.i386.rpm urlgrabber-2.9.6-1.noarch.rpm
warning: yum-2.4.3-10.SL.noarch.rpm: V3 DSA signature: NOKEY, key ID 
82fd17b2
warning: python-elementtree-1.2.6-4.i386.rpm: V3 DSA signature: NOKEY, 
key ID a7048f8d

error: Failed dependencies:
libdb-4.2.so is needed by python-2.3.4-14.7.el4

As far as I can tell, libdb-4.2 is provided by the package compat-db in 
SL5, however, the latest version in SL4 is < 4.2... (I am attempting to 
convert to SL4) Am I missing something here?


Previously I had converted this system from EL4 to Centos4 - might this 
have something to do with it?


Thanks again!
-Chris


Re: Switch from centos 4 to SL4?

2009-11-17 Thread Troy Dawson

Chris Tooley wrote:

Hi All, first of all, thanks for the help.

If you just want to switch a running system, I *think* this would be all 
you need to do.


1 - Point Yum to look at SL yum repositories
1a - rm -f /etc/yum.repos.d/*repo
(a bit drastic, but if you want to go slow, just move everything)
1b (SL4) - rpm -Uvh 
http://ftp.scientificlinux.org/linux/scientific/4x/i386/misc/RPMS/yum-conf-latest.SL.noarch.rpm 


Done.


2 - Replace the following packages:
yum (from centos) -> yum (from SL)
centos-release -> sl-release
centos-release-notes -> sl-release-notes (SL5 Only)


I cannot seem to install yum: I get dependency errors:

# rpm -i yum-2.4.3-10.SL.noarch.rpm
warning: yum-2.4.3-10.SL.noarch.rpm: V3 DSA signature: NOKEY, key ID 
82fd17b2

error: Failed dependencies:
python-elementtree is needed by yum-2.4.3-10.SL
urlgrabber is needed by yum-2.4.3-10.SL

So I attempt to follow the dependency trail, and end up stalled at:

# rpm -i yum-2.4.3-10.SL.noarch.rpm python-2.3.4-14.7.el4.i386.rpm 
python-elementtree-1.2.6-4.i386.rpm urlgrabber-2.9.6-1.noarch.rpm
warning: yum-2.4.3-10.SL.noarch.rpm: V3 DSA signature: NOKEY, key ID 
82fd17b2
warning: python-elementtree-1.2.6-4.i386.rpm: V3 DSA signature: NOKEY, 
key ID a7048f8d

error: Failed dependencies:
libdb-4.2.so is needed by python-2.3.4-14.7.el4

As far as I can tell, libdb-4.2 is provided by the package compat-db in 
SL5, however, the latest version in SL4 is < 4.2... (I am attempting to 
convert to SL4) Am I missing something here?


Previously I had converted this system from EL4 to Centos4 - might this 
have something to do with it?


Thanks again!
-Chris


Yes.  EL4 never had yum, or the libraries for yum.
Centos 4 had yum, so I had assumed that you had yum installed already.
Right at the moment I don't have time to track down which packages, 
maybe someone else had the list of packages needed for yum to be 
installed on a EL4 machine?


Troy
--
__
Troy Dawson  daw...@fnal.gov  (630)840-6468
Fermilab  ComputingDivision/LSCS/CSI/USS Group
__


Re: Switch from centos 4 to SL4?

2009-11-17 Thread Tim Edwards
Troy Dawson wrote:
> Chris Tooley wrote:
>> Hi All, first of all, thanks for the help.
>>
>>> If you just want to switch a running system, I *think* this would be
>>> all you need to do.
>>>
>>> 1 - Point Yum to look at SL yum repositories
>>> 1a - rm -f /etc/yum.repos.d/*repo
>>> (a bit drastic, but if you want to go slow, just move everything)
>>> 1b (SL4) - rpm -Uvh
>>> http://ftp.scientificlinux.org/linux/scientific/4x/i386/misc/RPMS/yum-conf-latest.SL.noarch.rpm
>>
>>
>> Done.
>>
>>> 2 - Replace the following packages:
>>> yum (from centos) -> yum (from SL)
>>> centos-release -> sl-release
>>> centos-release-notes -> sl-release-notes (SL5 Only)
>>
>> I cannot seem to install yum: I get dependency errors:
>> 
>> # rpm -i yum-2.4.3-10.SL.noarch.rpm
>> warning: yum-2.4.3-10.SL.noarch.rpm: V3 DSA signature: NOKEY, key ID
>> 82fd17b2
>> error: Failed dependencies:
>> python-elementtree is needed by yum-2.4.3-10.SL
>> urlgrabber is needed by yum-2.4.3-10.SL
>> 
>> So I attempt to follow the dependency trail, and end up stalled at:
>> 
>> # rpm -i yum-2.4.3-10.SL.noarch.rpm python-2.3.4-14.7.el4.i386.rpm
>> python-elementtree-1.2.6-4.i386.rpm urlgrabber-2.9.6-1.noarch.rpm
>> warning: yum-2.4.3-10.SL.noarch.rpm: V3 DSA signature: NOKEY, key ID
>> 82fd17b2
>> warning: python-elementtree-1.2.6-4.i386.rpm: V3 DSA signature: NOKEY,
>> key ID a7048f8d
>> error: Failed dependencies:
>> libdb-4.2.so is needed by python-2.3.4-14.7.el4
>> 
>> As far as I can tell, libdb-4.2 is provided by the package compat-db
>> in SL5, however, the latest version in SL4 is < 4.2... (I am
>> attempting to convert to SL4) Am I missing something here?
>>
>> Previously I had converted this system from EL4 to Centos4 - might
>> this have something to do with it?
>>
>> Thanks again!
>> -Chris
> 
> Yes.  EL4 never had yum, or the libraries for yum.
> Centos 4 had yum, so I had assumed that you had yum installed already.
> Right at the moment I don't have time to track down which packages,
> maybe someone else had the list of packages needed for yum to be
> installed on a EL4 machine?
> 
> Troy

I've been yum-enabling some of our RHEl4 machines in the past few days
with (note this is all on *one line* - mail client will stuff up the
line breaks):
rpm -Uvh
ftp://ftp.scientificlinux.org/linux/scientific/46/x86_64/SL/RPMS/yum-2.4.3-2.SL.noarch.rpm
ftp://ftp.scientificlinux.org/linux/scientific/46/x86_64/SL/RPMS/urlgrabber-2.9.6-1.noarch.rpm
ftp://ftp.scientificlinux.org/linux/scientific/46/x86_64/SL/RPMS/python-elementtree-1.2.6-4.x86_64.rpm
ftp://ftp.scientificlinux.org/linux/scientific/46/x86_64/SL/RPMS/python-sqlite-1.1.6-1.x86_64.rpm
ftp://ftp.scientificlinux.org/linux/scientific/46/x86_64/SL/RPMS/sqlite-3.1.2-3.x86_64.rpm
ftp://ftp.scientificlinux.org/linux/scientific/46/x86_64/SL/RPMS/yum-conf-4x-1-7.SL.noarch.rpm

Replace the "46/x86_64/" part with whatever's suitable.

Tim