Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
Re: Mirroring distfiles for installed ports/packages
To:
"H. Hartzer" <h@hartzer.sh>
Cc:
ports@openbsd.org
Date:
Sat, 10 May 2025 03:16:15 +0200

Download raw body.

Thread
On Sat, May 10, 2025 at 12:49:54AM +0000, H. Hartzer wrote:
> > dpb -P ~/packages refuses to run. It says "Bad package path."
> 
> Ok, I figured this out. dpb must have some permissions restrictions and
> even though I'm running it as root, it can't read /root/packages. /root
> is chmod 700 on this machine. I threw it in /tmp and it runs now.

I'd recommend doing some more reading before proceeding with this trial
and error approach. You're missing out on a few things that will make
your life a lot easier down the road.

Read bulk(8). Use proot(1). And please read the section about dpb's
privsep model in dpb(1).