Pakistan has signed one of its largest defense export agreements, involving the supply of military equipment to Libya.