Relocate RPM Package Installation Path With yum

Solution Unverified - Updated -

Issue

  • What are the differences between

    yum --installroot=<path> install <package>
    

    and

    rpm --prefix=<path> <package>
    
  • install a package in a different location with yum like with rpm --prefix

Environment

  • Red Hat Enterprise Linux (RHEL)
    • 5
    • 6
    • 7
  • (Yellowdog Updater, Modified) YUM
  • RPM Package Manager (RPM)
  • Single package to install in a different root path

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In