Nore’s FreeBSD Blog

Just another FreeBSD Committers Blogs weblog

New pkg_info -M (installtime comparison)

without comments

Now the new date feature is doing something useful, I’ve added an option (-M) to pkg_info which compares installtimes of packages similar to the comparison of versions. So now you can do “pkg_info -M ‘*>2008 07 18′ ” and it will display all pacakges installed after the date YYYY MM DD, you can also use the -x or -X option with the -M option. I’m also planning to make use of this in pkg_delete so you can delete packages within date-ranges. Also pkg_convert will have an option so you can make the installtime of packages (who do not have a @comment DATE field) equal e.g., to the changetime of +DESC in /var/db/pkg/pkgname/ (which is correct for most packages). I’ve also decided to cache the installtime which makes this operation a lot faster than calling read_plist for every package to find the installtime.

I’ve also done some improvements to the ‘pkg_add -r’ progress indication output, which now displays the speed of the download as well as percentage progress.

Written by andenore

August 3rd, 2008 at 10:23 pm

Posted in Uncategorized