I wrote another article recently about an issue when attempting to install the srvadmin-all RPM package provided by the Dell OMSA repository. It is likely that when you are installing the OMSA repository that you will receive an error on CentOS and possibly on other versions of Linux. The yum OMSA repository is installed via a file available from Dell called bootstrap.cgi. Below I describe the issue when installing the OMSA repository and provide a couple methods to resolve the problem.
Error Installing Dell OMSA Repo Using bootstrap.cgi On CentOS Linux:
- [root@dev src]# wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
- Downloading GPG key: http://linux.dell.com/repo/hardware/latest/RPM-GPG-KEY-dell
- Importing key into RPM.
- Downloading GPG key: http://linux.dell.com/repo/hardware/latest/RPM-GPG-KEY-libsmbios
- Importing key into RPM.
- Write repository configuration
- Downloading repository RPM
- Installing repository rpm: http://linux.dell.com/repo/hardware/latest/platform_independent/rh50_64/prereq/dell-omsa-repository-2-5.noarch.rpm
- Installing yum plugins for system id
- Loading "installonlyn" plugin
- Setting up Install Process
- Setting up repositories
- dell-omsa-indep 100% |=========================| 1.9 kB 00:00
- rpmforge 100% |=========================| 1.1 kB 00:00
- base 2.1 kB 00:00
- updates 100% |=========================| 1.9 kB 00:00
- dell-omsa-specific 100% |=========================| 1.9 kB 00:00
- addons 100% |=========================| 951 B 00:00
- extras 100% |=========================| 2.1 kB 00:00
- Reading repository metadata in from local files
- primary.xml.gz 100% |=========================| 393 kB 00:00
- ################################################## 830/830
- primary.xml.gz 100% |=========================| 74 kB 00:00
- ################################################## 526/526
- primary.xml.gz 100% |=========================| 118 kB 00:00
- ################################################## 292/292
- Parsing package install arguments
- Resolving Dependencies
- --> Populating transaction set with selected packages. Please wait.
- ---> Downloading header for yum-dellsysid to pack into transaction set.
- yum-dellsysid-2.2.19-10.1 100% |=========================| 7.9 kB 00:00
- ---> Package yum-dellsysid.x86_64 0:2.2.19-10.1.el5 set to be updated
- --> Running transaction check
- --> Processing Dependency: smbios-utils-python = 0:2.2.19-10.1.el5 for package: yum-dellsysid
- --> Restarting Dependency Resolution with new changes.
- --> Populating transaction set with selected packages. Please wait.
- ---> Downloading header for smbios-utils-python to pack into transaction set.
- smbios-utils-python-2.2.1 100% |=========================| 10 kB 00:00
- ---> Package smbios-utils-python.x86_64 0:2.2.19-10.1.el5 set to be updated
- --> Running transaction check
- --> Processing Dependency: python-smbios = 2.2.19-10.1.el5 for package: smbios-utils-python
- --> Restarting Dependency Resolution with new changes.
- --> Populating transaction set with selected packages. Please wait.
- ---> Downloading header for python-smbios to pack into transaction set.
- python-smbios-2.2.19-10.1 100% |=========================| 12 kB 00:00
- ---> Package python-smbios.x86_64 0:2.2.19-10.1.el5 set to be updated
- --> Running transaction check
- --> Processing Dependency: python-ctypes for package: python-smbios
- --> Processing Dependency: libsmbios = 0:2.2.19-10.1.el5 for package: python-smbios
- --> Restarting Dependency Resolution with new changes.
- --> Populating transaction set with selected packages. Please wait.
- ---> Downloading header for libsmbios to pack into transaction set.
- libsmbios-2.2.19-10.1.el5 100% |=========================| 10 kB 00:00
- ---> Package libsmbios.x86_64 0:2.2.19-10.1.el5 set to be updated
- ---> Downloading header for python-ctypes to pack into transaction set.
- python-ctypes-1.0.2-1.1.e 100% |=========================| 7.1 kB 00:00
- ---> Package python-ctypes.x86_64 0:1.0.2-1.1.el5 set to be updated
- --> Running transaction check
- Dependencies Resolved
- =============================================================================
- Package Arch Version Repository Size
- =============================================================================
- Installing:
- yum-dellsysid x86_64 2.2.19-10.1.el5 dell-omsa-specific 15 k
- Installing for dependencies:
- libsmbios x86_64 2.2.19-10.1.el5 dell-omsa-specific 1.5 M
- python-ctypes x86_64 1.0.2-1.1.el5 dell-omsa-specific 215 k
- python-smbios x86_64 2.2.19-10.1.el5 dell-omsa-specific 69 k
- smbios-utils-python x86_64 2.2.19-10.1.el5 dell-omsa-specific 56 k
- Transaction Summary
- =============================================================================
- Install 5 Package(s)
- Update 0 Package(s)
- Remove 0 Package(s)
- Total download size: 1.9 M
- Downloading Packages:
- (1/5): smbios-utils-pytho 100% |=========================| 56 kB 00:00
- (2/5): yum-dellsysid-2.2. 100% |=========================| 15 kB 00:00
- (3/5): python-smbios-2.2. 100% |=========================| 69 kB 00:00
- (4/5): libsmbios-2.2.19-1 100% |=========================| 1.5 MB 00:00
- (5/5): python-ctypes-1.0. 100% |=========================| 215 kB 00:00
- Running Transaction Test
- Finished Transaction Test
- Transaction Test Succeeded
- Running Transaction
- Installing: python-ctypes ######################### [1/5]
- Installing: libsmbios ######################### [2/5]
- Installing: python-smbios ######################### [3/5]
- Installing: smbios-utils-python ######################### [4/5]
- Installing: yum-dellsysid ######################### [5/5]
- Installed: yum-dellsysid.x86_64 0:2.2.19-10.1.el5
- Dependency Installed: libsmbios.x86_64 0:2.2.19-10.1.el5 python-ctypes.x86_64 0:1.0.2-1.1.el5 python-smbios.x86_64 0:2.2.19-10.1.el5 smbios-utils-python.x86_64 0:2.2.19-10.1.el5
- Complete!
- Loading "installonlyn" plugin
- Loading "dellsysid" plugin
- usage: yum [options] < grouplist, localinstall, groupinfo, localupdate, resolvedep, erase, deplist, groupremove, makecache, upgrade, provides, shell, install, whatprovides, groupinstall, update, groupupdate, info, search, check-update, list, remove, clean, grouperase >
- Command line error: no such option: --disableplugin
As you can see in the above output there are multiple dependencies that will likely be installed when you issue the command as recommended by Dell. The error does not occur until the very end of the install process and is caused by a reference to the “–disableplugin” switch that does not exist in current versions of yum. So to resolve the problem you can either ignore the error and issue the “yum clean all” command after installing the OMSA repository or you could simply download the bootstrap.cgi file, modify it, and then install the OMSA repostory.
Easiest Resolution To Yum OMSA Repo Install From Dell:
- yum clean all
The easiest way to resolve the issue is to simply issue the “yum clean all” command after you install the OMSA repository as instructed by Dell. The other way to resolve the issue is to manually edit the bootstrap.cgi file before installing the OMSA repository. First you would need to download bootstrap.cgi as noted below.
Download bootstrap.cgi OMSA Repo Installer From Dell:
- wget http://linux.dell.com/repo/hardware/latest/bootstrap.cgi
After downloading the file edit the bootstrap.cgi file with your favorite text editor and modify line 330 by removing the –disableplugin switch from the “yum clean all” command.
Original Line 330 Of bootstrap.cgi OMSA Repo Installer File From Dell:
- yum --disableplugin=rhnplugin clean all
Updated Line 330 Of bootstrap.cgi OMSA Repo Installer File From Dell:
- yum clean all
After updating the bootstrap.cgi file issue the below command to install the OMSA yum repository using the bootstrap.cgi file on your local server. You will probably need to change the permissions on the bootstrap.cgi file to make it executable by using a command similar to “chmod 755 bootstrap.cgi”.
Install OMSA Yum Repository After Modifying bootstrap.cgi File From Dell:
- [root@dev src]# ./bootstrap.cgi
You should now be able to proceed with installing the recommended packages from Dell such as the srvadmin-all RPM package.