Ports - installation & upgrade history
jhell at DataIX.net
Wed Dec 1 05:26:49 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
On 11/30/2010 13:24, David Southwell wrote:
> I was idly wondering how easy/difficult it might be to maintain and access an
> historical record of port installations and upgrades on a particular system.
> Something fairly comprehensive that would enable one to see when a port was
> first installed, its original version number, when it was
> upgraded/deinstalled/reinstalled and subsequent changes to the installed
> version. Maybe also time/date when a port tree was updated and which ports
> were affected by those updates.
> I dont suppose there a convenient way of obtaining this information by
> default? If not is there a port which would do it?
You might find the following handy. This is certainly not perfect and
just a ``my use case scenario'' but I use a hg(1) or Mercurial
repository in the package directory to keep track of these things along
with a script to update the repository after upgrades and installs
that also sends an email once complete.
And of course the repository itself has to be modified a little by
adding necessary files I have provided at URL and allows you to use
pkg_info(1) on the .hg directory for information.
Sample email output by default mailed to root at localhost provided in
signature. And of course the output of hg(1) run manually in the package
directory can also provide you with more verbose output as well as diffs
of changes to the files.
I originally did this using svn(1) but converted it to using hg(1)
because Mercurial only uses one directory in the package root rather
than several in each package directory. This could also be converted to
using git(1) as well but have not had a need for it as of yet and as I
am more attracted to the use of Mercurial over git.
user: J. Hellenthal <jhell at DataIX.net>
date: Mon Nov 22 10:56:04 2010 -0500
description: Package database update by pkg_commit(1)
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----
More information about the freebsd-ports