Thanks to Collin Starkweather I’ve discovered a nice utility in the Portage application tool suite: it is the genlop utility, a log parser for the emerge.log file.
As you probably know, emerge, the interface to Portage, logs its activity to /var/log/emerge.log. In some occasions it’s very interesting to watch the activity of the packages you’ve merged or unmerged.
The genlop utility provides useful information:
For example try this to see Apache’s emerge historical info:
genlop -u apache
Calculate merge time for Apache
genlop -f /var/log/emerge.log -t apache
Show full emerge history:
Note that genlog by default assumes that emerge.log is located in /var/log. If not, provide the full path: -f /path/to/emerge.log
To get usage info simply type: