If there is something missing:
Code: Select all
pkg check -d
If there is something corrupted:
Code: Select all
pkg check -s
Code: Select all
pkg check -d
Code: Select all
pkg check -s
Code: Select all
pkg check -s
Code: Select all
pkg install -fy <pkg name>
Code: Select all
pkg check -s 2>&1 | cut -d: -f1 |grep -v Checking |uniq > /tmp/sad-packages.txt
Code: Select all
for i in `cat /tmp/sad-packages.txt`; do echo -e "\n $i";pkg install -fy $i; done