Options (5)
-I, --infobooleanDisplay information about a package
Example:
dpkg-deb {{[-I|--info]}} {{path/to/file.deb}}-W, --showbooleanDisplay the package's name and version on one line
Example:
dpkg-deb {{[-W|--show]}} {{path/to/file.deb}}-c, --contentsbooleanList the package's contents
Example:
dpkg-deb {{[-c|--contents]}} {{path/to/file.deb}}-x, --extractbooleanExtract package's contents into a directory
Example:
dpkg-deb {{[-x|--extract]}} {{path/to/file.deb}} {{path/to/directory}}-b, --buildbooleanCreate a package from a specified directory
Example:
dpkg-deb {{[-b|--build]}} {{path/to/directory}}Examples (5)
Display information about a package
dpkg-deb [-I|--info] path/to/file.debDisplay the package's name and version on one line
dpkg-deb [-W|--show] path/to/file.debList the package's contents
dpkg-deb [-c|--contents] path/to/file.debExtract package's contents into a directory
dpkg-deb [-x|--extract] path/to/file.deb path/to/directoryCreate a package from a specified directory
dpkg-deb [-b|--build] path/to/directorymade by @shridhargupta | data from tldr-pages