Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List of executables installed from package

Tags:

linux

ubuntu

apt

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

like image 312
Omar Darwish Avatar asked Sep 21 '13 20:09

Omar Darwish


1 Answers

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.

like image 123
mvp Avatar answered Sep 22 '22 01:09

mvp