>>>>> "Amos" == Amos Shapira <[email protected]> writes:
Amos> there is dpkg --instdir, from dpkg(1): --instdir=dir
Amos> Change default installation directory which refers
Amos> to the direc‐ tory where packages are to
Amos> be installed. instdir is also the directory
Amos> passed to chroot(2) before running package's installa‐
Amos> tion scripts, which means that the scripts see
Amos> instdir as a root directory. (Defaults to /)
Amos> --root=dir Changing root changes
Amos> instdir to dir and admindir to
Amos> dir/var/lib/dpkg.
Amos> the "chroot" part possibly means that you need to do extra
Amos> "mount --bind /x / opt/x" on
Amos> x={proc,sys,dev,usr,lib,var,bin,sbin,...} in order for the
Amos> installation scripts to find everything they expect.
More than that -- you need libc, /etc/passwd, etc., etc. --- a full
(or almost full) chroot environment.
Amos> --Amos
Amos> On 21 December 2011 10:12, Peter Chubb
Amos> <[email protected]> wrote:
Amos> Hi folks, Under Debian, is there a simple way to install
Amos> from .debs into /opt/ package/ instead of /?
Amos> dpkg --root (or dpkg --instdir) is not quite what I want,
Amos> as it assumes a complete root directory.
Amos> (I know I can do dpkg -x and then move things around as I
Amos> want, but is there a simpler way?)
Amos> I want to do this with non-official .debs from emDebian,
Amos> to install toolchains that can be nfs-exported to multiple
Amos> machines. -- Dr Peter Chubb http://www.gelato.unsw.edu.au
Amos> peterc AT gelato.unsw.edu.au http://www.ertos.nicta.com.au
Amos> ERTOS within National ICT Australia -- SLUG - Sydney Linux
Amos> User's Group Mailing List - http://slug.org.au/ Subscription
Amos> info and FAQs: http://slug.org.au/faq/mailinglists.html
Amos> -- View my profile on L
Amos> --
Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au ERTOS within National ICT Australia
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html