Subject: pkg/33690: Save pkg_add'ed binary packages locally
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <netbsd@rakhesh.com>
List: pkgsrc-bugs
Date: 06/10/2006 16:45:00
>Number:         33690
>Category:       pkg
>Synopsis:       Save pkg_add'ed binary packages locally
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 10 16:45:00 +0000 2006
>Originator:     Rakhesh Sasidharan
>Release:        3.0
>Organization:
>Environment:
Sorry, not on my NetBSD machine to provide uname output. Its NetBSD/i386 3.0. 
>Description:
Could we add an option to pkg_add to save the downloaded binary package locally? This would be extremely useful while reinstalling the system or installing NetBSD on other machines by the user.  

OpenBSD's pkg_add has this option (see PKG_CACHE variable). And including PKG_CACHE in PKG_PATH should ensure this downloaded location is searched while installing through pkg_add. 
>How-To-Repeat:

>Fix: