From owner-freebsd-questions@FreeBSD.ORG Mon Jun 20 09:10:49 2011 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 04AC21065756 for ; Mon, 20 Jun 2011 09:10:49 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id DB52F8FC08 for ; Mon, 20 Jun 2011 09:10:48 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id p5K9Ampw064063 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 20 Jun 2011 02:10:48 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id p5K9AmvM064062 for freebsd-questions@freebsd.org; Mon, 20 Jun 2011 02:10:48 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA16139; Mon, 20 Jun 11 02:00:58 PDT Date: Mon, 20 Jun 2011 02:00:32 -0700 From: perryh@pluto.rain.com To: freebsd-questions@freebsd.org Message-Id: <4dff0c30.jiHHe0yTqCkGZtyD%perryh@pluto.rain.com> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: mixing local and remote package repositories X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2011 09:10:49 -0000 No answer on ports@, maybe someone here knows. Suppose I start to install some packages using "pkg_add -K -r" and something goes wrong partway through. When trying again, AFAICT there is no way to tell pkg_add to first look for any package that it needs (e.g. dependencies) in the local repository created by the previous run's -K switch, but fall back to the remote repository for any not found locally. It's not immediately obvious how to accomplish such a retry with portmaster either, since -PP --local-packagedir= would want the local repository to be formatted in the same way as the remote ones -- and it doesn't look as if "pkg_add -K -r" does that. Is there a simple way to create the /Latest and category symlinks that portmaster needs, given only a collection of packages in the /All directory?