Question

In linux, how can I view all the new executables added to /usr/bin after installing a package through sudo apt-get install <package>?

In my case specifically, I'm trying to find out which is the main executable to use for the texlive package.

I've tried dpkg -L texlive but that only lists files under /usr/share and not /usr/bin

Was it helpful?

Solution

This command shows all executable files installed by given package:

dpkg -L packagename | xargs file | grep executable

If you want to only see executables installed in /usr/bin, use:

dpkg -L packagename | xargs file | grep ^/usr/bin | grep executable

If your package does not list anything under /usr/bin, it is possible that it does not have any executables - this is typical for libraries and other helper packages.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top