<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Jan 13, 2018 18:25, "nusenu" <<a href="mailto:nusenu-lists@riseup.net" target="_blank">nusenu-lists@riseup.net</a>> wrote:<br type="attribution"><blockquote class="m_7428366421527529858quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_7428366421527529858quoted-text">>>> `pkg upgrade` is cronnable, so both FreeBSD and HardenedBSD could<br>
>>> perform automatic (and unattended) package upgrades via a cronjob. And<br>
>>> with that, all the boxes in the grid linked to at [1] should be green<br>
>>> for FreeBSD and HardenedBSD.<br>
>><br>
>> the red box is based on our previous discussion<br>
>> <a href="https://twitter.com/lattera/status/939491141459828736" rel="noreferrer" target="_blank">https://twitter.com/lattera/st<wbr>atus/939491141459828736</a></div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">depending of the components, freebsd-update(8) can be used to automate base system's updates.</div><div dir="auto"><br></div><div dir="auto">PAGER=cat can help you to get it done; checking for stuff on /var/db/freebsd-update too.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="m_7428366421527529858quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_7428366421527529858quoted-text">
> Gotcha. I was incorrect.<br>
><br>
> pkg allows users to pass int ALWAYS_ASSUME_YES as an environment<br>
> variable, so it'd be easy to write a little script like this:<br>
><br>
> #!/bin/sh<br>
> /usr/bin/env ALWAYS_ASSUME_YES=yes /usr/local/sbin/pkg upgrade<br>
<br>
</div>For the record, it is "ASSUME_ALWAYS_YES".<br>
<div class="m_7428366421527529858quoted-text"><br>
> Then the user can set up a cronjob with that script.<br>
<br>
</div>Should that script include a 'pkg update' before 'pkg upgrade'?</blockquote></div></div></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="m_7428366421527529858quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_7428366421527529858elided-text"><br>
</div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto"><span style="font-family:sans-serif">clean pkg's cache (previous fetched tarballs), and/or backup installed packages can be a thing too.</span><br></div><div dir="auto"><br></div><div dir="auto">also... you can use pkg-static to perform an upgrade of the pkg(8) package; than upgrade the rest of the packages.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="m_7428366421527529858quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_7428366421527529858elided-text">
<br>
--<br>
<a href="https://mastodon.social/@nusenu" rel="noreferrer" target="_blank">https://mastodon.social/@nusen<wbr>u</a><br>
twitter: @nusenu_</div></blockquote></div></div></div></div>