Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Oct 2004 20:15:56 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Duane Winner <dwinner-lists@att.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: updating packages
Message-ID:  <20041018191556.GA57546@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <41740AFB.9020707@att.net>
References:  <41740AFB.9020707@att.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--0F1p//8PRICkK4MW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Oct 18, 2004 at 02:27:07PM -0400, Duane Winner wrote:
> Hello,
>=20
> Is there a simple way to upgrade packages on machines with packages=20
> built on other machines?
>=20
> Example:
>=20
> I have eight machines that have jdk-1.4.2p6_4.
> On one of the machines I have done a portupgrade jdk, and now have=20
> jdk-1.4.2p6_5.
> I then did a "pkg_create -b jdk-1.4.2p6_5" and have a jdk-1.4.2p6_5.tgz.
> I copied jdk-1.4.2p6_5.tgz to the other seven machines.
>=20
> Now how can I upgrade jdk on the others?
>=20
> I have noticed for at least a few months now that "pkg_update" is no=20
> longer with us, and found a message somewhere that it has been removed=20
> do to problems/non-maintainence, and that most people are using=20
> portupgrade these days.
>=20
> Is there a way I can upgrade the packages on other machines without=20
> having to a pkg_delete first, then a pkg_add?

What's so wrong with doing this?:

    # pkg_delete -f jdk-1.4.2p6_4
    # pkg_add jdk-1.4.2p6_5
    # pkgdb -Fvu

Or you can use portupgrade.  Make sure that PKG_PATH is set in your
environment to include the directory where you've put
jdk-1.4.2p6_5.tgz, and then just run:

    # portupgrade -PP java/jdk14

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--0F1p//8PRICkK4MW
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBdBZriD657aJF7eIRAhStAJ9uqJceFgn/dxZ4PM7F2nvv5FSmMQCeKL2o
oIB6+fETR4w+8WqKU3vbBvs=
=Squj
-----END PGP SIGNATURE-----

--0F1p//8PRICkK4MW--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041018191556.GA57546>