From owner-freebsd-bugs Fri May 5 2: 0:36 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by hub.freebsd.org (Postfix) with ESMTP id 1C53F37BB55 for ; Fri, 5 May 2000 02:00:17 -0700 (PDT) (envelope-from n_hibma@calcaphon.com) Received: from calcaphon.demon.co.uk ([193.237.19.5] helo=bluebottle.qubesoft.com) by anchor-post-30.mail.demon.net with esmtp (Exim 2.12 #1) id 12ndy0-000GUB-0U; Fri, 5 May 2000 10:00:12 +0100 Received: from henny.qubesoft.com (henny.qubesoft.com [192.168.1.5]) by bluebottle.qubesoft.com (8.9.3/8.9.1) with ESMTP id KAA38435; Fri, 5 May 2000 10:00:10 +0100 (BST) (envelope-from n_hibma@calcaphon.com) Date: Fri, 5 May 2000 09:59:12 +0100 (BST) From: Nick Hibma X-Sender: n_hibma@localhost Reply-To: Nick Hibma To: Jin Guojun Cc: nbm@mithrandr.moria.org, freebsd-bugs@freebsd.org Subject: Re: bin/18373: pkg_delete shouldn't insist on root In-Reply-To: <200005042054.NAA12166@george.lbl.gov> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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