[Tor-BSD] Tor relay guide input

Vinícius Zavam egypcio at googlemail.com
Sat Jan 13 14:40:16 EST 2018


On Jan 13, 2018 18:25, "nusenu" <nusenu-lists at riseup.net> wrote:

>>> `pkg upgrade` is cronnable, so both FreeBSD and HardenedBSD could
>>> perform automatic (and unattended) package upgrades via a cronjob. And
>>> with that, all the boxes in the grid linked to at [1] should be green
>>> for FreeBSD and HardenedBSD.
>>
>> the red box is based on our previous discussion
>> https://twitter.com/lattera/status/939491141459828736


depending of the components, freebsd-update(8) can be used to automate base
system's updates.

PAGER=cat can help you to get it done; checking for stuff on
/var/db/freebsd-update too.

> Gotcha. I was incorrect.
>
> pkg allows users to pass int ALWAYS_ASSUME_YES as an environment
> variable, so it'd be easy to write a little script like this:
>
> #!/bin/sh
> /usr/bin/env ALWAYS_ASSUME_YES=yes /usr/local/sbin/pkg upgrade

For the record, it is "ASSUME_ALWAYS_YES".

> Then the user can set up a cronjob with that script.

Should that script include a 'pkg update' before 'pkg upgrade'?



it's not a must, but I would; for "didactic" reasons, maybe ~ so people get
a better and clear understanding of a proper update/upgrade process.

clean pkg's cache (previous fetched tarballs), and/or backup installed
packages can be a thing too.

also... you can use pkg-static to perform an upgrade of the pkg(8) package;
than upgrade the rest of the packages.


--
https://mastodon.social/@nusenu
twitter: @nusenu_
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nycbug.org/pipermail/tor-bsd/attachments/20180113/44d2a65d/attachment.html>


More information about the Tor-BSD mailing list