Subject: get pkg_info to output in an easily parsable format
To: None <email@example.com>
From: Jeremy C. Reed <firstname.lastname@example.org>
Date: 03/29/2004 15:23:34
I want pkg_info to give me good details in an easily-parsable format.
I know about the -l switch but it doesn't help.
For example, try:
pkg_info -l "test-" -B -f -c -s -L -d somepackage.tgz
I have some scripts to generate available packages datafile and some
scripts to help tell the user what packages need to be retrieved on an
update. (Once I have an up-to-date and complete datafile, I'll share
An example of my datafile is:
Requires: libiconv>=1.9.1 libiconv-1.9.1nb1
Comment: GNU basic file, shell and text manipulation utilities
Digest: SHA1 ce4e9e647e8635658a59df3bfb8712e607d4f282
The GNU Core Utilities are the basic file, shell and text manipulation
utilities of the GNU operating system. These are the core utilities which
are expected to exist on every operating system.
Previously these utilities were offered as three individual sets of GNU
utilities, fileutils, shellutils, and textutils. Those three have been
combined into a single set of utilities called the coreutils.
Jeremy C. Reed