apt

List all installed packages

apt list --installed

List files installed by a package

dpkg -L $packagename