Monday, April 29, 2024
186
rated 0 times [  186] [ 0]  / answers: 1 / hits: 525480  / 2 Years ago, sat, december 4, 2021, 8:24:34

I am a newbie. For some reasons, I need to install Virtualbox. I see that I can easily install it using the Software Center, but I trust most the apt-get install way, because I find it safer, less buggy, and it helps me accommodate more with the Terminal.



So, my question is the following: is there a way to install VirtualBox using the command line? I would prefer something easy, like apt-get install not unzipping, archiving, etc, because I still don't know how to do these in the Terminal.


More From » command-line

 Answers
7

Open a terminal and execute:



sudo apt-get install virtualbox 


which should work.



Once you have installed it you probably want to install guest additions in the guest OS.



Also you probably want the extension pack which you can get from here:



https://www.virtualbox.org/wiki/Downloads



Make sure you get the correct version.



As of Xenial 16.04, you can also get the extension pack from the Canonical repositories. Go to the terminal and execute:



sudo apt install virtualbox-ext-pack 


Therefore, as of Xenial 16.04, you should be able to get virtualbox and the extension pack by typing the following:



sudo apt install virtualbox virtualbox-ext-pack 


Following the instructions on your screen.



To install the user interface to manage your virtual boxes use this command



sudo apt install virtualbox-qt

[#28691] Sunday, December 5, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
dicatandyca

Total Points: 486
Total Questions: 108
Total Answers: 121

Location: Greenland
Member since Wed, Jan 18, 2023
1 Year ago
;