FreeBSD update and initialization

Perform System Update

freebsd-update fetch

freebsd-update upgrade -r 12.0-RELEASE

freebsd-update install

reboot

freebsd-update install

系统提示
Completing this upgrade requires removing old shared object files.
Please rebuild all installed 3rd party software (e.g., programs
installed from the ports tree) and then run "/usr/sbin/freebsd-update install"
again to finish installing updates.

To modify freebsd pkg source, and then perform the update operation pkg

Modify the source pkg

mkdir -p /usr/local/etc/pkg/repos
vim /usr/local/etc/pkg/repos/FreeBSD.conf

# content of FreeBSD.conf
FreeBSD: {
    url: "pkg+http://mirrors.ustc.edu.cn/freebsd-pkg/${ABI}/quarterly",
}

Perform the update operation

pkg-static install -f pkg
pkg update
pkg upgrade

To continue the update operation

freebsd-update install
freebsd-version

Modify the source ports

vim /etc/make.conf

# content of make.conf
MASTER_SITE_OVERRIDE?=http://mirrors.ustc.edu.cn/freebsd-ports/distfiles/${DIST_SUBDIR}/

Guess you like

Origin www.cnblogs.com/melt/p/11408474.html