Using pkg_add fetch only

John Baldwin jhb at freebsd.org
Fri Jan 6 13:36:33 PST 2006


On Friday 06 January 2006 04:10 pm, Ceri Davies wrote:
> On 6 Jan 2006, at 20:59, Dirk Engling wrote:
> > On Fri, 6 Jan 2006, Matt Emmerton wrote:
> >> What about pkg_fetch -R?
> >
> > This command is not in the base system. Since there is some logic
> > in pkg_add for resolving dependencies and fetching packages I
> > hoped, there might be some easy way not involving additional
> > dependencies.
>
> The package cluster uses chroot() for this.

I use a shell script that downloads a package with fetch, extracts +CONTENTS 
to a temporary directory and parses it for dependencies, then downloads any 
missing dependencies and adds them.  It's not too hard to do, but it would be 
handy to have this feature built into pkg_add itself perhaps.

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the freebsd-hackers mailing list