xzhu Asked: 2011-05-05 02:13:40 +0800 CST2011-05-05 02:13:40 +0800 CST 2011-05-05 02:13:40 +0800 CST How do I look up which package brought a particular command? 772 For example, there is a command "send_arp", I'm not sure which package should I uninstall if I want to remove it. package-management 2 Answers Voted Best Answer James Henstridge 2011-05-05T02:19:38+08:002011-05-05T02:19:38+08:00 You can determine the file name for a command line utility using the which command. For example, we can look up the path of the ls command: $ which ls /bin/ls With that information, you can find out which package owns the file using dpkg: $ dpkg -S /bin/ls coreutils: /bin/ls That tells us that ls is provided by the coreutils package. Rinzwind 2011-05-05T02:31:18+08:002011-05-05T02:31:18+08:00 In addition to James's post you can also do this on-line: send-arp. That way you can find not only the package but also all the dependencies (if there are any): cluster-agents
You can determine the file name for a command line utility using the
which
command. For example, we can look up the path of thels
command:With that information, you can find out which package owns the file using
dpkg
:That tells us that
ls
is provided by thecoreutils
package.In addition to James's post you can also do this on-line: send-arp. That way you can find not only the package but also all the dependencies (if there are any): cluster-agents