Skip to content

Checking for modified files in installed FreeBSD ports or packages

When upgrading FreeBSD ports, you will lose any customizations that you’ve made to files within the port; this is especially problematic with configuration files. A quick and easy way to check for modifications you may have made is to use the -g flag to pkg_info. For example:

> pkg_info -g -x drupal
Information for drupal-4.6.9:

Mismatched Checksums:
/usr/local/www/drupal/.htaccess fails the original MD5 checksum

In this case, you might want to preserve your .htaccess file to merge it back in to your drupal installation after upgrading.

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*