Previous Topic: Required 32-bit Packages for Installing Enterprise Management Server on Red Hat Linux 6Next Topic: rpm --whatprovides—Verify That a Library Exists


rpm --requires—Detect Library Dependencies

When installing Enterprise Management on Linux, you want to know on which libraries the CAeAC package depends.

The command uses the following syntax:

rpm -qp --requires package

The command has the following parameters:

-q

Specifies that you want to query RPM package information.

-p

Query a RPM package file. Also retrieves information on packages that are not installed.

--requires package

Retrieves the dependencies that are required by the package.

Example

You want to retrieve dependency information on CA ControlMinder 12.8 SP0.

root> rpm -qp --requires CAeAC-1280-0.0.1275.i386.rpm 
rpm >= 4.0
libcrypt.so.1  
libc.so.6  
libdl.so.2  
libgcc_s.so.1  
libm.so.6  
libnsl.so.1  
libpam.so.0  
libpthread.so.0  
libresolv.so.2  
libstdc++.so.6  
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1

Continue running the rpm command on the listed packages one by one to retrieve further dependencies.

root> rpm -qp --requires libcrypt 

More information:

rpm --whatprovides—Verify That a Library Exists