From owner-freebsd-questions@FreeBSD.ORG Sat Aug 9 23:07:10 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 93CB05C3; Sat, 9 Aug 2014 23:07:10 +0000 (UTC) Received: from mail-ie0-x22d.google.com (mail-ie0-x22d.google.com [IPv6:2607:f8b0:4001:c03::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5ABEB24DB; Sat, 9 Aug 2014 23:07:10 +0000 (UTC) Received: by mail-ie0-f173.google.com with SMTP id tr6so8110128ieb.32 for ; Sat, 09 Aug 2014 16:07:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ZiJcidcLew1UxHG5xTztzi+jmQzZUB+tVk5JDgziTpA=; b=bDCcACnLTYEFohztKBmesowbL0c+6h+P/49OwJjo7lYRu9smQNLuaDFPK25Cg+clk0 5Bf1WVkcGVjJlOMsUnJSXNDtP7TW6RQiKnnPDoecxwKiI0UuMf416o+kUmk2yJZ+7PA5 yZgnazIBth3V9EBiRCJMkV191h4B1hGg8E1jVuw92LKiLM+kYY+D+UeF8EHnmYnPPX+E Hji5aoZnG+6k1Fc+sMM50eG7mHQhZ817o/kEQCQzBjujaoRbQoKVwAky1e4A3pollteR v1kDmvonT2TWhnOuYxaf8QmYmBJFS7bzGF3TbHixQFBfFGvN2lvusP8bcbo8vhlP/4b5 pHyA== MIME-Version: 1.0 X-Received: by 10.50.80.116 with SMTP id q20mr17507867igx.22.1407625629784; Sat, 09 Aug 2014 16:07:09 -0700 (PDT) Received: by 10.64.28.211 with HTTP; Sat, 9 Aug 2014 16:07:09 -0700 (PDT) In-Reply-To: <53E64F8E.7080401@FreeBSD.org> References: <53E64F8E.7080401@FreeBSD.org> Date: Sat, 9 Aug 2014 16:07:09 -0700 Message-ID: Subject: Re: pkg schema upgrade? From: Patrick To: Matthew Seaman Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: FreeBSD Questions Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Aug 2014 23:07:10 -0000 On Sat, Aug 9, 2014 at 9:42 AM, Matthew Seaman wrote: > On 09/08/2014 17:21, Patrick wrote: > > I'm getting the following warning/error with pkg on FreeBSD 10 (since it > > self-updated to 1.3.5.1: > > > > > > pkg: Repo FreeBSD needs schema upgrade from 2006 to 2010 but it is opened > > readonly > > > > pkg: need to re-create repo FreeBSD to upgrade schema version > > > > > > It sure would be nice if in addition to saying what needs to happen, it > > said how to make it happen. I don't see anything in the man page that > talks > > about this, and my Google-fu is failing me. > > # pkg clean -a > # pkg update -f > > should restore sanity. > > Cheers, > > Matthew > > -- > Dr Matthew J Seaman MA, D.Phil. > PGP: http://www.infracaninophile.co.uk/pgpkey Thanks, that did the trick. Can I ask how you knew to do that? Should pkg have done this automatically after it upgraded itself, or is there some sort of maintenance I should be doing that's not part of normal periodic(8) operations? Patrick