git Distributed source code management tool
git-lite Distributed source code management tool (lite flavor)
git-tiny Distributed source code management tool (tiny flavor)
pkg rquery %dn <git_flavor># mv /usr/src /usr/src.bak
# git clone --branch releng/13.2 https://git.FreeBSD.org/src.git /usr/src
This might not work if you have a ZFS system, /usr/src/ is a separate dataset and you cannot rename it this way. I'd just nuke it, no reason to keep a 'backup' of it,Code:# mv /usr/src /usr/src.bak
rm -rf /usr/src/* /usr/src/.[^.]*Absolutely (I just copy&paste'ed the whole procedure, including the "mv" line, from the handbook).This might not work if you have a ZFS system, /usr/src/ is a separate dataset and you cannot rename it this way. I'd just nuke it, no reason to keep a 'backup' of it,
% zfs list | grep src
zroot/usr/src-15.1 256M 5.74G 3.09G /usr/src-15.1
zroot/usr/src-main 3.32G 5.74G 3.14G /usr/src-main
If you want to use gitup for this, edit /usr/local/etc/gitup.conf and replace"branch" : "releng/15.0",with"branch" : "releng/15.1",(this is under the top level "release" entry) and then do "gitup release".
Here it is. Contains all the latest sources, for every version.But why is there no freebsd.org page that contains the last accepted kernel and base source? It's like 2GB
All those version repositories can't be downloadable archives that are updated with the code commits?Here it is. Contains all the latest sources, for every version.
src - FreeBSD source tree
cgit.freebsd.org
zfs umount. cd /usr/src && git checkout releng/15.1If your system has migrated to pkgbase, one can install the updated source packages (archives) easily:All those version repositories can't be downloadable archives that are updated with the code commits?
% pkg search -r FreeBSD-base FreeBSD-src
FreeBSD-src-15.1p2 System userland source code
FreeBSD-src-sys-15.1p2 System kernel source code
% pkg fetch -r FreeBSD-base -o /tmp FreeBSD-src FreeBSD-src-sys
# tar xfC FreeBSD-src-15.1p2.pkg /
release/15.1.0-p2
3 weeks ago aadd58d zip tar.gz
release/15.0.0-p12
3 weeks ago 7b527b9 zip tar.gz
release/14.4.0-p8
3 weeks ago 3de2d29 zip tar.gz
You basically have nothing and argue that git repositories are archives?If your system has migrated to pkgbase, one can install the updated source packages (archives) easily:
Code:% pkg search -r FreeBSD-base FreeBSD-src FreeBSD-src-15.1p2 System userland source code FreeBSD-src-sys-15.1p2 System kernel source code
Even if the system hasn't migrated to pkgbase, one can pkg-fetch(8) the packages and untar(1) them individually:
Code:% pkg fetch -r FreeBSD-base -o /tmp FreeBSD-src FreeBSD-src-sys # tar xfC FreeBSD-src-15.1p2.pkg /
It seems other freebsd.org domains do not offer downloadable archives, but the FreeBSD Github mirror has this option.
For zip and tar.gz RELEASE archives look under https://github.com/freebsd/freebsd-src/tags
Code:release/15.1.0-p2 3 weeks ago aadd58d zip tar.gz release/15.0.0-p12 3 weeks ago 7b527b9 zip tar.gz release/14.4.0-p8 3 weeks ago 3de2d29 zip tar.gz
STABLE and CURRENT (a.k.a "main") zip archives ( RELEASE also) are downloadable through the green "Code" button from the freebsd-src repository page. The branch can be selected with the "Switch branches/tags" button (located on the opposite side of the "Code" button).
By the way, latest and quarterly freebsd-ports archives are also available.
You basically have nothing and argue that git repositories are archives?
Archive files could be direct mirrors of these repositories. You only have to keep on updating it with the latest changes, like adding files to a tar. This is a problem?
I used the ftp src.tar.gz often for a long time, but that can be weeks old. The freebsd.org ftp-server seems to have stopped responding Probably for not having transfer encryption.
I think people trying out FreeBSD for whatever reason should not be "encouraged" to use outdated system source files by putting up an update standard that requires this amount of time to set up. Download, compile and install should be a few lines and automatically involve recent files. Git and gitup work and are close to the same result but not parts of the system.
You basically have nothing and argue that git repositories are archives?
Archive files could be direct mirrors of these repositories. You only have to keep on updating it with the latest changes, like adding files to a tar. This is a problem?
That's exactly what's on the FreeBSD Github repository offered for download: source code, updated with the (latest patch level) code commits, in .zip and .tar.gz archive file format:All those version repositories can't be downloadable archives that are updated with the code commits?