dpkg-ruby1
Utility to read a dpkg style db file, dpkg-awk clone
Usage
dpkg-ruby [{(-f | --file)
filename}]
[{(-d | --debug)
##}]
[{(-s | --sort)
list}]
[{(-n | --numeric)
list}]
[{(-rs | --rec_sep)
??}]
'<fieldname>:<regex>' ...
--
<out_fieldname>
..
Overview
dpkg-ruby Parses a dpkg status file(or other similarly formatted file) and outputs the resulting records. It can use regex on the field values to limit the returned records, and it can also be told which fields to output. As another option, it can sort the matched fields.
Options
-ffilename
--filefilename-
The file to parse. The default is /var/lib/dpkg/status.
-d[#]
--debug[#]-
Each time this is specified, it increased the debug level.
-sfield(s)
--sortfield(s)-
A space or comma separated list of fields to sort on.
-nfield(s)
--numericfield(s)-
A space or comma separated list of fields that should be interpreted as numeric in value.
-rs??
--rec_sep??-
Output this string at the end of each output paragraph.
-
-h
-
--help -
Display some help.
- fieldname
-
The fields from the file, that are matched with the regex given. The fieldnames are case insensitive.
- out_fieldname
-
The fields from the file, that are outputted for each record. If the first field listed is begins with ^, then the list that follows are fields NOT to be outputted.
History
- Debian 13 (Trixie) to Debian 11 (Bullseye): the text shown here
- Debian 10 (Buster) to Debian 7 (Wheezy)
- Debian 6.0 (Squeeze) to Debian 4.0 (Etch)
- Debian 3.1 (Sarge) to Debian 3.0 (Woody)