Cleanup all FreeBSD packages and ports

January 20th, 2014 Posted in General

Cleanup all of the old data

  1. # pkg remove -a -f
  2. # rm -rf /var/db/pkg/* /var/db/ports/* /usr/local/*

 

Reinstall ports data

  1. # portsnap fetch
  2. # portsnap extract

 

Reinstall pkg

  1. # pkg info
    • You’ll be prompted to reinstall pkg, press “y” and enter

Post a Comment