How to Install FreeBSD from *.txz sets?

Hello my goal is to install 11.0-RELEASE on my HDD and then upgrade to 11.4-RELEASE. Reason is I need to compile a specific program on the 11.0-RELEASE. With no 11.0 ISO available = no installer therefore I would need create the partitions on a blank hdd then extract the .txz in the respective partitions correct?
 
Reason is I need to compile a specific program on the 11.0-RELEASE.
This bears the little "smell" of an XY-problem. I wonder what that program could be that doesn't compile on 11.4? And I assume there would be better ways to fix this? Can't be sure of course, but if you ask about it (in a different thread) giving some details, maybe someone could help?
 
I wonder if there are some environment variables you could set, to build a program for an old version of FreeBSD. Or set up a build jail that acts as if it were 11.0. Some of the gurus should know this immediately, I do not have a solution at hand.
 
It takes all of five minutes to manually create a jail for this.


Bash:
#!/bin/csh
pushd /usr/jails
mkdir alpha
tar -xpf /usr/jails/base.txz -C alpha
cp /etc/resolv.conf alpha/etc/resolv.conf
touch alpha/etc/fstab
popd

If you use the base.txz from 11.0-RELEASE, you have an 11.0-RELEASE user land.

Create a /etc/jail.conf file (about a paragraph of text) and edit /etc/rc.conf to enable the jail.
 
Back
Top