openoffice.org 3.0.1 and "--instdir" option
> I wanted to try out OOo 3.0.1 on Debian Lenny. From this web page:
> looks like all I have to do is:
> $> dpkg -i *.deb
> to the downloaded deb file to get the installation in /opt.
> Now, the web page also says that to change the location of the
> installation, I need to use "--instdir" (there is a typo on that web
> page though). So, I think I need to use:
> $> dpkg -i --installdir=/usr/local/opt *.deb
Yes, I think that is correct.
> to get the installation in /usr/local/opt. Or am I supposed to use
> --instdir=/usr/local ?
> The downloaded deb files all contain files starting with "./opt/" in
> their contents. Example:
> $> dpkg -c openoffice.org3-writer_3.0.1-15_i386.deb
> drwxrwxr-x root/root 0 2009-01-09 09:40 ./
> drwxr-xr-x root/root 0 2009-01-09 09:40 ./opt/
> drwxr-xr-x root/root 0 2009-01-09 09:40 ./opt/openoffice.org3/
> drwxr-xr-x root/root 0 2009-01-09 09:40 ./opt/openoffice.org3/program/
> -r-xr-xr-x root/root 63 2009-01-09 09:40
I've never used the --installdir directive, but my interpretation of the
man page is that you should set it to /usr/local (by default it is set
to /). That will then cause dpkg to install everything in
/usr/local/opt/ like you want.
> Also, man page of dpkg mentions "--root" option. What is the difference
> between "--instdir" and "--root"? Is "--root" set to "." in the debs
> of OOo that I listed above?
--root changes both --installdir and --admindir. You don't want to do
>From man dpkg:
Change default administrative directory, which contains
many files that give information about status of installed or
uninstalled packages, etc. (Defaults to /var/lib/dpkg)
Change default installation directory which refers to the
directory where packages are to be installed. instdir is also the
directory passed to chroot(2) before running packages installation
scripts, which means that the scripts see instdir as a root directory.
(Defaults to /)
Changing root changes instdir to dir and admindir to dir/var/lib/dpkg.
- Chris B
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact email@example.com