How can I extract some of the folders of a stock FreeBSD install from the ISO without actually installing FreeBSD?
I am trying to build a number of cross-compilers for various major versions of FreeBSD and need to get the libc and some includes and would like to be able to extract /usr/include and /usr/lib or rather parts of them ...
Edit: given the first response I feel I have to elaborate a bit. It is trivial to mount an ISO file and I know how to do that on a number of platforms (e.g. on my Linux box: mount -o loop FreeBSD-7.0-RELEASE-amd64-disc1.iso freebsd7/). However, when you mount the installation ISOs for FreeBSD you will notice that they don't contain a folder usr as can be easily seen from the output of find -type d -name usr while inside the folder in which the ISO is mounted. Evidently the files are stored away in some format and I need to be able to parse whatever meta-information exists to find what file is the archive that contains the stuff I need to extract and then extract it.
cat base.?? | tar --unlink -xpzf -(not sure if the archive in base/ has the /usr you seek) – hhaamu Feb 15 '12 at 21:25base.mtreethat gives some insight, i.e. lists what's in thebase.??files -- and it does mentiongcc. – sr_ Feb 16 '12 at 13:07