Differences
This shows you the differences between two versions of the page.
portaudit [2012/08/16 16:33] |
portaudit [2012/08/16 16:33] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== portaudit ====== | ||
+ | * [[FreeBSD]] | ||
+ | * [[FreeBSD Ports Upgrades]] | ||
+ | |||
+ | === Arguments === | ||
+ | |||
+ | * **-a** - print a vuln report for all installed packages | ||
+ | * **-d** - print the creation date of the database | ||
+ | * **-F** - fetch the current database | ||
+ | * **-q** - quiet mode | ||
+ | * **-X <days>** - Download a fresh database if more than <days> old | ||
+ | * **-f <file>** - Check the packages listed in <file> for vulns | ||
+ | * **<pkg-name>** - Check for vulns for <pkg-name> | ||
+ | |||
+ | === Howto === | ||
+ | |||
+ | == Update security and check installed ports == | ||
+ | |||
+ | <code> | ||
+ | /usr/local/sbin/portaudit -Fda | ||
+ | </code> | ||
+ | |||
+ | == Check a remote machine == | ||
+ | |||
+ | <code> | ||
+ | ssh remote.example pkg_info | awk '{ print $1 }' | xargs portaudit | ||
+ | </code> |