---
name: "dpkg.rb"
section: "1"
platform: "linux"
package: "dpkg-ruby"
version: "0.3.1"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/dpkg.rb"
---

# dpkg.rb(1)

Utility to read a dpkg style db file, dpkg like program

## NAME

dpkg.rb - Utility to read a dpkg style db file, dpkg like program

## SYNOPSIS

**dpkg.rb** \[**(-l\|--list)** \[*package* ...\]\] \
 **dpkg.rb** \[**(-s\|--status)** \[*package* ...\]\]\
 **dpkg.rb** \[**--get-selections** \[*package* ...\]\]\
 **dpkg.rb** \[**--print-avail** \[*package* ...\]\]\
 **dpkg.rb** \[**(-L\|--listfiles)** \[*package* ...\]\]\
 **dpkg.rb** \[**(-S\|--search)** \[*pattern* ...\]\]\
 **dpkg.rb** \[**--help**\]\

## DESCRIPTION

*dpkg.rb* parses a dpkg status file(or other simularly formated file) and outputs the resulting records like  *[dpkg(1)](/dpkg/1.md).*

## OPTIONS

- **-l** *\[package...\]*

  - **--list** *\[package...\]*

  List *package*s.

- **-s** *\[package...\]*

  - **--status** *\[package...\]*

  show status of *package*s.

- **--get-selections** *\[package...\]*

  get selections of *package*s.

- **--print-avail** *\[package...\]*

  print available of *package*s.

- **-L** *\[package...\]*

  - **--listfiles** *\[package...\]*

  list files in *package*s.

- **-S** *\[pattern...\]*

  - **--search** *\[pattern...\]*

  search package containing files matched *pattern*s.

- **-h**

  - **--help**

  Display some help.

## BUGS

Be warned that the author has only a shallow understanding of the  dpkg packaging system, so there are probably tons of bugs in this program.

This program comes with no warranties.  If running this program causes fire and brimstone to rain down upon the earth, you will be on our own.

This program accesses the dpkg database directly in places, querying  for data that cannot be gotten via dpkg.

## AUTHOR

Fumitoshi UKAI \<ukai@debian.or.jp\>.
