我正在尝试运行freebsd10的更新,并被要求提供内核源代码。
===>>> Launching child to update lsof-4.89.b,8 to lsof-4.89.d,8
===>>> All >> lsof-4.89.b,8 (9/9)
===>>> Currently installed version: lsof-4.89.b,8
===>>> Port directory: /usr/ports/sysutils/lsof
===>>> This port is marked IGNORE
===>>> requires kernel sources
===>>> If you are sure you can build it, remove the
IGNORE line in the Makefile and try again.
===>>> Update for lsof-4.89.b,8 failed
===>>> Aborting update但是sysinstall已经不存在了
sysinstall: not found在FreeBSD10中安装内核源代码的新方法是什么?
我想安装bsdinstall,但它只想把我不想要的磁盘切碎。

发布于 2015-05-22 10:38:11
你可以这样做:
git clone https://github.com/freebsd/freebsd.git /usr/src
cd /usr/src; make clean发布于 2015-10-28 15:10:35
您可以手动下载并解压完整源树的tarball,以便从ftp://ftp.freebsd.org/pub/FreeBSD/releases/中获得特定版本。
例如。
fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/
10.2-RELEASE/src.txz tar -C / -xzvf src.txz10.2-RELEASE必须替换为操作系统的正确版本。您可以使用命令:freebsd-version -k找到版本,从上面的URL获取次要版本时应该忽略它。如果是10.2-RELEASE-p1,只需使用:10.2-RELEASE
发布于 2017-11-29 21:03:37
更通用的解决方案:
fetch -o /tmp ftp://ftp.freebsd.org/pub/`uname -s`/releases/`uname -m`/`uname -r | cut -d'-' -f1,2`/src.txz
tar -C / -xvf /tmp/src.txz您可以将/tmp替换为您最喜欢的目录,以便下载到其中。
或者:
svn checkout https://svn.freebsd.org/base/releng/`uname -r | cut -d'-' -f1,1` /usr/srchttps://unix.stackexchange.com/questions/204956
复制相似问题