From owner-freebsd-ports@freebsd.org Thu Apr 20 20:17:36 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8F277D47D92 for ; Thu, 20 Apr 2017 20:17:36 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qt0-x22d.google.com (mail-qt0-x22d.google.com [IPv6:2607:f8b0:400d:c0d::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B0DA7B for ; Thu, 20 Apr 2017 20:17:36 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by mail-qt0-x22d.google.com with SMTP id y33so55082769qta.2 for ; Thu, 20 Apr 2017 13:17:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=i57tRaWRLQK0x66Eg54/FEDFR0I0kUIvo7H6Hg8t1CI=; b=K10CCBt/dFRfErFRz6pkMgMCT8L2wFUXKpfQBjIQTB8Ht1L0hFd0CRMFT4hyfkW52U yrwchpq7wsIdkL9MDNmPi2q5H87oANLP2NM+ollflF/WmvReVdQer1kDN2Ql3neFG16V i0be1VtYQCBCjr0nl3drnK0ENsKJJvjci7pKgkifit7TaPsNO5w13kxGC7jmJRVohcMv +XLKeqpypMK6+rVAVPWRQglSt7jKOqWCeme3/q0n7XBa8Twy88bsU1KBFNYl/rkmL7Yz jgbTfYJpjvVe8sa8n5GN487JUV/Zmkeqqk974g5l27mB4FP2bUCLD6nMmXwxYzYPH3GK H3wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=i57tRaWRLQK0x66Eg54/FEDFR0I0kUIvo7H6Hg8t1CI=; b=ULZqta3ba/foMcy4EM1BGt0yKQpk2GNQo3GYPgKtG9nMLBDh6EvaYVHpXsWORwToWo 2Q5u6/TbZwpJZqytTJ18jHRq84H8UKoDSOmWB7/4zy09+0w6ZZ9UelEh6IYH3l3WAhkx PyMgRS7S82r+xUCyf98dG6EvCk1n6Wk6jZSzGgR6HvurDKMngvpppgKd1aAwqOmrVbE7 VDXjkWjNdfMovl1vZA46VnfsBVapk13QIacOtg24OBambtW4uktiX8WOisGxIWS8SDQQ +JEHTNIXKdunZScIdy/zvHySRQy+QwmWQTfMBVBMW6Ztw1isnzvfamUUs97E9LNOUBG+ /VKw== X-Gm-Message-State: AN3rC/7KZ0X5LzR6sOy9ZWrNx/H4EezFgVt1kBw8OnnYSz906TwDCEPO Wf/6Sf2KNvB2U91BwK6J8OvfylwlQ7G9 X-Received: by 10.200.53.65 with SMTP id z1mr10123212qtb.77.1492719455477; Thu, 20 Apr 2017 13:17:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.28.229 with HTTP; Thu, 20 Apr 2017 13:17:35 -0700 (PDT) In-Reply-To: References: From: Freddie Cash Date: Thu, 20 Apr 2017 13:17:35 -0700 Message-ID: Subject: Re: How to use cached packages To: Patrick Powell Cc: FreeBSD Ports ML Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Apr 2017 20:17:36 -0000 On Thu, Apr 20, 2017 at 11:58 AM, Patrick Powell wrote: > I ran into a problem where I needed to reinstall a package. However, I > did not have network access to the pkg repository. I did have a system > which had all of the pkgs which I needed in the pkg cache. I can easily > copy these to the system, as well as the pkg database, etc. > > So: is there a SIMPLE way to have pkg check to see if a pkg is already i= n > the pkg cache and use that before trying to go to the repository? > > Is there a SIMPLE way to prevent pkg from trying to check the pkg > repository for an update? > > I strongly suspect that something like: > > pkg --do_not_check_for_latest_version --use_cached_pkg install firefox > > Any help on this before I tear out the three strands of hair I have left > would be appreciated. =E2=80=8BIf you have the .txz/.tbz package file, then it's a simple: # pkg install /path/to/firefox-versions-blahblah.txz =E2=80=8B =E2=80=8BI believe you can specify multiple packages on the command-line an= d it will install them all. If there are required dependencies, you'll have to specify them on the command-line as well. If you specify all the packages on the CLI, then it won't check the remote repo. There's also a flag you can add to prevent it from doing a behind-the-scenes "pkg upgrade" before the=E2=80=8B install. Ah yes, it's = -U or --no-repo-update. --=20 Freddie Cash fjwcash@gmail.com