maintainer-feedback requested: [Bug 286107] ports-mgmt/pkg: improvement request: only install files whose checksum have changed
Date: Tue, 15 Apr 2025 07:05:24 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-pkg (Nobody) <pkg@FreeBSD.org> for maintainer-feedback: Bug 286107: ports-mgmt/pkg: improvement request: only install files whose checksum have changed https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286107 --- Description --- Scenario: - FreeBSD stable/14 - ports latest - upgrading ports using 'pkg upgrade' Result: - All files of the old ports are removed, then all files of the updated ports are installed - For many ports, the contents of most files do not change at all - This results in unnecessary disk churn, SSD wear level increase, backup size increase, etc. Desired result: - 'pkg upgrade' should compute the differences between the old and the new installed files, most likely using their checksum - 'pkg upgrade' should then delete and add files as necessary to implement the new pkg plist. - Unchanged files should not be touched at all, not even their mtime. - This would help a lot especially with the big ports: KDE, LibreOffice, ... -- Martin