tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg_add and remote packages



On Fri, 04 Apr 2008 13:04:52 -0400
"Johnny C. Lam" <jlam%pkgsrc.org@localhost> wrote:

> Your plan as I understand it is:
> 
> (1) Modify pkg_add(1) to use libfetch to fetch the remote binary package 
> and store it locally, then install the local binary package.  I'm not 
> sure precisely what advantage using libfetch is over using ftp(1) if 
> that's all that we're doing; could you explain?
> 
> (2) Modify pkg_add(1) to use libarchive to extract the local binary 
> package directly into ${LOCALBASE} and ${PKG_DBDIR} instead of the 
> staged installation via /var/tmp (as is currently done).
> 
> I think that sounds fine, as long as both parts are eventually done. 
> Very often, the trade-off for disk space and bandwidth is biased toward 
> "disk space is cheap", but I find that I usually fetch "remote" packages 
> across my local network and really don't want the extra copies of 
> packages everywhere.
> 
> Count this as a positive vote for your proposal.

I agree with all that Johnny said, but I'd like to see a flag to also store
locally the downloaded package and disabled by default (as it is now).

--
Juan Romero Pardines - xtraeme at gmail|netbsd dot org
        The NetBSD Project

Make your own NetBSD/x86 Live CD:
http://www.netbsd.org/~xtraeme/mklivecd/


Home | Main Index | Thread Index | Old Index