From nobody Sun Feb 26 09:07:14 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PPd7P5Dlvz3t5h4 for ; Sun, 26 Feb 2023 09:07:29 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PPd7N6Gmqz4KwK for ; Sun, 26 Feb 2023 09:07:28 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=pSWAzy8Y; spf=pass (mx1.freebsd.org: domain of michaelsprivate@gmail.com designates 2a00:1450:4864:20::22e as permitted sender) smtp.mailfrom=michaelsprivate@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-lj1-x22e.google.com with SMTP id j17so3371179ljq.11 for ; Sun, 26 Feb 2023 01:07:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=MG80hHWHiQWnjSvSNQBgYZiIpgA1ABQ1Nc3LtEraPTo=; b=pSWAzy8YlVu4Uw1ot0MQeIAgSy/oIZAc70dMTObZTWnRBFktbMrtTHUwt64omM/l2M aPQCSLtLsiv1YuVijAMQ5ZMlc6MbeAJyiczABqg6fKkdDpoF62ZI/bReMsqu4rafvyiV o6qidTPby+/eylUVrCk8W7TyMl70Oy5jYtzcic2z/l1395WQt9HMf3ASs7Wm8KafcMhT Q8IxGNyO27eqJebW8qB+J8N6nMnKR9AH3SQbpoRvyTLbwm5zK3v2cQvm2XWmbBCshuz+ R8M0NRqdwzN0hUUJW1Y5JXKihYREtlWW6FA9KvwxJCvxDu7VxyfkgV0J6CbWmrB685wG ULPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=MG80hHWHiQWnjSvSNQBgYZiIpgA1ABQ1Nc3LtEraPTo=; b=r0dxB3o+BFbouM6iWGbfJ1AMfA50oPrl/l9LoXMo+dB3YiJO+QV/jZPpp3Q/o5MeD2 ghlijPL/PtjLzTptTYQ+nhWygy6WYdhloNScl5w8ozlXVCW/+Usj+6exzQaB2Y9b+QhM rRDEm1g9ITRDRqjvvKZ73deLFwv5oa5AEFXfViyM7XR867WTGShQcVFbUYVpZtdpiYFS bASYItf9PGNrDdoTwPn54udiTU914iVU5ntxtFN33C5cdjpvvIKsyZu8kTCySLUoJYZ9 UmQUosB7Mqx8szxSHVS1Jlqs/HvZhqjc1OpQEE3A1RmIyeV0gWGrjh3Ey++brorlvzHp PMuw== X-Gm-Message-State: AO0yUKWT9016SIjrkeqCAoM4vvGLIvQE7FkfAfqggmbVpLE8GR57DuFT QDUY4cVO3H4sVFT3mw2E+CnOTjdAdFHw7w7LJRm7ix2wbuWpK8Q+ X-Google-Smtp-Source: AK7set+OoI5TeaClaZtnk30c/E5h9L6RSCg2uDSDBWGeMUa4y+rbNRnTSmMOvsb0PkFGh3DXaJFDD7E0KIQT1mg2eFw= X-Received: by 2002:a05:651c:10aa:b0:293:4be3:9e6c with SMTP id k10-20020a05651c10aa00b002934be39e6cmr6302495ljn.1.1677402446638; Sun, 26 Feb 2023 01:07:26 -0800 (PST) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 From: Michael Schuster Date: Sun, 26 Feb 2023 10:07:14 +0100 Message-ID: Subject: pkg(8): difference between "-c /path" and "-r /path" To: FreeBSD Hackers Content-Type: multipart/alternative; boundary="000000000000fa32a105f596b017" X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::22e:from]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[gmail.com]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Rspamd-Queue-Id: 4PPd7N6Gmqz4KwK X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N --000000000000fa32a105f596b017 Content-Type: text/plain; charset="UTF-8" Hi, This question is (as of yet) more of the "fill in background info" type: From the "pkg(8)" man-page: -c , --chroot pkg will chroot in the environment. -r , --rootdir pkg will install all packages within the specified . up to now, I've leaned towards "pkg -c /path " when installing/updating a BE mounted at /path, but, given some results in the past that weren't quite clear to me (yes, that's a bit vague, sorry), I've been wondering whether "-r /path" would have been better. I'd appreciate thoughts/advice/comments, TIA Michael -- Michael Schuster http://recursiveramblings.wordpress.com/ recursion, n: see 'recursion' --000000000000fa32a105f596b017 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

<= div class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif= ;font-size:small">This question is (as of yet) more of the "fill in ba= ckground info" type: From the "pkg(8)" man-page:

=C2=A0 =C2=A0 =C2=A0-c <chroot path>, --c= hroot <chroot path>
=C2=A0 =C2=A0 pkg will chroot in the <chr= oot path> environment.

=C2=A0 =C2=A0 =C2=A0-r <root directory&= gt;, --rootdir <root directory>
=C2=A0 =C2=A0 pkg will install a= ll packages within the specified <root
=C2=A0 =C2=A0 directory>.=

up to now, I've leaned= towards "pkg -c /path <cmd>" when installing/updating a BE= mounted at /path, but, given some results in the past that weren't qui= te clear to me (yes, that's a bit vague, sorry), I've been wonderin= g whether "-r /path" would have been better.

I'd appreciate thoughts/advice/comment= s, TIA
Michael
--
--000000000000fa32a105f596b017--