From 7e8c393af1ae32a678d095a4f08de116686e5597 Mon Sep 17 00:00:00 2001 From: keramida Date: Mon, 11 Feb 2002 03:45:29 +0000 Subject: Add a tip about pkg_info and checking for multiple installed versions of a package/port. --- games/fortune/datfiles/freebsd-tips | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/games/fortune/datfiles/freebsd-tips b/games/fortune/datfiles/freebsd-tips index 8032863..46b19e6 100644 --- a/games/fortune/datfiles/freebsd-tips +++ b/games/fortune/datfiles/freebsd-tips @@ -469,3 +469,9 @@ write This won't work if you don't have write permissions to the directory and probably won't be suitable if you're editing through a symbolic link. +% +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' -- cgit v1.1