[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Relocation broken on 4.3.3-18 ?
- From: Jeff Johnson <n3npq jbj gmail com>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: Relocation broken on 4.3.3-18 ?
- Date: Sat, 2 Aug 2008 08:02:25 -0400
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/myprog
When I pass the --prefix flag and try to install to /usr/local/opt/
myfiles/ for example, it still installs in the default directory
Also 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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]