RHEL 5.5 - RHSM - Fail to install subscription manager

Latest response

Hello,

I need to update an old server that wasn't connected to the net.
Red Hat Enterprise Linux Server release 5.5 (Tikanga)

I need to register it to RHSM, so I tried to install the package subscription-manager (subscription-manager-0.98.14-1.el5.x86_64.rpm)

But I get:
rpm -i subscription-manager-0.98.14-1.el5.x86_64.rpm
warning: subscription-manager-0.98.14-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
python-ethtool is needed by subscription-manager-0.98.14-1.el5.x86_64
python-rhsm >= 0.96.11 is needed by subscription-manager-0.98.14-1.el5.x86_64
python-simplejson is needed by subscription-manager-0.98.14-1.el5.x86_64
virt-what is needed by subscription-manager-0.98.14-1.el5.x86_64

If I try :
rpm -i python-ethtool-0.6-5.el5.x86_64.rpm
warning: python-ethtool-0.6-5.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
libnl.so.1()(64bit) is needed by python-ethtool-0.6-5.el5.x86_64

Instead of dealing with the manual installation of all the dependencies, I'd like to use a local repository.
In a similar case, with a RHEL 6.1, I used the DVD installation .iso file as local repository to YUM all what I need for the subscription to RHSM.
I did it with this:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/5/html/deployment_guide/s1-yum-upgrade-system

And all was fine.

I did the same procedure on this server (RHEL 5.5), but when I yum update it, I get

yum update
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
file:///tmp_mnt_local_repo/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/tmp_mnt_local_repo/repodata/repomd.xml'
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel5.5-Server. Please verify its path and try again

And effectively there is no repodata/repomd.xml in the DVD's root directory (rhel-server-5.5-x86_64-dvd.iso) when this repodata/repomd.xml exists in the root directory of rhel-server-6.1-x86_64-dvd.iso file

Does someone have a solution to install the subscription-manager and all its dependencies easily or a solution to set the install DVD as a local repository.

Thanks

Responses

I found the problem

I need to point to /Server under the main directory in the .iso file https://access.redhat.com/solutions/328843

Now all seems good, but it does not work

[root@dserv]# yum clean all Loaded plugins: rhnplugin, security Cleaning up Everything

[root@dserv]# yum update Loaded plugins: rhnplugin, security This system is not registered with RHN. RHN support will be disabled. DVD-Server | 1.3 kB 00:00 DVD-Server/primary | 868 kB 00:00 DVD-Server 3116/3116 dvd-cluster | 1.3 kB 00:00 dvd-cluster/primary | 868 kB 00:00 dvd-cluster 3116/3116 dvd-cluster-storage | 1.3 kB 00:00 dvd-cluster-storage/primary | 868 kB 00:00 dvd-cluster-storage 3116/3116 dvd-vt | 1.3 kB 00:00 dvd-vt/primary | 868 kB 00:00 dvd-vt 3116/3116 Skipping security plugin, no data Setting up Update Process No Packages marked for Update

[root@dserv]# yum remove vim Loaded plugins: rhnplugin, security This system is not registered with RHN. RHN support will be disabled. Setting up Remove Process No Match for argument: vim No Packages marked for removal

[root@dserv]# yum install vim Loaded plugins: rhnplugin, security This system is not registered with RHN. RHN support will be disabled. Setting up Install Process No package vim available. Nothing to do

my /etc/yum.repo.d/mylocalrepo.repo file looks like this

[DVD-Server] mediaid=1269263646.691048 name=DVD for RHEL5 - Server baseurl=file:///tmp_mnt_local_repo/Server gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release enabled=1 gpgcheck=1

[dvd-cluster] mediaid=1269263646.691048 name=DVD for RHEL5 - Cluster baseurl=file:///tmp_mnt_local_repo/Server gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release enabled=1 gpgcheck=1

[dvd-cluster-storage] mediaid=1269263646.691048 name=DVD for RHEL5 - ClusterStorage baseurl=file:///tmp_mnt_local_repo/Server gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release enabled=1 gpgcheck=1

[dvd-vt] mediaid=1269263646.691048 name=DVD for RHEL5 - VT baseurl=file:///tmp_mnt_local_repo/Server gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release enabled=1 gpgcheck=1

What i did wrong

Thanks

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.