From owner-freebsd-questions@FreeBSD.ORG Tue Jun 2 13:15:38 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 D3FDF10656BB for ; Tue, 2 Jun 2009 13:15:38 +0000 (UTC) (envelope-from martinbadie@yahoo.com) Received: from n2b.bullet.mail.ac4.yahoo.com (n2b.bullet.mail.ac4.yahoo.com [76.13.13.72]) by mx1.freebsd.org (Postfix) with SMTP id 8281C8FC31 for ; Tue, 2 Jun 2009 13:15:38 +0000 (UTC) (envelope-from martinbadie@yahoo.com) Received: from [76.13.13.25] by n2.bullet.mail.ac4.yahoo.com with NNFMP; 02 Jun 2009 13:15:38 -0000 Received: from [76.13.10.166] by t4.bullet.mail.ac4.yahoo.com with NNFMP; 02 Jun 2009 13:15:37 -0000 Received: from [127.0.0.1] by omp107.mail.ac4.yahoo.com with NNFMP; 02 Jun 2009 13:15:37 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 957718.26103.bm@omp107.mail.ac4.yahoo.com Received: (qmail 77270 invoked by uid 60001); 2 Jun 2009 13:15:37 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1243948537; bh=UjDkQivSzZ7xUkEYt5GDoRMv2KT3WOCB3zvlRwysZxA=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=fBbSAiIBz9ygSTBp88DIXcU2vq0iPAugRA8Dc7HV56l9C9fn/xM5O+LIk2OtERT34LzNPY4IVW4oLYyFu9gofcU5Tk7C0GUswdcKukjbbOySQ8fK/C4vkFh03YZgPeQn9PuLIuiBzxVrlwJy++dxDTBipupqroHBKiiY6WPNPpM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=MCG3eUv89ZgFqdkCb0eBl8qNbPJ6ZmEYGGl1KirSgNB1AN+7V1knDP/7tp/aQlfpiCYfRTzNS7HFMBPV6kfr03B2arsTnEZqZJ1jZuWgZTnj+Io6IS9PBHiPczULhkJZcPit28Zl/K3YTgr9/wHV2vABZrsMdyNIdT/zEF9RsCw=; Message-ID: <754382.65193.qm@web59907.mail.ac4.yahoo.com> X-YMail-OSG: c2pBniwVM1m80jZhLKADjL4vt2yJ5g5t1vZdP7GrhGYFstLuDHCPfrehDabGKi7unNj4VoCL.oKszN8rOg2TzDvNxieBuDeXa_5LkrhOFuvux0oXL4LgZOXCLTUjGcypli.Ce3fZ2zFYFGW4QDJkRZCleU9HQb_mGW9IAVrb6kYDHlqls84dfv4u2JzWODb1MEGeYsA8zEJyPT2cZkSdu6Qa4wm833NEznYP7KyTrxEIzZmZ2pgZqIKpHjTOOfubexHdpfuX3iYmd.Fb_QY2Tw-- Received: from [212.156.51.22] by web59907.mail.ac4.yahoo.com via HTTP; Tue, 02 Jun 2009 06:15:37 PDT X-Mailer: YahooMailRC/1277.43 YahooMailWebService/0.7.289.10 References: <726041.18476.qm@web59916.mail.ac4.yahoo.com> <20090601190139.37ae524a.freebsd@edvax.de> Date: Tue, 2 Jun 2009 06:15:37 -0700 (PDT) From: Martin Badie To: Polytropon In-Reply-To: <20090601190139.37ae524a.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2009 13:15:43 -0000 Hi, I have package-1.0 installed and want to update to package-2.0 using package-2.0.tbz package file. This binary package is at /var/tmp/packages/All. I have no /usr/ports directory export PKG_PATH=/var/tmp/packages/All export PKG_FETCH=/usr/bin/false portupgrade -PP postgresql-server ** Port directory not found: databases/postgresql83-server ** Listing the failed packages (-:ignored / *:skipped / !:failed) - databases/postgresql83-server (port directory error) Do I need to have /usr/ports/ installed on that system? I just want to upgrade to package-2.0.tbz without having anything related to Ports ( /usr/ports) on my systems? Just like a rpm -Uhv package-2.0.rpm on Linux. Can someone enlighten me on how to do that with portupgrade? Or maybe with another tool on FreeBSD? Regards. ________________________________ From: Polytropon To: Martin Badie Cc: freebsd-questions@freebsd.org Sent: Monday, June 1, 2009 8:01:39 PM Subject: Re: a binary package update 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, ...