Skip site navigation (1)Skip section navigation (2)
Date:      02 Apr 2002 12:24:36 +0200
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Jordan Hubbard <jkh@winston.freebsd.org>
Cc:        Mikhail Teterin <mi@aldan.algebra.com>, obrien@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.sbin/sysinstall install.c installUpgrade.c media.c package.c
Message-ID:  <xzpbsd2l7ob.fsf@flood.ping.uio.no>
In-Reply-To: <23280.1017708947@winston.freebsd.org>
References:  <23280.1017708947@winston.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Jordan Hubbard <jkh@winston.freebsd.org> writes:
> Because that's just not the way it works.  If you wanted to do that,
> you'd need to invert the logic of pkg_add to extract in place and then
> clean up the non-essentials, rather than extracting in a temporary
> directory, moving only the essentials into place, and then deleting
> the temp dir.

No, you can extract +FOO in a temp directory, then use +CONTENTS to
generate a file list that you pass to tar(1) using the -I option to
extract the actual contents of the package in-place.  If the package
was generated "smartly" (i.e. with +FOO listed before any other files
on the command line so they're at the beginning of the archive) and
you use --fast-read, it'll be significantly faster as well as use less
space.  If the package was not generated "smartly", it'll still be
somewhat faster than the current logic.

DES
-- 
Dag-Erling Smorgrav - des@ofug.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpbsd2l7ob.fsf>