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.

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
add comment

marked as duplicate by Flimm, vasa1, Takkat, Stephen Myall, 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.

2 Answers

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
add comment

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
add comment

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