This is not a duplicate of listing all files a package provides, i want to list all binaries a certain package provides that are in the standard location for binaries.
I know this can be done with some text processing tool along with dpkg -L
but i am not very good at those. Please suggest something.
Best Answer
You can do:
dpkg -L
lists all the files provided by a packagegrep -E '/s?bin/'
searches for files that have/bin/
or/sbin/
in their namesThis will show all binaries in the standard locations e.g.
/usr/bin/
,/bin/
,/usr/sbin/
,/usr/bin/
or any other location that has/bin/
in the path.Example:
Or with
sed
:Or with
awk
: