FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 02-14-2009, 03:58 AM
"H.S."
 
Default openoffice.org 3.0.1 and "--instdir" option

Chris Burkhardt wrote:
> H.S. wrote:
>> Hello,
>>
>> I wanted to try out OOo 3.0.1 on Debian Lenny. From this web page:
>> http://wiki.services.openoffice.org/wiki/Documentation/Administration_Guide/Linux
>>
>> 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
>> ./opt/openoffice.org3/program/swriter
>
> 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
> that.
>
>>From man dpkg:
>
> --admindir=dir
> Change default administrative directory, which contains
> many files that give information about status of installed or
> uninstalled packages, etc. (Defaults to /var/lib/dpkg)
>
> --instdir=dir
> 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 /)
>
> --root=dir
> Changing root changes instdir to dir and admindir to dir/var/lib/dpkg.
>
> - Chris B
>
>


Thanks, your message clarified the few doubts I had about these dpkg
options.

Warm regards.


--

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 02:44 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org