Subject: Re: Restoring packages from backup
To: Steven M. Bellovin <smb@research.att.com>
From: David Brownlee <abs@netbsd.org>
List: netbsd-users
Date: 09/25/2002 13:39:23
On Wed, 25 Sep 2002, Steven M. Bellovin wrote:

> In message <Pine.NEB.4.44.0209251024220.8929-100000@chylonia.3miasto.net>, Wojc
> iech Puchar writes:
> >>
> >> Is there a way to get a similar backup/restore scheme happening in NetBSD?
> >>
> >try
> >
> >pkg_info|cut -f 1 -d  " "
> >
> >
> >
> That gives you the list, but not in the proper order of dependencies
> for rebuilds.

	How about:
	pkg_info -B \* | awk '/PKGPATH/{print $2}' > .../pkgsrc/pkgchk.conf

	Then copy across to new machine, install pkgtools/pkgchk, and run
	'pkg_chk -a'.

-- 
		David/absolute          -- www.netbsd.org: No hype required --