From owner-freebsd-questions Thu Jul 29 9: 4:31 1999 Delivered-To: freebsd-questions@freebsd.org Received: from doc.dcoder.com (doc.dcoder.com [168.143.224.52]) by hub.freebsd.org (Postfix) with ESMTP id DE741150D6 for ; Thu, 29 Jul 1999 09:04:24 -0700 (PDT) (envelope-from dacoder@dcoder.com) Received: from doc.dcoder.com (doc.dcoder.com [168.143.224.52]) by doc.dcoder.com (8.9.3/8.9.3) with ESMTP id MAA01796; Thu, 29 Jul 1999 12:04:04 -0400 (EDT) (envelope-from dacoder@dcoder.com) Date: Thu, 29 Jul 1999 12:04:04 -0400 (EDT) From: David Coder Reply-To: David Coder To: Justin Wells Cc: freebsd-questions@FreeBSD.ORG Subject: Re: automatic package upgrading In-Reply-To: <19990729044154.A16711@semiotek.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 29 Jul 1999, Justin Wells wrote: > > I have a system with a large number of ports installed. Now I have > done a cvsup on /usr/ports, and got a fresher version of the collection > available there. > > How do I upgrade all the ports I've already installed to the newer > versions now available in /usr/ports? > > I can use the /usr/ports/sysutils/pkg_version tool to find out which > packages are potential candidates for upgrade, but I don't know how > to issue a command to actually upgrade them. I've looked all through > the documentation and found nothing--maybe I missed it, if so please > tell me where to look. > > I did try writing a little shell script to parse the output of > pkg_version and run "pkg_add -r $packageName" for all the packages > which need to be upgraded. However this is no good for two reasons: > > -- after the pkg_add the system thinks there are two versions > of rsync installed, and pkg_version can't deal with that. > It no longer reports useful information about that package. > > -- i can't automatically run pkg_delete because it complains, > for some packages, that other things depend on what I'm > deleting. > > -- this installs binaries by downloading them from the FTP > site, whereas I would prefer to compile it myself in /ports. > this is not such a big deal, though, and I would accept a > viable pkg_add solution. > > So how do I go about upgrading all my installed packages to the newer > versions? > > It seems to me that there should be a > > cd /usr/ports > make upgrade > > to do this, which would first run "make update", and then compile > and properly install just those ports which have already been > installed, and for which there are newer versions available. It > should properly deal with fixing up the version numbers in the > database of installed packages. > > Is this possible? Is there anything close to it? > > Justin > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To my knowledge, "make world" describes all & only those packages that are new. See http://www.nothing-going-on.demon.co.uk/FreeBSD/make-world/make-world.html dc _____________________ David Coder SysAdmin WebHosting Verio.com 703-749-7955 x1314 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message