From owner-freebsd-questions@FreeBSD.ORG Mon Jun 1 17:01:47 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5428B1065686 for ; Mon, 1 Jun 2009 17:01:47 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 112398FC0C for ; Mon, 1 Jun 2009 17:01:46 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-195-65-8.dynamic.qsc.de [92.195.65.8]) by mx01.qsc.de (Postfix) with ESMTP id 61CE23D658; Mon, 1 Jun 2009 19:01:45 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n51H1dWS001808; Mon, 1 Jun 2009 19:01:39 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 1 Jun 2009 19:01:39 +0200 From: Polytropon To: Martin Badie Message-Id: <20090601190139.37ae524a.freebsd@edvax.de> In-Reply-To: <726041.18476.qm@web59916.mail.ac4.yahoo.com> References: <726041.18476.qm@web59916.mail.ac4.yahoo.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Mon__1_Jun_2009_19_01_39_+0200_wimKuwW8xV+cHYyq" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: a binary package update X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2009 17:01:47 -0000 This is a multi-part message in MIME format. --Multipart=_Mon__1_Jun_2009_19_01_39_+0200_wimKuwW8xV+cHYyq Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 1 Jun 2009 02:03:10 -0700 (PDT), Martin Badie wrote: > Hi, > > How can I update a pre-compiled package [...] You cannot update a pre-compiled package, you can only overwrite or replace the package (tbz file). However, you can update an installed port or package; in most cases, it doesn't even matter if you installed from a port or from a package. > [...] for example I have a package-1.0.tbz and I have downloaded > package-2.0.tbz. What I want is to update a installed 1.0 package > to 2.0 without internet connection. Is is relatively easy, but you need to make sure first that you have all the dependencies for package-2.0, for example libdep-1.3, depend-3.2.1 and libfoo-0.22.7. You first need to fetch them. Now a question: The system that has internet access: Do you want to install the new packages there, too? > I have portupgrade-2.4.6_2,2 > installed on my system. If you answered the question with "yes", then portupgrade can do it for you. Simply update package-1.0 to package-2.0 and let portupgrade create packages (-p). You can then transfer those packages to the other system which can't fetch them by itself. But if you answered "no", the task would be as follows: Get the newest version of a package along with all those packages this new version depends on. In order to do so, you may use the simple (and ugly) shell script I attached. It uses pkg_add to fetch those packages, but it does NOT install anything. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... --Multipart=_Mon__1_Jun_2009_19_01_39_+0200_wimKuwW8xV+cHYyq--