From owner-freebsd-questions@freebsd.org Mon Aug 1 02:24:56 2016 Return-Path: Delivered-To: freebsd-questions@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 369FEBAA18C for ; Mon, 1 Aug 2016 02:24:56 +0000 (UTC) (envelope-from ultima1252@gmail.com) Received: from mail-yw0-x233.google.com (mail-yw0-x233.google.com [IPv6:2607:f8b0:4002:c05::233]) (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 EF76D17B6 for ; Mon, 1 Aug 2016 02:24:55 +0000 (UTC) (envelope-from ultima1252@gmail.com) Received: by mail-yw0-x233.google.com with SMTP id u134so161031518ywg.3 for ; Sun, 31 Jul 2016 19:24:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=SHEeFSh0UlKHXCVTsDtsM2GphfOlmLzRb967xVIKRoo=; b=HDqoRgtAQ+q3ZVtCC40331dY8q0fnansD+5ZYVkL4xktAGg3t7+i4TwI3oc0vdIHKo fUD4YjOEQX3Tijsc5e7oMVKvmTYFVthhlWlc9l35AfRkxWg5K3PqIWiSo8JTC6T8U9kI aOkNGEASCJIWHcdXqdme4N0t4nZsuOLyk71LmCiZtGlU4jZI2bMck0LIOfKgPlfdmSW8 dKyKHz6mL719MjKeIwuoPPCN7/kvEKsRVZ4heDEf+xEYpg8by/2kft2IOIMjMiYkJCRY utcMZPA3HgZ2duc8RUZct9nk05RezfMOZ66YW7QExZBSxubiGJevSjb5cbaS8kHzdCDk Bc3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=SHEeFSh0UlKHXCVTsDtsM2GphfOlmLzRb967xVIKRoo=; b=iPTolGhp4I1A42kYPfnnCopmdBbIlpjOXh+Q/9R5RGAI9mtTq5gLnn4zNLChCh9dCo HI6Za/loSsqwwX5zR2Hrna/0znl/MYU8QJUqkM44O7aSqH4jGub6BzRUfcViaJCdIkdT nga9Wbg8tbDVhOjNWeAAhNdXsAu+x44MeOJG5Mw+8MAf+y8VT+DXeQ2zKbaYN0jaFwQ5 RjM5JctmguwV5jjITPYcZn+OdCDBk8bRm8EpUPbTuWd6++IzDe7OXBFSCe3x/b3NKZL9 AgbeRgjuHMR2BeAsZ/sB/uNfjApY1FUTw4yDTA81sQ70VRyXM9/JE+WoEqum+GzMXadz Efjg== X-Gm-Message-State: AEkooutb7ee0T0CZ+yjQ4Vr7CjHT1YZqBcBgWSqErNZaUrPlPcHZ8qODz1gE64pxzFcqL/nrLHmWq8gQGHyZbw== X-Received: by 10.129.76.79 with SMTP id z76mr43170854ywa.33.1470018295233; Sun, 31 Jul 2016 19:24:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.51.150 with HTTP; Sun, 31 Jul 2016 19:24:54 -0700 (PDT) In-Reply-To: References: From: Ultima Date: Sun, 31 Jul 2016 22:24:54 -0400 Message-ID: Subject: Re: How to install packages from local storage? To: Manish Jain Cc: "Brian W." , FreeBSD Mailing List Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2016 02:24:56 -0000 Sorry, /var/cache/pkg, not db. On Sun, Jul 31, 2016 at 10:24 PM, Ultima wrote: > When a package is downloaded, it is stored in /var/db/pkg, If all the > labtops have the same mountpoint in /var/db/pkg, when one downloads a > package it will appear there for all the labtops. This dir is checked > before downloading the pkg. > > On Sun, Jul 31, 2016 at 10:15 PM, Manish Jain > wrote: > >> On Mon, Aug 1, 2016 at 7:29 AM, Ultima wrote: >> >> Another solution, though I have not tried this, have the labtops mount a >> nfs on /var/cache/pkg they will share the pkg's they download, though it >> may not be the best or safest solution. >> >> >> Does that mean (presuming /var/cache/pkg on all laptops is mounted via >> NFS to somewhere on the network), I just have to run 'pkg install gnome3' >> and the gnome3 pkg will be accessed from /var/cache/pkg rather than being >> downloaded ? >> >> If that works, then why not just copy local.sqlite (I think this is >> /var/db/pkg) on the first system, and paste it on the other laptops ? >> >> I also see that pkg has a command 'add'. What is that for ? >> > >