Actions

Difference between revisions of "FreeBSD Jail Upgrade"

From falz.net

(Created page with "Chicken scratch for now Docs say to do this, but it may say you need to fetch first: freebsd-update -b /jails/jailname --currently-running `jexec -l jailname freebsd-version`...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Chicken scratch for now
+
Upgrade, and then install. Note that the install step will put you in vi diff hell. Enjoy that part.
Docs say to do this, but it may say you need to fetch first:
+
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
 
  freebsd-update -b /jails/jailname --currently-running `jexec -l jailname freebsd-version` -r 12.1-RELEASE-p1 install
  
So let's do that, then try again
+
 
  freebsd-update -b /jails/jailname --currently-running `jexec -l jailname freebsd-version` fetch
+
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
  
  
freebsd-update -b /jails/jailname fetch
+
Upgrade packages
freebsd-update -b /jails/jailname --currently-running `jexec -l jailname freebsd-version` -r 12.1-RELEASE-p1 install
 
 
  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