Re-using /var/db/freebsd-update

I recently updated one system from 13.1 to 13.2 and was wondering if I could make use of the files in /var/db/freebsd-update to apply and update to another 13.1 system without needing to pull down all the required files.

Any advice appreciated.
 
Never tried it but I think you could simply copy /var/db/freebsd-update from one system to another. The second system could still require downloading some additional files though but the 'bulk' of them should be used from the cache.
 
I've copied /var/db/freebsd-update/.

Should I run freebsd-update -r 13.2-RELEASE fetch to see if any additional files need to be downloaded loaded?


After trying, the answer is no....

freebsd-update: -r option is meaningless with 'fetch' command. (Did you mean 'upgrade' instead?)
 
You do still need to run freebsd-update -r 13.2-RELEASE upgrade, it does more than simply download a bunch of patch files.
 
To me this sounds like trouble.
When you run freebsd-update upgrade it checks the machine it is updating and makes a INDEX.

This INDEX includes bringing the updated OS up to most recent patch level.
Then doing the upgrade.

It seems to me that if you want to share /var/db/freebsd-update/ the machine using these files would need to have the identical patch level.

Take a look at the file names. All numbers. These files are not meant to be reused.
Just my opinion.
 
To me this sounds like trouble.
When you run freebsd-update upgrade it checks the machine it is updating and makes a INDEX.

This INDEX includes bringing the updated OS up to most recent patch level.
Then doing the upgrade.

It seems to me that if you want to share /var/db/freebsd-update/ the machine using these files would need to have the identical patch level.

Take a look at the file names. All numbers. These files are not meant to be reused.
Just my opinion.
Well the system is now on 13.2. Whether everything is properly upgraded, I may discover in due course. I don't know if there is any way to check what files may have been downloaded, but it seemed to go much faster than normal.
 
Back
Top