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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.