Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Feb 2023 10:07:14 +0100
From:      Michael Schuster <michaelsprivate@gmail.com>
To:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   pkg(8): difference between "-c /path" and "-r /path"
Message-ID:  <CADqw_gJHaputC4iGX=UkR=3jdGWgAQE2ChN34E8gEPznM=CQXw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi,

This question is (as of yet) more of the "fill in background info" type:
>From the "pkg(8)" man-page:

     -c <chroot path>, --chroot <chroot path>
    pkg will chroot in the <chroot path> environment.

     -r <root directory>, --rootdir <root directory>
    pkg will install all packages within the specified <root
    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 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'

[-- Attachment #2 --]
<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Hi,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">This question is (as of yet) more of the &quot;fill in background info&quot; type: From the &quot;pkg(8)&quot; man-page:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div>     -c	&lt;chroot	path&gt;, --chroot	&lt;chroot	path&gt;<br>	     pkg will chroot in	the &lt;chroot path&gt; environment.<br><br>     -r	&lt;root directory&gt;, --rootdir &lt;root directory&gt;<br>	     pkg will install all packages within the specified	&lt;root<br>	     directory&gt;.<br></div><div><br></div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">up to now, I&#39;ve leaned towards &quot;pkg -c /path &lt;cmd&gt;&quot; when installing/updating a BE mounted at /path, but, given some results in the past that weren&#39;t quite clear to me (yes, that&#39;s a bit vague, sorry), I&#39;ve been wondering whether &quot;-r /path&quot; would have been better.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I&#39;d appreciate thoughts/advice/comments, TIA</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Michael</div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Michael Schuster<br></div><div><a href="http://recursiveramblings.wordpress.com/" target="_blank">http://recursiveramblings.wordpress.com/</a><br></div><div>recursion, n: see &#39;recursion&#39;<br></div></div></div></div>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADqw_gJHaputC4iGX=UkR=3jdGWgAQE2ChN34E8gEPznM=CQXw>