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 "fill in ba= ckground info" type: From the "pkg(8)" 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 <chroot path>, --c= hroot <chroot path><br> =C2=A0 =C2=A0 pkg will chroot in the <chr= oot path> environment.<br><br>=C2=A0 =C2=A0 =C2=A0-r <root directory&= gt;, --rootdir <root directory><br> =C2=A0 =C2=A0 pkg will install a= ll packages within the specified <root<br> =C2=A0 =C2=A0 directory>.= <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'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.</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'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 'recursion'<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>