Update support
It should be possible to update all installed packages with a single command.
-
Make the cookbook create a manifest, with the names and versions of packages. -
Have pkg install
record the name and version of a package on install.-
It is probably a good idea to have the .tar package contain metadata with the version. -
Another good thing to store is a list of files belonging to a package; for many reasons (uninstall, removing file on update if not in new version, checking for conflicting files, etc.); this is not strictly necessary for updating, however.
-
-
Add a pkg update
command that compares installed package versions with remote, and updates if they differ.