How can I generate a list of packages that the specific package provides using the apt-family?
-
I don't really get your question. Do you want the list of files from a package, a list of dependencies or a list of packages depending on this package?– SpackMay 5, 2013 at 9:30
-
Can you please try and clean up your question? It's unclear to everyone here exactly what you're trying to do. Are you trying to get a list of executables and/or programs that are included in a given package?– slm ♦May 5, 2013 at 12:56
2 Answers
Use apt-cache show
to display information about available packages, or dpkg -s
to display information about installed packages.
apt-cache show PACKAGE-NAME | awk '$1 == "Provides:" {print $2}'
dpkg -s INSTALLED-PACKAGE-NAME | awk '$1 == "Provides:" {print $2}'