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
--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 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'

--000000000000fa32a105f596b017
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:arial,he=
lvetica,sans-serif;font-size:small">Hi,</div><div class=3D"gmail_default" s=
tyle=3D"font-family:arial,helvetica,sans-serif;font-size:small"><br></div><=
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 &quot;fill in ba=
ckground info&quot; type: From the &quot;pkg(8)&quot; man-page:</div><div c=
lass=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif;font=
-size:small"><br></div><div>=C2=A0 =C2=A0 =C2=A0-c	&lt;chroot	path&gt;, --c=
hroot	&lt;chroot	path&gt;<br>	 =C2=A0 =C2=A0 pkg will chroot in	the &lt;chr=
oot path&gt; environment.<br><br>=C2=A0 =C2=A0 =C2=A0-r	&lt;root directory&=
gt;, --rootdir &lt;root directory&gt;<br>	 =C2=A0 =C2=A0 pkg will install a=
ll packages within the specified	&lt;root<br>	 =C2=A0 =C2=A0 directory&gt;.=
<br></div><div><br></div><div><div class=3D"gmail_default" style=3D"font-fa=
mily: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 qui=
te clear to me (yes, that&#39;s a bit vague, sorry), I&#39;ve been wonderin=
g whether &quot;-r /path&quot; would have been better.</div><div class=3D"g=
mail_default" style=3D"font-family:arial,helvetica,sans-serif;font-size:sma=
ll"><br></div><div class=3D"gmail_default" style=3D"font-family:arial,helve=
tica,sans-serif;font-size:small">I&#39;d appreciate thoughts/advice/comment=
s, TIA</div><div class=3D"gmail_default" style=3D"font-family:arial,helveti=
ca,sans-serif;font-size:small">Michael</div></div>-- <br><div dir=3D"ltr" c=
lass=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr=
"><div>Michael Schuster<br></div><div><a href=3D"http://recursiveramblings.=
wordpress.com/" target=3D"_blank">http://recursiveramblings.wordpress.com/<=
/a><br></div><div>recursion, n: see &#39;recursion&#39;<br></div></div></di=
v></div>

--000000000000fa32a105f596b017--



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