From owner-freebsd-questions@FreeBSD.ORG Tue Jun 2 18:38:41 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 91E8D106564A for ; Tue, 2 Jun 2009 18:38:41 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 29DD18FC15 for ; Tue, 2 Jun 2009 18:38:41 +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 mx02.qsc.de (Postfix) with ESMTP id C912916C02D9; Tue, 2 Jun 2009 20:38:39 +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 n52IcYf5001568; Tue, 2 Jun 2009 20:38:34 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 2 Jun 2009 20:38:33 +0200 From: Polytropon To: Martin Badie Message-Id: <20090602203833.4cee5c80.freebsd@edvax.de> In-Reply-To: <754382.65193.qm@web59907.mail.ac4.yahoo.com> References: <726041.18476.qm@web59916.mail.ac4.yahoo.com> <20090601190139.37ae524a.freebsd@edvax.de> <754382.65193.qm@web59907.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: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Tue, 02 Jun 2009 18:38:41 -0000 On Tue, 2 Jun 2009 06:15:37 -0700 (PDT), Martin Badie wrote: > 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? If you want to use portupgrade - yes, I think so. > 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? As far as I understand, not possible. Portupgrade is not the tool to do this. > Or maybe with another tool on FreeBSD? Yes, as I said, pkg_add is used for this. You can even use it to overwrite the installed package (pkg_add -f). In order to achieve what I thought you intend to do, use the script I attached to you. It will download all the packages required. Then, transfer them to the other machine, and use pkg_add with the file name of the package you want to install. It will usually overwrite everything with the "wrong" version number that still does exist. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...