From owner-freebsd-questions Thu Oct 2 22:47:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA19679 for questions-outgoing; Thu, 2 Oct 1997 22:47:16 -0700 (PDT) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA19670 for ; Thu, 2 Oct 1997 22:47:13 -0700 (PDT) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.5/8.8.5) with SMTP id WAA26406; Thu, 2 Oct 1997 22:47:11 -0700 (PDT) Date: Thu, 2 Oct 1997 22:47:11 -0700 (PDT) From: Doug White Reply-To: Doug White To: Joey Garcia cc: freebsd-questions@FreeBSD.ORG Subject: Re: pkg_add questions In-Reply-To: <3.0.1.32.19970930085314.0068d624@inreach.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, 30 Sep 1997, Joey Garcia wrote: > > hey freebsd gurus! > > I have a question about the pkg_add tool. I have added some packages from > cdrom that I had copied to dos partition because my cdrom isn't supported. > Anyways, the problem is that the packages are installed into /usr/local/bin > or /usr/local/whatever. I believe that something such as shells should > extract to /bin and other binaries should go to /usr/bin. Well, at least > that's the way I'd like to extract. Unfortunately, that kinda breaks our carefully crafted hier(7). Stuff in /bin needs to be statically linked, which the packages aren't. In addition, local updates and changes land in /usr/local/* so you can easily separate them from provided-with-system binaries and such. If you want to move them, that's what the mv(1) command is for :-) > How can I change it so that when the packages are installed by using > pkg_add the packages install into either /usr/bin or /bin, or whatevever > approprite directory it should be? It's not only the binary, but other > files get installed into /usr/local/share or whatever. I'd like it to go > to /usr/share. Bascially, I'd like to keep most things in one place. If > you know wha I mean. How can I go by doing that? Is there something I can > change in some file that makes it do that? Not easily. The package has been pre-wired with a packing list (PLIST) and the tar archive built with the proper paths. I suppose you could extract and re-tar the archive as you wanted, but that is a lot of work for what is a stylistic change. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major