FreeBSD pkg install reports size mismatch errors [Resolved]

mismatched-packages-pkg-freebsd FreeBSD pkg install reports size mismatch errors

Resolving Package Mismatches

If you don't periodically update BSD you might see these messages below from your packaging cache.

How to Fix it? 

 Cleaning orphan cache and files

Remove all package caches  

 Running pkg with -f If invoked an attempt will be made to reinstall pkg from remote repository.


Only use this is the previous commands don't work.  Removing the repo-FreeBSD.sqlite and initializing the below command.

Running following commands to initialize and reinstall the pkg package like below example and output 

The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+, please wait...
Verifying signature with trusted certificate done
Installing pkg-1.12.0_1...
Newer FreeBSD version for package pkg:

Font size: +
Report Print

By accepting you will be accessing a service provided by a third-party external to