gcc to box without internet

someone with internet equipped box with BSD os would have to fetch the gcc packages and dependencies and then write them on some kind of medium(thumb drive disc) and get it to me. Is that how you would start the process? If it can be done?
 
Why was this moved to a different forum?
I can't remember where it was posted first, but this is a question about installing packages. So it fits better in the "Installation and Maintenance of Ports or Packages" section, therefor I moved it.
 
This should work:
env ABI="FreeBSD:13:amd64" pkg fetch pkg

It's going to complain about having a different kernel version but this can be ignored. pkg-fetch(8) only downloads the packages, it doesn't install them. Don't forget to download the package for ports-mgmt/pkg. You will need to do the pkg(7) "bootstrap" by hand, but that isn't too difficult. From there you can simply pkg-add(8) the packages you stored on the media (USB stick, external HD, etc).
 
The sections of the manual are:
1. FreeBSD General Commands Manual
2. FreeBSD System Calls Manual
3. FreeBSD Library Functions Manual
4. FreeBSD Kernel Interfaces Manual
5. FreeBSD File Formats Manual
6. FreeBSD Games Manual
7. FreeBSD Miscellaneous Information Manual
8. FreeBSD System Manager's Manual
9. FreeBSD Kernel Developer's Manual
 
Back
Top