From owner-freebsd-questions@FreeBSD.ORG Wed Jun 23 07:50:55 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F075B1065670 for ; Wed, 23 Jun 2010 07:50:54 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7DA228FC14 for ; Wed, 23 Jun 2010 07:50:54 +0000 (UTC) Received: by bwz17 with SMTP id 17so158208bwz.13 for ; Wed, 23 Jun 2010 00:50:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:reply-to :in-reply-to:references:from:date:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=yiQGeHTLaVyeXj+BngGPFSzJDn11fx0Ey2b2uULMHW0=; b=E6RqQ6U1RhqcBM1CRLb7WemIk5hmJ63n5psDZzcUzQap7Ph9KbzC0m5SS7c4NeCfy/ 7xjJNIp4ReUZVGsdyC1iTx0TQFAQHtQ1GVDoVXKkFd/tlgvh23PIJB4KcajyuhMy1yrZ ithW0YcvBMuoO21SQbWebPvaHra8cvtVkCW18= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=Oi36Opg/5SXkWitHHZdDP6zmBjJIyXIfnlD/SwTa9u2b/QM/mr1TN8B3YAoxEnsPzC gf90r1b4mKWRiP7EKHZbGRRQvJ6hBHx3hcHoAEYkGFYb0tewzvaLByJf9+h5sOMX6rKG GTzuAX/PtE8k9Cl8und60gqaHLiN03BK0aYWo= Received: by 10.204.46.196 with SMTP id k4mr5181926bkf.72.1277279453246; Wed, 23 Jun 2010 00:50:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.69.201 with HTTP; Wed, 23 Jun 2010 00:50:23 -0700 (PDT) In-Reply-To: References: From: Chris Rees Date: Wed, 23 Jun 2010 08:50:23 +0100 Message-ID: To: n dhert Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: portupgrade -af in FreeBSDupdate to 8.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: utisoft@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jun 2010 07:50:55 -0000 On 23 June 2010 08:29, n dhert wrote: > in the process of upgrading 7.2 -> 8.0, the last step is to recompile all > ports > (section 24.2.3 of freebsd manual) > # portupgrade -f ruby > # rm /var/db/pkg/pkgdb.db > # portugprade -f ruby18-bdb > # rm /var/db/pkg/pkgdb.db /usr/ports/INDEX-*.db > > # portupgrade -af > > Did that for my 760 ports, but after 499 ports reinstalled (and 11 hours)= , > it stopped > Why does it stop? Can it be avoided? Or can I make portupgrade -af start > from where it got so far in the first run ? > > > I could do # portupgrade -af =A0again, but this is again "everything" (11 > hours)... > > I noticed on a different system (with only 64 ports), that it stopped at > lang/ruby18 there as well, > and after again # portugprade -af (which then continued past lang/ruby18)= , > it stopped a second time > in the same manner at > =A0---> =A0Reinstallation of databases/ruby-bdb ended at: Mon, 14 Jun 201= 0 > 13:01:25 > =A0+0200 (consumed 00:00:28) AFAICR, portupgrade is written in Ruby, so strange things can happen if you pull the carpet out from under it like that. Not really your fault... I suggest you look at the man page for pkg_glob, and look for the kind of glob to supply for portupgrade; for example: The following command line arguments are supported: pkgname_glob Specify one of these: a full pkgname, a pkgname wi= th- out version, or a shell glob pattern to match agai= nst pkgnames or their origins in which you can use wil= d- cards `*', `?', and `[..]', an extended regular expression preceded by a colon `:' to match agains= t pkgnames or their origins, or a date range specifi= ca- tion preceded by either `<' or `>'. So try [chris@amnesiac]~% sudo portupgrade -f '<2010-06-22' That should reinstall all the ports that were installed before yesterday. HTH Chris