Installing software from host to Jail

Hi!, this time I have an easy one

I have installed some software in my host system, and I then created a Jail, it is working fine, but, the only thing I can't do is install software from packages and/or ports in the Jail since I have not yet configured internet access from the Jail. I think there is a better way to install software I have previously installed in the host system, isn't it?, to put in numbers:

Host system: Java Virtual Machine installed
Jail SD: I want here to install the JVM
Jail temp: I want here to install the JVM too

Do I have to perform the installation three times??? (one previously done and two more for each Jail), is there another way like copying the files (or the distfiles from ports and then perform the make install in the Jail)???

Thanks for the help!!!
 
You can create packages with # make package or with portmaster/portupgrade. You can also do a make on the host, mount /usr/ports using nullfs to the jail and do the make install there.

Code:
mount -t nullfs /usr/ports /jail/j1/usr/ports

No real need to have multiple copies of the ports tree around ;)
 
Fastest way to install a package to the jail (ran from outside of it) would be :
# pkg_add -C /jail/j1 -r package_name
 
You can create packages with # make package or with portmaster/portupgrade. You can also do a make on the host, mount /usr/ports using nullfs to the jail and do the make install there.

Code:
mount -t nullfs /usr/ports /jail/j1/usr/ports

No real need to have multiple copies of the ports tree around ;)

What is the difference between using nullfs and creating a symbolic link ?
 
Back
Top