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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content