Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

For example, there is a command "send_arp", I'm not sure which package should I uninstall if I want to remove it.

share|improve this question
add comment

2 Answers 2

up vote 8 down vote accepted

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.

share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.