Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just downloaded the w3c-markup-validator package from the universe repositories, but I can't seem to figure out how to run it. How can I list the new commands available?

share|improve this question

migrated from stackoverflow.com Dec 21 '10 at 2:49

This question came from our site for professional and enthusiast programmers.

    
I don't have privs to retag yet, but can you add Aptitude please? – richo Dec 21 '10 at 2:58

dpkg -L w3c-markup-validator lists all the files in the package. You want the executables in the path, so

dpkg -L w3c-markup-validator | grep /bin/

will provide a good approximation. If you want to be really precise, here's a regexp that will retain only files in the directories in your $PATH.

dpkg -L bash | grep -E "^${PATH//:/\/|^}\$"
share|improve this answer
dpkg -L w3c-markup-validator

More generically, dpkg -L [packagename]

share|improve this answer

If you want to find out beforehand you can search at packages.ubuntu.com as well.

share|improve this answer

If you use synaptic, then you can right click on the package, click properties and see installed files. Any files installed under /usr/bin or similar locations would be commands.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .