genlop, Gentoo log parser

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:

genlop -l

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:

genlop

2 Responses to “genlop, Gentoo log parser”

  1. anonymous says:

    i came to know this log when was installing xfree, wondering what packages emerge is installing now,
    tail -f /var/log/emerge.log did the trick for me.
    very nice!

    sigix.

  2. anonymous says:

    To do that work, simply run genlop –current

    Bye

    ps. nice site at all; bookmarked.

Leave a Reply

You must be logged in to post a comment.