Idea: new verb: pkg diff pkgname
It would be useful to be able to display exactly what the on-disk changes are between a pkg in a repo and what is installed on disk. This command should:
- Compare the files in the two packages showing files as either 'to add', 'to remove', 'modified' or 'unchanged' for file content, plus flag up changes in permissions, ownership.
- Compare the package metadata showing changes in eg. OPTIONS similarly.
Less pain to implement this via external perl (for example) script :-)
On 09/12/2014 18:59, andrejzverev wrote:
Less pain to implement this via external perl (for example) script :-)
If there was a perl interface to libpkg, that might be the case. But there isn't one. Also, we don't want pkg(8) to grow any extra dependencies.
Cheers,
Matthew
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey JID: [email protected]
Alternatively, save permissions, ownership and file flags to the local package database and allow pkg-check to verify those.