echo list of already-exist from /All/o cd /All/o && ls | sed 's/.tgz$//' > /t/pkg.got cd /var/db/pkg && ls > /t/pkg.installed grep -vFf /t/pkg.got /t/pkg.installed > /t/pkg.new xargs -L1 echo tarup < /t/pkg.new > /t/pkg.tarups