From owner-freebsd-bugs Thu May 4 13:54:29 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from portnoy.lbl.gov (portnoy.lbl.gov [131.243.2.11]) by hub.freebsd.org (Postfix) with ESMTP id 17ECB37C251 for ; Thu, 4 May 2000 13:54:27 -0700 (PDT) (envelope-from jin@portnoy.lbl.gov) Received: (from jin@localhost) by george.lbl.gov () id NAA12166; Thu, 4 May 2000 13:54:26 -0700 (PDT) Date: Thu, 4 May 2000 13:54:26 -0700 (PDT) From: Jin Guojun (FTG staff) Message-Id: <200005042054.NAA12166@george.lbl.gov> To: nbm@mithrandr.moria.org Subject: Re: bin/18373: pkg_delete shouldn't insist on root Cc: freebsd-bugs@FreeBSD.ORG, n_hibma@calcaphon.com Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message