Skip to content

Instantly share code, notes, and snippets.

@n-connect
Created December 27, 2022 10:15
Show Gist options
  • Select an option

  • Save n-connect/60a64587f810a7153d8bf6f8b9313d6f to your computer and use it in GitHub Desktop.

Select an option

Save n-connect/60a64587f810a7153d8bf6f8b9313d6f to your computer and use it in GitHub Desktop.
freeBSD version & patch level query onliners before upgrade.sh
#before GIT, SVN source
fetch -qo - http://svn.freebsd.org/base/releng/12.3/sys/conf/newvers.sh | grep -E "TYPE|REVISION|BRANCH" | head -3
## after moving to GIT sourcecode mgmt
fetch -qo - https://github.com/freebsd/freebsd-src/raw/releng/13.1/sys/conf/newvers.sh | grep -E "TYPE|REVISION|BRANCH" | head -4
## after the output you can choose your upgrade line, but before you do,
## also think about automated or manual beadm (zfs boot snapshot) based upgrade too in "grep CreateBootEnv -B1 -A1 /etc/freebsd-update-conf"
#freebsd-update upgrade -r 13.1-RELEASE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment