Where does pkg_add find my system version?

because on my system, outside of my jails I get:

Code:
# pkg_add -r apache22
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-stable/Latest/apache22.tbz...

While inside my jails I get:

Code:
# pkg_add -r apache22
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-current/Latest/apache22.tbz...

Where, as you can see, on the first situation we have 9-stable whereas on the other 9-current. (my rc files are untouched, with respect to this matter)

Thanx all in advance!
 
You can set PACKAGESITE in the jail env, and point it directly to the packages site you want to use.

For sh-based shells:
Code:
export PACKAGESITE=ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-stable/Latest/

For csh-bashed shells:
Code:
set env PACAKGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-stable/Latest/
 
Back
Top