Subject: pkg/21980: [RFE] pkg_add (or pkg_locate) directly from /
To: None <>
From: None <>
List: netbsd-bugs
Date: 06/24/2003 16:55:34
>Number:         21980
>Category:       pkg
>Synopsis:       [RFE] pkg_add (or pkg_locate) directly from <category>/<package>
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 24 16:56:00 UTC 2003
>Originator:     william allen simpson
>Release:        1.6U
The documentation at
is much easier for binary packages than for working on -current. 

That is, pkg_add <package> supposedly downloads and installs. 
I tried it in -current, and it didn't work.  I also tried the 
form ftp://..., and that didn't work either.

Instead, I had to haul down the ENTIRE tree via CVS (documentation at
worked reasonably well), only then could 'cd /usr/pkgsrc/editors/joe' 
(in my case, misc/screen).


I want 'pkg_add <package>' to AUTOMATICALLY download the correct 
/usr/pkgsrc/<category>/<package>, and compile from there. 
  (1) locate best mirror by ping, from list of mirrors installed with 
      the system, and update the list for the next time.
  (2) check to see whether there are pre-compiled binaries.
  (3) CVS only the needed part of the package tree.
  (4) etc. etc. etc.

In the alternative, a new utility pkg_locate could handle it, but it 
does seem to be a basic part of the task, now done manually.