Skip to content

Instantly share code, notes, and snippets.

@igricart
Last active November 19, 2020 09:47
Show Gist options
  • Save igricart/64d3119ee9a0fcc5f6025b832fbf06a4 to your computer and use it in GitHub Desktop.
Save igricart/64d3119ee9a0fcc5f6025b832fbf06a4 to your computer and use it in GitHub Desktop.
Cheat sheet for deb packages

Simple Cheat Sheet

This gist is menat to help find some information and handle errors with packages using either dpkg or apt

To use it, change <package> for your package name

Getting install tree from package

$ dpkg -c <package>

# or

$ dpkg -L <package>

Conflicting packages

$ dpkg -P <package>

Error message

dpkg: error processing archive /tmp/paho-mqtt-cpp_0.1.1-1_arm64.deb (--unpack): trying to overwrite '/usr/local/bin/async_consume', which is also in package libpaho-mqtt-cpp 1.3.6-1 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Errors were encountered while processing: /tmp/paho-mqtt-cpp_0.1.1-1_arm64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

Checking if is installed in the system

$ dpkg -l *mqtt*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment