This command can only list contents of installed packages,
dpkg -L PACKAGENAME
but how to list contents of a non-installed package, to preview/examine the package?
dpkg -c acts as a front-end to dpkg-deb. As such, it works directly with package archives (.deb files).
To work directly with package names rather than package files you can use apt-file.
This works for installed and not installed packages.
apt-file package needs to be installed to use the command.
When used in this manner,
You can also use an archive browser to view the package contents.
The package will get downloaded to