From owner-freebsd-questions Thu Jul 29 14:39:33 1999 Delivered-To: freebsd-questions@freebsd.org Received: from fever.semiotek.com (H253.C225.tor.velocet.net [209.167.225.253]) by hub.freebsd.org (Postfix) with ESMTP id 1E40D14DB2 for ; Thu, 29 Jul 1999 14:39:27 -0700 (PDT) (envelope-from jread@fever.semiotek.com) Received: (from jread@localhost) by fever.semiotek.com (8.8.8/8.8.7) id RAA06644; Thu, 29 Jul 1999 17:39:26 -0400 (EDT) (envelope-from jread) Message-ID: <19990729173925.A6624@semiotek.com> Date: Thu, 29 Jul 1999 17:39:25 -0400 From: Justin Wells To: David Coder Cc: freebsd-questions@FreeBSD.ORG Subject: Re: automatic package upgrading References: <19990729044154.A16711@semiotek.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.1i In-Reply-To: ; from David Coder on Thu, Jul 29, 1999 at 12:04:04PM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi David, "make world" applies only to /usr/src, and not to /usr/ports so far as I know. At least it doesn't work on my system. The equivalent in /usr/ports is a "make install", which will in fact install everything. I want to install only those packages that need upgrading, because the version in ports is newer than the installed version. Justin On Thu, Jul 29, 1999 at 12:04:04PM -0400, David Coder wrote: > > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message