From owner-freebsd-ports Thu Apr 12 12:24:42 2001 Delivered-To: freebsd-ports@freebsd.org Received: from mail.musha.org (daemon.musha.org [61.122.44.178]) by hub.freebsd.org (Postfix) with ESMTP id 7407937B440 for ; Thu, 12 Apr 2001 12:24:38 -0700 (PDT) (envelope-from knu@iDaemons.org) Received: from archon.local.idaemons.org (archon.local.idaemons.org [192.168.1.32]) by mail.musha.org (Postfix) with ESMTP id BE44B4DF45; Fri, 13 Apr 2001 04:24:34 +0900 (JST) Date: Fri, 13 Apr 2001 04:24:34 +0900 Message-ID: <86heztj4zx.wl@archon.local.idaemons.org> From: "Akinori MUSHA" To: Tim Smith Cc: ports@freebsd.org Subject: Re: update all installed ports In-Reply-To: <20010412131443.B634@threads.polyesthetic.msg> References: <20010412131443.B634@threads.polyesthetic.msg> User-Agent: Wanderlust/2.5.4 (Smooth) SEMI/1.14.2 (=?ISO-8859-1?Q?Daish=F2?= =?ISO-8859-1?Q?ji?=) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 MULE XEmacs/21.1 (patch 14) (Cuyahoga Valley) (i386--freebsd) Organization: Associated I. Daemons X-PGP-Public-Key: finger knu@FreeBSD.org X-PGP-Fingerprint: 081D 099C 1705 861D 4B70 B04A 920B EFC7 9FD9 E1EE MIME-Version: 1.0 (generated by SEMI 1.14.2 - =?ISO-8859-1?Q?=22Daish=F2ji=22?=) Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At Thu, 12 Apr 2001 13:14:43 -0400, Tim Smith wrote: > > Hi. I've read the handbook and the porter's handbook, and have > looked at /usr/ports/Mk/bsd.port.*, but still haven't found an > answer to my question. > > Is it possible, with a simple command or script, to update all > of the ports I have installed at once? I mean, I want to make > sure that all of the ports that I use are the latest version, > but I don't want to install ports that I don't use. > > If anyone has a good way of doing this automatically, please let > me know. (I'm using -STABLE, if that matters.) I wouldn't recomend doing all at once, but "portupgrade -u '*'" will do the job as long as all the installed ports have their origin info recorded. Relatively newly installed ones should have it. Try running "pkg_info -o /var/db/pkg/*" to see which ports lack that info. Currently there's no handy way to complement it, so upgrade it using portupgrade's -o option. (See portupgrade's README for details) e.g.: portupgrade -fu -o shells/zsh-devel zsh portupgrade -ucCp '*' portupgrade -cC gnome\* I've been planning to write a tool to complete origins and some people kindly submitted me suggestions, but unfortunately I don't have enough time to write a decent one... Portupgrade is in the ports tree, address sysutils/portupgrade. -- / /__ __ Akinori.org / MUSHA.org / ) ) ) ) / FreeBSD.org / Ruby-lang.org Akinori MUSHA aka / (_ / ( (__( @ iDaemons.org / and.or.jp "We're only at home when we're on the run, on the wing, on the fly" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message