Extract src from installation media post-install?

I installed FreeBSD v14.3 but did not select the 'src' option.

Is there a way I can extract this from the installation media (USB)? I did have a browse but it wasn't as obvious as I had hoped (src.tar file somewhere).

I could get it from elsewhere but the install media would be definitely correct for my installation
 
If I recall correctly it's in /usr/dist-files on the install media, src.tgz, it's just a compressed tarball.

But if you want an up to date source tree, a git(1) checkout will be the better option. Just make sure to switch to the correct branch for your installled version (for 14.3-RELEASE that would be releng/14.3). The version on the install media won't include the latest patches. It's the "plain" -RELEASE version.
 
Back
Top