Red Hat Enterprise Linux > AS/ES/WS Basics > Issue
<<
202 of 908
>>
Issue:
How do I resolve package dependencies automatically?
Resolution:
Here are the steps you need in order to resolve dependencies automatically:
- You need to install the rpmdb-redhat package so the file dependencies can be determined. (It is on Installation CD #2)
- Load the packages. Make the RPM releases from Red Hat Enterprise Linux release available. The contents of the directory RedHat/RPMS on each of the three install CDs should be available in a single directory on the local system.
- Create two RPM macros. One called _solve_pkgsdir and one called _solve_name_fmt. The first macro should name the directory holding the packages in step 2. One way of doing this is to create a file /root/.rpmmacros containing the following lines:
%_solve_pkgsdir /path/to/my/packages
%_solve_name_fmt%{?_solve_pkgsdir}%%{NAME}-%%{VERSION}-%%{RELEASE}.%%\{ARCH}.rpm
- Now with these in place, you may now use the --aid option to resolve dependencies. When installing, use it to invoke the dependency resolution.
Example:
rpm -ivh --aid <package_name>
Red Hat Enterprise Linux
>
AS/ES/WS Basics
> Issue
<<
202
of
908
>>