Re: Question: Can dpkg relocate package
>Basically the problem is this: you can not guarantee that --prefix
>really works safely. It works if you just unpack files, but the moment
>a maintainer script is run to do some extra work things will break
>since they try to use the default locations. That is true for rpm
>as well, but they give you the option to shoot yourself in the foot
Doesn't RPM allow you to set a variable that is available to the maintainer
scripts that let's them know where the new install location is?
I think it's RPM_INSTALL_PREFIX?
At 06/21/2001, Wichert Akkerman wrote:
Previously Soraia Paz wrote:
> I'm converting Redhat .rpm to Debian .deb. I was wondering if dpkg
> allows you to relocate a package at install time. Something similar to
It does not allow you to do that.
> If not how does dpkg work? Does it just install where ever you put
> it or based on the directory structure when the package was
> first created?
Same structure as when the package was created starting in /, just
like a normal rpm run.
Basically the problem is this: you can not guarantee that --prefix
really works safely. It works if you just unpack files, but the moment
a maintainer script is run to do some extra work things will break
since they try to use the default locations. That is true for rpm
as well, but they give you the option to shoot yourself in the foot
That leaves you with two options: unpack a package manually in
another directory using dpkg -x and realize that you might break
things, or use a full chroot and use dpkg --root.
/ Nothing is fool-proof to a sufficiently talented fool \
| firstname.lastname@example.org http://www.liacs.nl/~wichert/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0 2805 3CB8 9250 2FA3 BC2D |
To UNSUBSCRIBE, email to email@example.com
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org