I need to install rpm packages but I get some dependency errors

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux all versions

Issue

  • While installing packages by using rpm command, dependency issue persists.

Resolution

  • To resolve dependency issues, all required packages should be installed at same time by using following command:
# rpm -ivh package1 package2 package3 ....

or

# yum install package
  • If packages are present in the system, following command can be used:
# yum localinstall package

Root Cause

  • A rpm package dependency requires the packages in relation need to be updated together.
  • When user specify packages with rpm command that may need dependency package(s), user need to add dependency packages to the updating rpm command.
  • Component
  • rpm

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments