pkg-add for installing into a jail?

Alnis Morics alnis.m at
Sun Jul 31 09:39:00 UTC 2016


I could successfully use "pkg -j 1 <packagename>" many times to install 
packages onto a jail.

But now I had to change an option in a port, so I built a package myself:

portmaster -g www/apache22

The package and its dependency was stored to /usr/ports/packages/All (as 
I set it in $PACKAGES):

apache22-2.2.31_1.txz    apr-

I can now install these packages using pkg-add on the host, but not onto 
the jail:

test:/usr/ports/packages/All# pkg -j 1 add apache22-2.2.31_1.txz 
pkg: apache22-2.2.31_1.txz: No such file or directory
pkg: Was 'pkg install apache22-2.2.31_1.txz' meant?
pkg: apr- No such file or directory
pkg: Was 'pkg install apr-' meant?

Failed to install the following 2 package(s): apache22-2.2.31_1.txz, 

If there is "No such file or directory", where does pkg look for them? 
(I also tried to use full path; the result is the same) Or is pkg-add an 
exception which doesn't work with -j option?


More information about the freebsd-questions mailing list