Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > AS/ES/WS Basics > Issue <<  202 of 908 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 4282
Last update: 08-06-06
Issue:
How do I resolve package dependencies automatically?
Resolution:

Here are the steps you need in order to resolve dependencies automatically:

  1. You need to install the rpmdb-redhat package so the file dependencies can be determined. (It is on Installation CD #2)

  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.

  3. 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
    
  4. 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>


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > AS/ES/WS Basics > Issue <<   202  of  908  >>