Best way to check if freebsd-updates are available?

japoc

Member

Thanks: 1
Messages: 81

#1
Hello,

I've been reading about

freebsd-update cron

That looks interesting. I'd be interested in receiving an email each time updates are available.
However I guess this would require me to install and configure sendmail, postfix or something like that to send me e-mails over the internet, right?
I think I'd rather have a script execute each time updates are available. Each time an update is available, this script would connect to one of my existing e-mail accounts (for example a gmail account) and send an email to me using this account. This is usually what I do to send emails programmatically. I don't like to rely on something like sendmail to send emails as these emails tend to be marked as spam, or sometimes are blocked by email providers.

So what is the correct way to check if freebsd-updates are available?
freebsd-update fetch
doesn't seem to provide a particular return code for this scenario.

Thanks for your advices.
 

drhowarddrfine

Son of Beastie

Thanks: 871
Messages: 2,720

#3
I guess this would require me to install and configure sendmail
sendmail(8) is already installed on your system. I don't know how much configuration you would have to do to make it work with freebsd-update(8).

I don't like to rely on something like sendmail to send emails as these emails tend to be marked as spam, or sometimes are blocked by email providers.
That has nothing to do with sendmail(8) and everything to do with your reputation and email set up. Everyone who isn't MailChimp or Gmail has the same problem but it isn't always a problem everywhere if you set up your email properly. It's not effortless but not impossible either.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Thanks: 6,335
Messages: 27,504

#5
Is there is a similar mailing list for security advisories about packages installed using pkg?
Not really, but you can use pkg-audit(8) for that. The weekly security periodic(8) scripts makes use of that:
Code:
Checking for packages with security vulnerabilities:
Database fetched: Sat May 27 03:58:25 UTC 2017
mariadb100-server-10.0.30_1
libressl-2.5.3
 
Top