pkg icon indicating copy to clipboard operation
pkg copied to clipboard

Idea: new verb: pkg diff pkgname

Open infracaninophile opened this issue 11 years ago • 3 comments

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.

infracaninophile avatar Dec 05 '14 09:12 infracaninophile

Less pain to implement this via external perl (for example) script :-)

andrejzverev avatar Dec 09 '14 18:12 andrejzverev

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]

infracaninophile avatar Dec 10 '14 07:12 infracaninophile

Alternatively, save permissions, ownership and file flags to the local package database and allow pkg-check to verify those.

strssndktn avatar Sep 14 '25 11:09 strssndktn