1#!/bin/sh 2 3# Set default values 4APPDIR=${APPDIR:-..} 5 6. ${APPDIR}/common.subr 7 8sect "Packages information"; 9 10NUMP=`pkg_info | wc -l | awk '{print $1}'` 11OUTD=`pkg_version -Iv | grep -c "needs updating"` 12 13echo -e "There are $NUMP packages installed in the system and $OUTD of them needs updating." 14echo -e "${C_BOLD_S}Note that this number may be inaccurate, as your ports tree may be outdated too.${C_BOLD_E}\n" 15 16if is_verbose 1; then 17 pkg_info 18 echo 19else 20 info "Run pkg_info(1) to see a full list of installed packages." 21fi 22 23info "Use pkg_version(1) to inspect what packages are outdated." 24info "Use the portsnap(8) or csup(1) tool to update your ports tree." 25 26echo 27 28if which -s portaudit; then 29 subsect "Packages with known security vulnerabilities:" 30 portaudit -a 31 echo -e "\n${C_BOLD_S}Note that this information may be inaccurate, \ 32as the portaudit(1) database may be outdated.${C_BOLD_E}\n" 33else 34 warn "You should install the portaudit(1) tool in order to get information \ 35about known security vulnerabilities in your packages." 36fi 37 38exit 0 39