2
Automating updates (discuss.online)

Does anyone know of a way to automate updates? What I usually do, manually, is to run:

freebsd-update fetch install

I see on man page one can put cron option to do fetch, but don't see a way to automate the actual install.

top 4 comments
sorted by: hot top controversial new old
[-] Notamoosen@lemmy.zip 2 points 1 week ago

I know it's generally advised to apply them manually, but I did find this site with a sample script. I haven't personally used it, so please let us know if it is effective or not. https://www.instructables.com/Keep-your-FreeBSD-system-up-to-date/

[-] francisco_1844@discuss.online 1 points 1 week ago

That article is just "how do you do upgrades". Looks like target audience is for new users; also the article is 11 years old so a lot would have changed even if they covered the automation.

[-] lordofflies@lemmy.ml 1 points 1 week ago

TIL you can do fetch and install together, I used to do them seperately (and manually) I have a cron job for pkg update && PKG upgrade though.

[-] francisco_1844@discuss.online 1 points 1 week ago

But the install part of freebsd-update prompts for user intervention. Don't see anything in the man page about automation. Going to setup a VM to play around with this. will report back with findings.

this post was submitted on 03 Apr 2026
2 points (100.0% liked)

FreeBSD

76 readers
1 users here now

A non-reddit place to discuss all things FreeBSD. Other BSD operating systems are also welcome.

founded 2 weeks ago
MODERATORS