pkg audit not working like portaudit

Aleksandr Miroslav alexmiroslav at
Wed Jul 30 14:22:48 UTC 2014

I used to be able to do something like this with portaudit in my cron jobs:

    portaudit > /dev/null || portaudit |mailx -s portaudit root

i.e. portaudit returned a non-zero value when there were vulnerabilities.

I expected "pkg audit" to do the same, but apparently it always
returns zero. Is there some way to get the old portaudit behavior or
do I have to write a script to parse the output?


More information about the freebsd-questions mailing list