If you want to quickly check for duplicate package/port installations, try the following pkg_info command. pkg_info | sort | sed -e 's/-[0-9].*$//' | \ uniq -c | grep -v '^[[:space:]]*1'