NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg questions



On 16 Jul 2015 at 23:02, William A. Mahaffey III wrote:

> On 07/16/15 11:55, Greg Troxel wrote:
> > "William A. Mahaffey III" <wam%hiwaay.net@localhost> writes:
> >
> >> 6.1.5 server, 2 questions pop up: Where is my pkg_install.conf file ?
> >> I.e., man page entry, but no file
> > Not a bug, because empty files aren't needed, more or less.   It's
> > /usr/pkg/etc/pkg_install.conf.   To figure that out:
> >
> > $ ktrace pkg_add
> > $ kdump | egrep NAMI
> >
> > ktrace is highly useful to figure out what's going on, and casual use is
> > not hard.
> >
> >> Also, is there a pkg_* command to provide a list of either all
> >> available pkgs for installation, or all available uninstalled pkgs ?
> >> Also, how about upgrades for any installed pkgs ?
> > See pkgin and nih, both in pkgsrc.  They do similar things, and pkgin
> > seems to have more users.   Once you download the binary pkg from
> > netbsd.org and pkg_add it, you can read its docs and run it.
> 
> I don't find pkgin or nih on my system:
> 
> 4256EE1 # which pkgin
> 4256EE1 # which pkg_in
> 4256EE1 # which nih
> 4256EE1 # uname -a
> NetBSD 4256EE1.CFD.COM 6.1.5 NetBSD 6.1.5 (GENERIC) amd64
> 4256EE1 #
> 
> Pilot error ?

Hi

you can setup pkgsrc either by downloading the tarball
or getting it by cvs. 

cd /usr
cvs checkout -rpkgsrc-2015Q2 -P pkgsrc

Above creates and populates the directory /usr/pkgsrc

/usr/pkgsrc/pkgtools/nih
/usr/pkgsrc/pkgtools/pkgin


An alternative is to just download the packages you want.

ftp://ftp.NetBSD.org
/pub/pkgsrc/packages/NetBSD/$(uname -m)/6.1_2015Q2/All


David
 


Home | Main Index | Thread Index | Old Index