Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Apr 2001 04:24:34 +0900
From:      "Akinori MUSHA" <knu@iDaemons.org>
To:        Tim Smith <tsmith@apptechnc.net>
Cc:        ports@freebsd.org
Subject:   Re: update all installed ports
Message-ID:  <86heztj4zx.wl@archon.local.idaemons.org>
In-Reply-To: <20010412131443.B634@threads.polyesthetic.msg>
References:  <20010412131443.B634@threads.polyesthetic.msg>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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