How to Install FreeBSD from *.txz sets?

Terminus6

New Member


Messages: 2

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?
 
OP
Terminus6

Terminus6

New Member


Messages: 2

Oh I could not find those links! Thank You. How do i mark this post as resolved?
 

unitrunker

Well-Known Member

Reaction score: 167
Messages: 459

Another approach is:
  • install 11.4 (or 12.1)
  • create a jail with 11.0 user land
  • compile your specific program in the jail.
 

Zirias

Aspiring Daemon

Reaction score: 462
Messages: 961

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?
 

mjollnir

Aspiring Daemon

Reaction score: 334
Messages: 749

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.
 

unitrunker

Well-Known Member

Reaction score: 167
Messages: 459

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.
 
Top