Managing Local Debian Packages

The dpkg tool manipulates packages on your system and can process the .deb packages you may download. If you have a package on your system, you can find out what’s inside it with the --info option as shown in Example 3-1.

Example 3-1 Finding Out What’s Inside a .deb File

# dpkg --info acct_6.5.5-1_amd64.deb new debian package, version 2.0. size 120424 bytes: control archive=1899 bytes.      79 bytes,     4 lines      conffiles     746 bytes,    18 lines      control    1766 bytes,    27 lines      md5sums     507 bytes,    30 lines   *  postinst             #!/bin/sh     370 bytes,    26 lines   *  postrm               #!/bin/sh     163 bytes,     7 lines   *  prerm                #!/bin/sh ...

Get CompTIA® Linux+ / LPIC-1 Cert Guide: (Exams LX0-103 & LX0-104/101-400 & 102-400) now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.