Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 May 2000 09:59:12 +0100 (BST)
From:      Nick Hibma <n_hibma@calcaphon.com>
To:        Jin Guojun <jin@george.lbl.gov>
Cc:        nbm@mithrandr.moria.org, freebsd-bugs@freebsd.org
Subject:   Re: bin/18373: pkg_delete shouldn't insist on root
Message-ID:  <Pine.BSF.4.20.0005050957530.9076-100000@localhost>
In-Reply-To: <200005042054.NAA12166@george.lbl.gov>

next in thread | previous in thread | raw e-mail | index | archive | help

If you have created a port at some stage you can see the point in
actually being able to install it in a different location. It _would_
allow you to test a port on a machine (an Alpha for example) where you
do _not_ have access to a root login.

I can clearly see Neal's point. And I think it is a valid one at that as
well.

Nick


On Thu, 4 May 2000, Jin Guojun wrote:

> Neil Blakey-Milner stated:
> > Ok, I'm going to give it away.  Unless PKG_DBDIR is set, '/var/db/pkg'
> > is the default location.  _If_ it is set, it uses PKG_DBDIR instead of
> > '/var/db/pkg'.
> 
> Ok, PKG_DBDIR is not very meaningful for regular use at this point.
> 
> (1)
> Why should I do "setenv PKG_DBDIR path..." instead of doing "su" which is
> much simple?
> PKG_DBDIR is just an alternative if /var is not big enough, or some particular
> reason (not this one), such as for temp use, so the pkg location can be changed.
> 
> (2)
> If the package needs to be instead into /usr/bin /usr/lib /usr/local/{bin, lib}
> etc., you will need root privilege anyway unless these directories are also
> world rw-able. Remember that /usr/local/{bin, lib} is defaulted root W only,
> and most package will go into there.
> 
> (3)
> If you create a package not going to be installed into common/standard, such as
> /usr/local/{bin, lib} area, you probably can just create an installation script
> instead of using package. Then, you won't have such problem.
> 
> I would think the pkg_commands are sys-admin tools, but not user tools, such
> as "ls", "cd", etc.
> 
> 	-Jin
> 

--
n_hibma@webweaving.org
n_hibma@freebsd.org                                          USB project
http://www.etla.net/~n_hibma/



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.20.0005050957530.9076-100000>