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