From owner-freebsd-questions@FreeBSD.ORG Mon Oct 18 18:33:42 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 05D7B16A4CE for ; Mon, 18 Oct 2004 18:33:42 +0000 (GMT) Received: from smtp.owt.com (smtp.owt.com [204.118.6.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E00F43D1F for ; Mon, 18 Oct 2004 18:33:41 +0000 (GMT) (envelope-from kstewart@owt.com) Received: from [207.41.94.233] (owt-207-41-94-233.owt.com [207.41.94.233]) by smtp.owt.com (8.12.8/8.12.8) with ESMTP id i9IIXaLc001294; Mon, 18 Oct 2004 11:33:38 -0700 From: Kent Stewart To: freebsd-questions@freebsd.org Date: Mon, 18 Oct 2004 11:33:33 -0700 User-Agent: KMail/1.7 References: <41740AFB.9020707@att.net> In-Reply-To: <41740AFB.9020707@att.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200410181133.33981.kstewart@owt.com> cc: Duane Winner 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 18:33:42 -0000 On Monday 18 October 2004 11:27 am, Duane Winner wrote: > Hello, > > Is there a simple way to upgrade packages on machines with packages > built on other machines? > > Example: > > 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 > 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. > > Now how can I upgrade jdk on the others? > > I have noticed for at least a few months now that "pkg_update" is no > longer with us, and found a message somewhere that it has been removed > do to problems/non-maintainence, and that most people are using > portupgrade these days. > > Is there a way I can upgrade the packages on other machines without > having to a pkg_delete first, then a pkg_add? You /usr/ports needs to be a copy of your install system along with a current set of INDEX*. Then, all you do is portupgrade -P jdk. The have to be the same OS version. For example, you don't upgrade a port on the 5.x machine from a 4.x build or vice versa. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html