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 "fill in background info" type: From the "pkg(8)" man-page:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div> -c <chroot path>, --chroot <chroot path><br> pkg will chroot in the <chroot path> environment.<br><br> -r <root directory>, --rootdir <root directory><br> pkg will install all packages within the specified <root<br> directory>.<br></div><div><br></div><div><div class="gmail_default" style="font-family: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 quite clear to me (yes, that's a bit vague, sorry), I've been wondering whether "-r /path" 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'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 'recursion'<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>
