RHEL5.5 Migrate to centos5.5, some RH remnants, questions

General support questions including new installations
dunwell
Posts: 116
Joined: 2010/12/20 18:49:52
Location: Colorado
Contact:

Re: RHEL5.5 Migrate to centos5.5, some RH remnants, questions

Post by dunwell » 2010/12/23 02:33:58

[quote]
toracat wrote:
The last update on my CentOS box is :

[b]Dec 16 04:55:18 Updated: openssl-0.9.8e-12.el5_5.7.i686[/b]

Regarding the up2date message you are seeing ... the rhnsd service must be still running. Try stopping and removing it:

[code]
[b]service rhnsd stop
chkconfig rhnsd off
rpm -e rhnsd[/b]
[/code][/quote]

Ahhhh, right you are. However look a this.

854 dunwellguitar3:/home/dunwell
> service rhnsd stop
Stopping Red Hat Network Daemon: [ OK ]
855 dunwellguitar3:/home/dunwell
> chkconfig rhnsd off
856 dunwellguitar3:/home/dunwell
> rpm -e rhnsd
error: Failed dependencies:
rhnsd is needed by (installed) rhn-setup-0.4.20-33.el5_5.4.noarch
857 dunwellguitar3:/home/dunwell
> dir /etc/init.d/rhnsd
4 -rwxr-xr-x 1 root root 1779 Jun 4 2009 /etc/init.d/rhnsd
> file /etc/init.d/rhnsd
/etc/init.d/rhnsd: Bourne shell script text executable

So rhn-setup is still installed and the bourne shell script will restart rhnsd on a reboot one assumes. Although the chkconfig off looks like it must have removed the calls for it from the various /etc/rc#.d subdirs. How should I proceed to get the rhn stuff fully disabled/removed.

And by the bye, many thanks for all the time you are putting into this. It is appreciated.
Alan D.

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: RHEL5.5 Migrate to centos5.5, some RH remnants, questions

Post by AlanBartlett » 2010/12/23 02:42:06

In post #7 [b]toracat[/b] wrote --

[quote]
CentOS does not use any of the rhn-* packages. Running the rpm -e command without the --nodeps option would have removed those packages.
[/quote]
Please show what the following command returns --

[code]
[b]rpm -qa rhn-\*[/b]
[/code]
[b]EDIT:[/b] I see you have already provided that information in post #6 --

[quote]
rhn-check-0.4.20-33.el5_5.4
rhn-setup-gnome-0.4.20-33.el5_5.4
rhn-client-tools-0.4.20-33.el5_5.4
rhn-setup-0.4.20-33.el5_5.4
rhnlib-2.5.22-3.el5_5.1
rhnsd-4.7.0-5.el5
[/quote]
So please try --

[code]
[b]rpm -e --test rhn-check rhn-setup-gnome rhn-client-tools rhn-setup rhnlib rhnsd[/b]
[/code]
If that test proceeds without any comment, then do it for real --

[code]
[b]rpm -e rhn-check rhn-setup-gnome rhn-client-tools rhn-setup rhnlib rhnsd[/b]
[/code]

dunwell
Posts: 116
Joined: 2010/12/20 18:49:52
Location: Colorado
Contact:

Re: RHEL5.5 Migrate to centos5.5, some RH remnants, questions

Post by dunwell » 2010/12/23 18:00:54

Sigh, it is recursing the dependencies

[code]
> rpm -e --test rhn-check rhn-setup-gnome rhn-client-tools rhn-setup rhnlib rhnsd
error: Failed dependencies:
rhn-setup-gnome is needed by (installed) pirut-1.3.28-17.el5.noarch
873 dunwellguitar3:/etc/init.d
>rpm -e --test rhn-check rhn-setup-gnome rhn-client-tools rhn-setup rhnlib rhnsd pirut
error: Failed dependencies:
pirut is needed by (installed) system-config-kickstart-2.6.19.8-2.el5.noarch
874 dunwellguitar3:/etc/init.d
> rpm -e --test rhn-check rhn-setup-gnome rhn-client-tools rhn-setup rhnlib rhnsd pirut system-config-kickstart
[/code]
Should I go ahead and also remove pirut and system-config-kickstart as well? Those aren't rhn specific IIRR.

Also, how are you getting things, such as the text I pasted above, into the nice text boxes? I don't see that as an option in the Reply screen. Then again I don't really understand all the icon thingies and there are no pop up telltales. :-)

Alan D.

[Moderator edited to insert [i]code[/i] tags to make nice text boxes.]

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: RHEL5.5 Migrate to centos5.5, some RH remnants, questions

Post by toracat » 2010/12/23 18:23:42

Assuming your [b]yum[/b] is in working condition, you can try:
[code]
yum remove rhnsd
[/code]
You will have a chance to see what else is going to be deleted. If the list looks fine, go ahead and say "y".

Regarding the text box like the above, use the code tag.

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: RHEL5.5 Migrate to centos5.5, some RH remnants, questions

Post by toracat » 2010/12/23 18:25:01

code tag => [code] text [/code]

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: RHEL5.5 Migrate to centos5.5, some RH remnants, questions

Post by AlanBartlett » 2010/12/23 19:22:14

[quote]
Should I go ahead and also remove pirut and system-config-kickstart as well?
[/quote]
Yes, I would.

Obviously the [i]RH[/i] versions have compiled in dependencies that the [i]CentOS[/i] versions do not. Once you've successfully removed the [i]rhn-[/i] packages, you can [i]yum[/i] install the [i]CentOS[/i] versions of [i]pirut[/i] and [i]system-config-kickstart[/i], if you so wish.

