Date: Fri, 6 Jan 2006 16:35:50 -0500 From: John Baldwin <jhb@freebsd.org> To: freebsd-hackers@freebsd.org Cc: hackers@freebsd.org, Dirk Engling <erdgeist@erdgeist.org>, Ceri Davies <ceri@submonkey.net> Subject: Re: Using pkg_add fetch only Message-ID: <200601061635.51715.jhb@freebsd.org> In-Reply-To: <99814990-316A-4099-A96D-083F90E5689E@submonkey.net> References: <20060106205744.O13365@erdgeist.org> <20060106215502.H13365@erdgeist.org> <99814990-316A-4099-A96D-083F90E5689E@submonkey.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601061635.51715.jhb>