pkgsrc-Users archive

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

Re: How to get started with pkgsrc, or is it sh bug?



from Patrick Welche:

  On Fri, Jul 21, 2017 at 07:14:44AM +0000, Thomas Mueller wrote:
  > System is NetBSD-current amd64 (8.99.1), June 20, 2017,
          
  > sh: /usr/pkg/sbin/pkg_info: not found
  > sh: /usr/pkg/sbin/pkg_admin: not found
  
  For me:
  
  $ which pkg_info
  /usr/sbin/pkg_info
  $ cat /etc/pkgpath.conf
  #       $NetBSD: pkgpath.conf,v 1.1 2013/05/01 05:36:25 agc Exp $
  #
  # packaging tools configuration
  
  if [ -r /etc/defaults/pkgpath.conf ]; then
          . /etc/defaults/pkgpath.conf
  fi
  
  # Add local overrides below
  #
  $ cat /etc/defaults/pkgpath.conf
  #       $NetBSD: pkgpath.conf,v 1.1 2013/05/01 05:36:25 agc Exp $
  #
  # /etc/defaults/pkgpath.conf --
  #       default configuration of /etc/pkgpath.conf
  #
  # packaging tools configuration
  #
  # DO NOT EDIT THIS FILE DIRECTLY; IT MAY BE REPLACED DURING A SYSTEM UPGRADE.
  # EDIT /etc/pkgpath.conf INSTEAD.
  #
          
  pkg_admin=/usr/sbin/pkg_admin
  pkg_info=/usr/sbin/pkg_info

I seem to have the same thing as you have regarding /etc/pkgpath.conf and /etc/defaults/pkgpath.conf .

But after building some pkgtools including possibly meta-pkgs/pkg_developer, bigger versions of pkg_admin and pkg_info, and more, are installed in /usr/pkg/sbin.

Then I would want to use these tools in /usr/pkg/sbin, but to get started, one would need the tools in /usr/sbin .

One thought I have is to try on an old NetBSD 6.99.44 installation on a USB stick, with no packages, and just try to build pkgtools/cwrappers as a test.

I don't know if I even have /etc/mk.conf on this installation but can copy one over and make modifications as needed.  But I don't want to build anything serious on a USB-stick installation of NetBSD 6.99.44.

I had NAME= in /etc/fstab so don't have to worry about not finding the root as I would with NetBSD releng < 7.

I am in FreeBSD as I type this.

Tom


Home | Main Index | Thread Index | Old Index