From owner-freebsd-ports@freebsd.org Thu Apr 20 19:10:38 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 BEC5CD48828 for ; Thu, 20 Apr 2017 19:10:38 +0000 (UTC) (envelope-from papowell@astart.com) Received: from astart2.astart.com (wsip-72-214-30-30.sd.sd.cox.net [72.214.30.30]) (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 A1341979 for ; Thu, 20 Apr 2017 19:10:37 +0000 (UTC) (envelope-from papowell@astart.com) Received: from laptop_103.private (localhost [127.0.0.1]) by astart2.astart.com (8.14.9/8.14.9) with ESMTP id v3KIwfDw091356 for ; Thu, 20 Apr 2017 11:58:41 -0700 (PDT) (envelope-from papowell@astart.com) Reply-To: papowell@astart.com To: FreeBSD Ports ML From: Patrick Powell Subject: How to use cached packages Organization: Astart Technologies Message-ID: Date: Thu, 20 Apr 2017 11:58:41 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 19:10:38 -0000 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 in 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. -- Patrick Powell Astart Technologies papowell@astart.com 1530 Jamacha Rd, Suite X Network and System San Diego, CA 92019 Consulting Cell 858-518-7581 FAX 858-751-2435 Web: papowell at astart dot com