From owner-freebsd-questions@FreeBSD.ORG Wed Sep 24 09:29:21 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 2A8CA237 for ; Wed, 24 Sep 2014 09:29:21 +0000 (UTC) Received: from mail-ie0-x229.google.com (mail-ie0-x229.google.com [IPv6:2607:f8b0:4001:c03::229]) (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 EC923B37 for ; Wed, 24 Sep 2014 09:29:20 +0000 (UTC) Received: by mail-ie0-f169.google.com with SMTP id rp18so9164423iec.14 for ; Wed, 24 Sep 2014 02:29:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=LIRj5+hWLFAHudYvIlsFlIx0YkgHf6rtA2gXlDEJO30=; b=aCc69TjvMv8qNDtI0E//VVtmAuGYZyCWGZq7sXzm5JsGIXr7x+wqvd/wOQfGT/z5CB 0DN07mSdFnKTJBou5X2pBfIKVvHHsZurEgIsOROwFsgr68EZyZ6rwjKgXCgmQcygn1h3 +JayCEbjv8kNjmL584czA++OgIvy+nMG2S1Q7LJ2qyifTO2M9rVkGusUJGi7a6Ptyjcd /luPW8FR/8ra7iOlWvm0dtq1yUyaKKJvVmeD33yedCXu2lUVTzesFMCpmqgSulIjIxAF Nl+KXWyUWIoiiBApwJy+H3l5VLMx2hZ70PyD+fGAFvfMD2K06JktYeu4GACbY89VBZ4m cXRg== MIME-Version: 1.0 X-Received: by 10.42.212.146 with SMTP id gs18mr1992435icb.96.1411550960208; Wed, 24 Sep 2014 02:29:20 -0700 (PDT) Sender: vrwmiller@gmail.com Received: by 10.64.165.73 with HTTP; Wed, 24 Sep 2014 02:29:20 -0700 (PDT) In-Reply-To: <5421ea92.4f66460a.7da2.6c24@mx.google.com> References: <5421ea92.4f66460a.7da2.6c24@mx.google.com> Date: Wed, 24 Sep 2014 05:29:20 -0400 X-Google-Sender-Auth: CYiEBWNd75s5EHluv4TQZ3cErQk Message-ID: Subject: Re: Bootstap pkg from dvd From: Rick Miller To: "Jason C. Wells" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2014 09:29:21 -0000 On Tue, Sep 23, 2014 at 5:47 PM, Jason C. Wells wrote: > How can I bootstrap pkg from the package file that exists on my dvd? I > don't have network access. > > I assumed I could simply execute: > > # pkg bootstrap -f /cdrom/.../pkg-1.2.7.txz > > But the bootstrapper tries to get the file off the network. It does, indeed, try to get it off the network. /etc/pkg/FreeBSD.conf is the culprit here. Edit the repo config to use a local repo via file:///blah/ though you may experience challenges getting it to work properly due to the ISO's read-only nature. Not sure what your use case is, but for me, this was one of several challenges I encountered that steered me to using a disk image (customized mfsBSD) to perform automated, non-interactive network installs. HTH -- Rick