From owner-freebsd-doc@FreeBSD.ORG Mon May 12 19:20:01 2014 Return-Path: Delivered-To: freebsd-doc@smarthost.ysv.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 94EDB81C for ; Mon, 12 May 2014 19:20:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7136F25BF for ; Mon, 12 May 2014 19:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s4CJK1lX071760 for ; Mon, 12 May 2014 19:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s4CJK1xP071759; Mon, 12 May 2014 19:20:01 GMT (envelope-from gnats) Resent-Date: Mon, 12 May 2014 19:20:01 GMT Resent-Message-Id: <201405121920.s4CJK1xP071759@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Stefan Lasiewski 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 690A27CA for ; Mon, 12 May 2014 19:14:45 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 55BCB2593 for ; Mon, 12 May 2014 19:14:45 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s4CJEjt5058373 for ; Mon, 12 May 2014 19:14:45 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s4CJEjF9058372; Mon, 12 May 2014 19:14:45 GMT (envelope-from nobody) Message-Id: <201405121914.s4CJEjF9058372@cgiserv.freebsd.org> Date: Mon, 12 May 2014 19:14:45 GMT From: Stefan Lasiewski To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: docs/189733: FreeeBSD Manual for `pkg` should include directions to add a repository configuration file X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2014 19:20:01 -0000 >Number: 189733 >Category: docs >Synopsis: FreeeBSD Manual for `pkg` should include directions to add a repository configuration file >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Mon May 12 19:20:01 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Stefan Lasiewski >Release: 8.4 >Organization: Lawrence Berkeley National Laboratory >Environment: FreeBSD 8.4-RELEASE amd64 >Description: The FreeBSD Handbook page for pkgng is incomplete and does not include instructions on how to configure a remote repository for use with pkgng. Without a remote repository, pkgng is not very usable and cannot be used to install binary packages. How to repeat the problem: I'm reading the directions in the FreeBSD Handbook here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/pkgng-intro.html But then I end up with this vague error: # pkg update Updating repository catalogue No valid repository found. # This error isn't mentioned in the manpages, and the FreeBSD forums contain ambiguous, outdated or conflicting solutions. The manpage for pkg.conf tells me about something called a 'Repository configuration file' but doesn't tell me where to put this file. Suggested fix: The FreeBSD manual should contain at least a basic set of instructions to get pkgng up an running with a repository, otherwise the instructions are incomplete. Here is one suggestion which I borrowed from the pkgng release announcement [1] 1. Remove any repository-specific configuration from /usr/local/etc/pkg.conf, such as PACKAGESITE, MIRROR_TYPE, PUBKEY. If this leaves your pkg.conf empty, just remove it. 2. mkdir -p /usr/local/etc/pkg/repos 3. Create the file /usr/local/etc/pkg/repos/FreeBSD.conf with: FreeBSD: { url: "http://pkg.FreeBSD.org/${ABI}/latest", mirror_type: "srv", enabled: "yes" } [1] http://lists.freebsd.org/pipermail/freebsd-pkg/2013-October/000107.html give these steps: >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: