Add script to output package pinning preferences

Attempting to resolve #1489