license info of a deb package
问题 I am trying to get license information of uninstalled deb packages. dpkg --info <package-name>.deb does not give that information. Is there any command in ubuntu which will give this info? (In rpm world rpm -qpi gives that info) 回答1: There's no simple command that I know of. You can do something like this: dpkg-deb --fsys-tarfile foo.deb |tar -xvO ./usr/share/doc/foo/copyright This prints the file to standard output. Edit Hmm, that sounds hard. After a quick perusal of the apt cache on my