Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

This question already has an answer here:

How does one discover which command to run to install a piece of software?

For example, if I wanted to know the command to run to install VirtualBox, how do I know that I should run sudo apt-get install virtualbox-4.2, and not sudo apt-get install XYZ?

share|improve this question

marked as duplicate by Flimm, vasa1, Takkat, stephenmyall, hhlp Mar 8 '13 at 13:45

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 1 down vote accepted

When you don't want to use the search field in the Ubuntu Software Center you can search the packages via apt with this command: sudo apt-cache search virtualbox

You will get a list of found packages and now you can install it by typing the right package i.e. sudo apt-get install virtualbox-4.2

share|improve this answer

if you do not know which command check the Ubuntu software center first. because virtualbox is available on the Ubuntu software center.

or check virtual box official website click here
they are saying sudo apt-get install virtualbox-4.2

share|improve this answer

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