Subject: Re: Location of packages
To: Michael G. Schabert <mikeride@prez.org>
From: Daniel R. Killoran,Ph.D. <drk@shore.net>
List: port-mac68k
Date: 08/06/1999 15:23:44
>>There seems to be some confusion about where the packages should be.
>>
>>The Packages.txt document says they live in /usr/pkg, which does not
>>(initially) exist. A "find", however, shows them in /usr/src/usr.sbin/
>>
>>Moreover, Packages.txt claims the packages set should live under
>>/usr/pkgsrc/, but a straightforward install puts it under /
>>No problem to move it, of course, but what's the story?
>>
>>Also, is LOCALBASE supposed to exist initially?
>
>You're confused as far as what "packages" you're referring to...
Damm right I am!
>yes, I know
>you know that you're talking about the pkgsrc kinda packages, but you're
>referring to separate entities as far as the /usr/pkg and /usr/pkgsrc.
>/usr/pkgsrc is where the package TREE goes...i.e. if you wanted to see what
>packages are available,
By "available", do you mean "are presently installed on the system & are
callable", or do you mean "are part of the ensemble of packages you can
download & install if you want them"?
>you look there. Or if you want to install a package
>by source, you go to /usr/pkgsrc/category/package_name and type "make
>install". /usr/pkg, however, is where the binaries and acompanying files go
>when you INSTALL a particular package (unless it's an X11 package, in which
>case it still goes into the "regular" /usr/X11R6/bin).
>
Ok, lets see if I can straighten out my terminology:
Let's call the file "pkgsrc.tgz" (and its expansions) that is found in the
NetBSD distribution at "NetBSD-1.4/source/pkgsrc.tgz" the "initial
packages".
Now I blithely put this on my disk using the Installer, and it went in the
top-level directory /. If I understand the docs correctly, I should have
put it under /usr. Am I right so far? (As I say, it was no problem to move
it there.)
Now say I want to install "addnerd" (what a name!). "find" locates it in
/usr/pkgsrc/sysutils/addnerd. I go there and type:
make
and after a while it tells me that addnerd-1.6 doesn't exist on this
system, then it tries to download it, which doesn't work because, among
other things, it isn't connected to the net.
Ok, now I have already downloaded the package "addnerd-1.6" from the ftp
site. The question now arises: Where should I put it for this installation
scheme to work?
And what is the function of the files in "NetBSD-1.4/pkgsrc"? (addnerd
doesn't seem to be among them).
>
>As for the /usr/src/usr.sbin, I dunno what you were doing a find on. If you
>have package-related stuff in there, you've got something messed up (or
>intentionally set up nonconformist). The only pkg-related thing in there is
>pkg_install/, & that's because the targets to it belong in /usr/sbin (the
>various pkg_stuff, like pkg_add).
Yup, that's what I was "find"ing!
>
>/usr/pkg should be created the first time you make/install a package.
>
Oh, ok, so I don't have to do anything about it then?
Many thanks,
Dan Killoran