Updating FreeBSD in jail

Status
Not open for further replies.

balanga

Patron
Joined
Jul 10, 2014
Messages
271
Does anyone have any tips on updating/upgrading FreeBSD running in a jail?

Should I just following the instructions in the FreeBSD handbook?
 

KevDog

Patron
Joined
Nov 26, 2016
Messages
462
Depending if you're the root user or not -- (use sudo if not root user), (no need for sudo if root user). I usually just do
pkg update -f
pkg upgrade

This installs all upgrades that were installed through the package system

Ports can be upgraded a bunch of different way, however if you've installed portmaster, I just usually do

portsnap fetch extract
portsnap fetch update
portmaster -a
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Are you asking about updating the packages or updating the base FreeBSD version?
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
I was trying to upgrade FreeBSD to 11.0, but apparently you can't.
No you can't. Even if upgrading the jails base system were supported you can't run a newer version of FreeBSD in a jail than what's running on the host.
 

KevDog

Patron
Joined
Nov 26, 2016
Messages
462
The base OS and the jails share the same kernel. If you really wanted to run for example FreeBSD 11.0 you could install it through something like bhyve which is a hypervisor. Bhyve is like virtualbox but its a FreeBSD's native hypervisor. I have a few linux installs running through bhyve. Sorry I misunderstood the question.
 
Status
Not open for further replies.
Top