rpm installation failed with --relocate option in Red Hat Enterprise Linux 7

Solution In Progress - Updated -

Issue

  • I have a custom rpm package with a large number of files.
  • I tried to install it with --relocate option on Red Hat Enterprise Linux 7, and it failed with the following error.
# rpm -vv -ih --relocate=/usr=/tmp/custom custom.rpm --nodeps
...
error: custom-1.0.0.noarch: install failed
...
  • The same command without --relocate option didn't fail.

Environment

Red Hat Enterprise Linux 7

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