Check package dependencies

Use the "apt-cache depends" command to check package dependencies.

apt-cache depends libpng-dev

The above is to find out what packages "libpng-dev" depends on. The output result is as follows.

libpng-dev
  Depends: libpng16-16
  Depends: zlib1g-dev
  Conflicts: <libpng12-0-dev>
  Conflicts: <libpng12-dev>
  Conflicts: <libpng2-dev>
  Conflicts: <libpng3-dev>
  Breaks: <libpng16-dev>
  Breaks: <libpng16-devtools>
  Recommends: libpng-tools
  Replaces: <libpng16-dev>
  Replaces: <libpng16-devtools>

Associated Information