Previous Topic Next topic Print topic


Other RPM Installer Options

The following list includes some additional command line options available for the RPM installer.

To display a list of all Micro Focus products installed on your machine:

rpm -qa | grep Micro_Focus

This returns PackageName, the RPM names of the Micro Focus products which are used to identify the install packages.

To show the RPM package information:

rpm -qi [PackageName]

To show the location of an installed product:

rpm -ql [PackageName] | head -1

To check which files have post-install changes:

rpm -V [PackageName]

To view a list of the contents of an RPM file:

rpm -qpl filename.rpm

To view the dependencies of an RPM file:

rpm -qpR filename.rpm

To view a list of the files in an RPM package before installing the product:

rpm -qip filename.rpm

To display the scripts that run during the installation:

rpm -qp --scripts filename.rpm

To check whether the RPM file is corrupt:

rpm -Kvv --nosignature filename.rpm

To find the default installation location for a package:

rpm -q --qf "%{PREFIXES}\n" -p filename.rpm

For Visual COBOL, this is /opt/microfocus/VisualCOBOL.

To install the product into a non-default location, execute the following command with superuser permissions:

rpm -i --prefix=[FullPath] filename.rpm

To install a product and skip any package dependencies:

rpm -i --nodeps filename.rpm

By default, RPM installers only install one product at a time. This is to avoid overwriting any products installed in the default location. To install two or more products on the same machine, use the --prefix and --nodeps options together to install the additional products:

rpm -i --nodeps --prefix=[FullPath] filename.rpm

To access the files in the installer and view the installer payload, you can extract the contents of an RPM file to your disk without installing the product. To do this, use the following command:

rpm2cpio filename.rpm | cpio -idmv
Previous Topic Next topic Print topic