|
|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Aug 1, 2008, at 3:03 PM, Marty Ridgeway wrote:
Relocation appear not to work on RPM 4.3.3-18 . I have Prefix: set to /opt/myfiles All files in the RPM are in /opt/myfiles/myprogWhen I pass the --prefix flag and try to install to /usr/local/opt/ myfiles/ for example, it still installs in the default directoryAlso if I query rpm -qp --queryformat '%{prefix}\n' or {defaultprefix} I get an incorrect format error. If I query {name}, [release}, {version}, etc. the query comes backs correctly.
Have you tried
rpm -Uvh --relocate /=/usr/local --badreloc yourpkg*.rpm
Yes rpm --query will fail with unknown tags, neither %{prefix} nor %
{defaultprefix}
are vald tags iirc (rpm-4.3.3 was released 4+ years ago).
The list of valid tags is displayed using --querytags. Try
rpm -qp --qf '[%{prefixes}\n]' yourpkg*.rpm
to see what prefix{s} were included in yourpkg.
But all directory/file paths in *.rpm packages can be relocated or
excluded if --badreloc is used.
hth 73 de Jeff _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list