Created
December 27, 2022 10:15
-
-
Save n-connect/60a64587f810a7153d8bf6f8b9313d6f to your computer and use it in GitHub Desktop.
freeBSD version & patch level query onliners before upgrade.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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