Restoring a File
Use the pkg revert command to restore files to their packaged condition. File ownership and protections are also restored.
Caution:
Reverting some editable files can make the system unbootable, or cause other malfunctions. Use the--require-backup-be option when reverting a key editable file.