The dependencies of the RPM file are listed in the .spec file in the "Required:" line.
Example SPEC file:
Summary: <Summary for my Linux project> Name: <Name for my Linux project> Version: 2.5.1 Release: GA Requires: libx1.so >= 2.6.3 BuildArch: i586 Group: System / Applications License: GPL 2.0 Vendor: <my organization>
You can also run this command to determine which dependencies are needed:
$ rpm -q --requires <my_rpm> libx1.so.2 $
The libx1.so dependency libx1.so must be installed through RPM, so its presence is entered into a database maintained by RedHat Package Manager. In other words, the physical presence of libx1.so in the file system is not a criterion for a dependency test.
To find out which package provides the dependency, run the command:
$ rpm -q --whatprovides libx1
If the package does not provide libx1.so , your RPM will continue to display a dependency error unless you remove libx1.so from the "Required:" line.
To disable automatic dependency detection, you can add this to your .spec file:
AutoReqProv: no
More information is available at rpm.org and rpm5.org .
nohup
source share