Difference between revisions of "FreeBSD Jail Upgrade"
From falz.net
Line 1: | Line 1: | ||
− | + | Upgrade, and then install. Note that the install step will put you in vi diff hell. Enjoy that part. | |
+ | freebsd-update -b /jails/jailname --currently-running `jexec -l jailname freebsd-version` -r 12.1-RELEASE-p1 upgrade | ||
+ | freebsd-update -b /jails/jailname --currently-running `jexec -l jailname freebsd-version` -r 12.1-RELEASE-p1 install | ||
− | |||
+ | Restart the jail and run the install command again | ||
+ | service jail restart jailname | ||
freebsd-update -b /jails/jailname --currently-running `jexec -l jailname freebsd-version` -r 12.1-RELEASE-p1 install | freebsd-update -b /jails/jailname --currently-running `jexec -l jailname freebsd-version` -r 12.1-RELEASE-p1 install | ||
+ | |||
+ | Upgrade packages | ||
pkg -j jailname upgrade -f | pkg -j jailname upgrade -f | ||
+ | |||
+ | Why not restart it one last time | ||
service jail restart jailname | service jail restart jailname |
Latest revision as of 14:08, 21 March 2020
Upgrade, and then install. Note that the install step will put you in vi diff hell. Enjoy that part.
freebsd-update -b /jails/jailname --currently-running `jexec -l jailname freebsd-version` -r 12.1-RELEASE-p1 upgrade freebsd-update -b /jails/jailname --currently-running `jexec -l jailname freebsd-version` -r 12.1-RELEASE-p1 install
Restart the jail and run the install command again
service jail restart jailname freebsd-update -b /jails/jailname --currently-running `jexec -l jailname freebsd-version` -r 12.1-RELEASE-p1 install
Upgrade packages
pkg -j jailname upgrade -f
Why not restart it one last time
service jail restart jailname