Date: Mon, 1 Jun 2009 19:01:39 +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: <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>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <martinbadie@yahoo.com> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090601190139.37ae524a.freebsd>