From owner-freebsd-questions@FreeBSD.ORG Mon Oct 18 19:16:07 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DCB2A16A4CE for ; Mon, 18 Oct 2004 19:16:07 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F92B43D54 for ; Mon, 18 Oct 2004 19:16:06 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i9IJFuQk057797 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 18 Oct 2004 20:15:56 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i9IJFuuX057796; Mon, 18 Oct 2004 20:15:56 +0100 (BST) (envelope-from matthew) Date: Mon, 18 Oct 2004 20:15:56 +0100 From: Matthew Seaman To: Duane Winner Message-ID: <20041018191556.GA57546@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Duane Winner , freebsd-questions@freebsd.org References: <41740AFB.9020707@att.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0F1p//8PRICkK4MW" Content-Disposition: inline In-Reply-To: <41740AFB.9020707@att.net> User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Mon, 18 Oct 2004 20:15:56 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040904, clamav-milter version 0.75l on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL autolearn=ham version=3.0.0 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: updating packages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2004 19:16:08 -0000 --0F1p//8PRICkK4MW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 18, 2004 at 02:27:07PM -0400, Duane Winner wrote: > Hello, >=20 > Is there a simple way to upgrade packages on machines with packages=20 > built on other machines? >=20 > Example: >=20 > I have eight machines that have jdk-1.4.2p6_4. > On one of the machines I have done a portupgrade jdk, and now have=20 > jdk-1.4.2p6_5. > I then did a "pkg_create -b jdk-1.4.2p6_5" and have a jdk-1.4.2p6_5.tgz. > I copied jdk-1.4.2p6_5.tgz to the other seven machines. >=20 > Now how can I upgrade jdk on the others? >=20 > I have noticed for at least a few months now that "pkg_update" is no=20 > longer with us, and found a message somewhere that it has been removed=20 > do to problems/non-maintainence, and that most people are using=20 > portupgrade these days. >=20 > Is there a way I can upgrade the packages on other machines without=20 > having to a pkg_delete first, then a pkg_add? What's so wrong with doing this?: # pkg_delete -f jdk-1.4.2p6_4 # pkg_add jdk-1.4.2p6_5 # pkgdb -Fvu Or you can use portupgrade. Make sure that PKG_PATH is set in your environment to include the directory where you've put jdk-1.4.2p6_5.tgz, and then just run: # portupgrade -PP java/jdk14 Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --0F1p//8PRICkK4MW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBdBZriD657aJF7eIRAhStAJ9uqJceFgn/dxZ4PM7F2nvv5FSmMQCeKL2o oIB6+fETR4w+8WqKU3vbBvs= =Squj -----END PGP SIGNATURE----- --0F1p//8PRICkK4MW--