Brandon Invergo

Release of Pacnanny 1.2

I’m a bit late in announcing this here. The other day I released a new version of Pacnanny. This version makes a few minor changes and adds two new features:

  • Use curl instead of wget, since curl is already a dependency of Pacman.
  • Improve the method of specifying the browser to use (i.e. now you can do stuff like "lynx -dump %s | less".
  • Change the default news display to just dumping to standard out (via w3m).
  • Add the --history option to show the installation history of a package or packages.
  • Add the --log option to show the Pacman logs from a given date or range of dates.

The --history option gives output like this:

$ pacnanny --history vim emacs
:: Package history for vim:
2012-06-19 21:21: installed (7.3.547-1)
2012-07-22 11:05: upgraded (7.3.547-1 -> 7.3.600-1)
2012-09-07 09:56: upgraded (7.3.600-1 -> 7.3.659-1)
2012-09-19 00:19: upgraded (7.3.659-1 -> 7.3.661-1)
2012-10-22 22:54: upgraded (7.3.661-1 -> 7.3.709-1)
2012-10-24 20:36: upgraded (7.3.709-1 -> 7.3.712-1)
2012-12-06 19:36: removed (7.3.712-1)
:: Package history for emacs:
2012-06-19 21:22: installed (24.1-2)
2012-08-29 18:41: upgraded (24.1-2 -> 24.2-1)
2012-10-28 23:30: upgraded (24.2-1 -> 24.2-2)
2012-11-18 23:03: upgraded (24.2-2 -> 24.2-3)
2013-01-23 21:32: upgraded (24.2-3 -> 24.2-4)
2013-03-23 13:00: upgraded (24.2-4 -> 24.3-1)
2013-03-25 22:00: upgraded (24.3-1 -> 24.3-1)
2013-03-25 22:14: upgraded (24.3-1 -> 24.3-1)
2013-03-25 22:53: upgraded (24.3-1 -> 24.3-1)
2013-03-25 22:53: upgraded (24.3-1 -> 24.3-1)
2013-05-14 21:32: upgraded (24.3-1 -> 24.3-2)

As for the --log option, you can pass any kind of date that is recognizable by the date command. This means you can do things like:

$ pacnanny --log 2013-06-04
$ pacnanny --log yesterday
$ pacnanny --log 2013-06-01:2013-06-04
$ pacnanny --log "last month:yesterday"

Enjoy!