Date: Thu, 4 May 2000 13:54:26 -0700 (PDT) From: Jin Guojun (FTG staff) <jin@george.lbl.gov> To: nbm@mithrandr.moria.org Cc: freebsd-bugs@FreeBSD.ORG, n_hibma@calcaphon.com Subject: Re: bin/18373: pkg_delete shouldn't insist on root Message-ID: <200005042054.NAA12166@george.lbl.gov>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005042054.NAA12166>