[code]
[b]yum remove rhn-check rhn-setup-gnome rhn-client-tools rhn-setup rhnlib rhnsd pirut system-config-kickstart
yum install pirut system-config-kickstart[/b]
[/code]

dunwell
Posts: 116
Joined: 2010/12/20 18:49:52
Location: Colorado
Contact:

Re: RHEL5.5 Migrate to centos5.5, some RH remnants, questions

Post by dunwell » 2010/12/23 21:25:50

[quote]
AlanBartlett wrote:
[quote]
Should I go ahead and also remove pirut and system-config-kickstart as well?
[/quote]
Yes, I would.

Obviously the [i]RH[/i] versions have compiled in dependencies that the [i]CentOS[/i] versions do not. Once you've successfully removed the [i]rhn-[/i] packages, you can [i]yum[/i] install the [i]CentOS[/i] versions of [i]pirut[/i] and [i]system-config-kickstart[/i], if you so wish.

[code]
[b]yum remove rhn-check rhn-setup-gnome rhn-client-tools rhn-setup rhnlib rhnsd pirut system-config-kickstart
yum install pirut system-config-kickstart[/b]
[/code][/quote]

Your initial suggestion of yum remove rhnsd would have worked but did not get all the itmes you listed in your second suggestion. So I did the second of yum remove and all went well with one warning that just showed
[code]warning: /etc/sysconfig/rhn/up2date saved as /etc/sysconfig/rhn/up2date.rpmsave[/code]

However when I tried to yum install the items were not found.
[code]> yum install pirut system-config-kickstart
Setting up Install Process
No package pirut available.
No package system-config-kickstart available.
Nothing to do
879 dunwellguitar3:/etc/init.d
> yum -v search pirut system-config-kickstart
Config time: 0.046
Yum Version: 3.2.22
Setting up Package Sacks
rpmdb time: 0.000
Warning: No matches found for: pirut
Warning: No matches found for: system-config-kickstart
No Matches found[/code]

So it really looks like yum is not really switched over to centos in that it doesn't actually know how to find a package from centos sources???
If I look in
[code]http://mirror.centos.org/centos/5.5/os/i386/CentOS/[/code]
I can see
[code]pirut-1.3.28-17.el5.centos.noarch.rpm
system-config-kickstart-2.6.19.8-2.el5.noarch.rpm[/code]
so I know they exist out there. Any way to verify where yum is looking? Other thoughts?

Also, note your Quote, it thought I was Alan Bartlett. Heh, heh, I wish. I'm not even Al Bartlett from U. Colorado.

Alan D.

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: RHEL5.5 Migrate to centos5.5, some RH remnants, questions

Post by toracat » 2010/12/23 21:42:10

Run [b]yum clean all[/b] and try again.

Also please show us the output of [b]yum repolist all[/b] .

dunwell
Posts: 116
Joined: 2010/12/20 18:49:52
Location: Colorado
Contact:

Re: RHEL5.5 Migrate to centos5.5, some RH remnants, questions

Post by dunwell » 2010/12/24 00:16:43

[code]884 dunwellguitar3:/etc/init.d
> yum clean all
Cleaning up Everything
885 dunwellguitar3:/etc/init.d
> yum install pirut system-config-kickstart
Setting up Install Process
No package pirut available.
No package system-config-kickstart available.
Nothing to do
886 dunwellguitar3:/etc/init.d
> yum repolist all
repolist: 0
[/code]

If necessary I can download the rpms and do rpm installs but I should think that yum would do it. That has to be fixed in anycase.
Alan D.

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: RHEL5.5 Migrate to centos5.5, some RH remnants, questions

Post by AlanBartlett » 2010/12/24 00:29:08

[quote]
> yum repolist all
repolist: 0
[/quote]
Something strange is going on. :-o

See what I obtain (o.k. so it is RHEL 6.0 but the example is still valid) --

[code]
[ajb@Duo2 ~]$ sudo yum repolist all
Loaded plugins: refresh-packagekit, rhnplugin
repo id repo name status
InstallMedia Red Hat Enterprise Linux 6.0 disabled
elrepo ELRepo.org Community Enterprise Linux Repository - el6 disabled
elrepo-kernel ELRepo.org Community Enterprise Linux Kernel Repository - e6l disabled
elrepo-testing ELRepo.org Community Enterprise Linux Testing Repository - el6 disabled
rhel-x86_64-server-6 Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64) enabled: 2,869+769
rhel-x86_64-server-fastrack-6 RHEL Server FasTrack (v. 6 64-bit x86_64) enabled: 0
rhel-x86_64-server-optional-6 RHEL Server Optional (v. 6 64-bit x86_64) enabled: 1,995+740
rhel-x86_64-server-optional-fastrack-6 RHEL Server Optional FasTrack (v. 6 64-bit x86_64) enabled: 0
rhel-x86_64-server-supplementary-6 RHEL Server Supplementary (v. 6 64-bit x86_64) enabled: 40+13
rpmforge RHEL 6Server - RPMforge.net - dag disabled
rpmforge-extras RHEL 6Server - RPMforge.net - extras disabled
rpmforge-testing RHEL 6Server - RPMforge.net - testing disabled
repolist: 4,904
[/code]
To aid [b]toracat[/b] in helping you, please post the output returned by --

[code]
[b]ls -l /etc/yum.repos.d/
ls -l /etc/yum/
rpm -q centos-release[/b]
[/code]

Post Reply