Date: Tue, 2 Jun 2009 20:38:33 +0200 From: Polytropon <freebsd@edvax.de> To: Martin Badie <martinbadie@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: a binary package update 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2 Jun 2009 06:15:37 -0700 (PDT), Martin Badie <martinbadie@yahoo.com> 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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090602203833.4cee5c80.freebsd>