Without installing FreeBSD in Windows, you can easily obtain the FreeBSD kernel source code.

Source: Internet
Author: User

I want to download and package the source code of FreeBSD kernel in windows. But its official website does not provide it, and it does not seem to be available on the Internet.

Next I will provide a simple method to download all its source code in Windows:

First, go to the official FTP directory below:

For example: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.0-RELEASE/src (other versions can be found in a similar directory)

The kernel source code is in this directory, but you will find that there are only a lot? ",". B? "The end of the file, but there is no packaging file.

No matter what, download all the files, and then:

Open the windows command line, CD to your download directory, and run the Copy command as follows:

Eg. Copy SSYS .?? /B ssys.tar. bz

Or: Copy SSYS .?? /B ssys.tar.bz2

Use winrarto open your ssys.tar.bz(or ssys.tar.bz2) file, and all source code files are close at hand.

========================================================== ==============================================

Appendix: FreeBSD source code directory description

Bin/ In/BinSource code of the file in
Contrib/ Source code maintained by other development organizations
Crypto/ Source Code related to Cryptography
ETC/ In/EtcSource code of the file in
Games/ In/Usr/gamesSource code of the file in
GNU/ Tools authorized by GNU Public License
Include/ In/Usr/includeSource code of the file in
Kerberos5/ Source code of Kerberos version 5th
LIB/ In/Usr/libSource code of the file in
Libexec/ In/Usr/libexecSource code of the file in
Release/ Used to create a freebsd release file
Rescue/ System Construction/RescueTools in
Sbin/ In/SbinSource code of the file in
Secure/ Source code of freesec
Share/ In/Usr/shareSource code of the file in
Sys/ Source code file of the kernel
Tools/ Tools used to maintain and automatically test FreeBSD
USR. bin/ In/Usr/binSource code of the file in
USR. sbin/ In/Usr/sbinSource code of the file in

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.