Command line to install virtual box and ext pack

Please can you provide me with up to date command line to install virtualbox and ext pack as documentation for this is out of date, many thanks

Hi. What part of the virtualbox documentation is not up to date? So I will fix it ASAP. Even if the reported version is not updated, the commands and the procedure remain the same.

Okay, oh as I recall I had to install virtual box via dkpg or git clone I can’t remember how but it didn’t work via command line, it think it said no istallation candidate or packakage known by other name

Thae ext package was similar, I think the package name has changed so couldn’t install like that, used trusty girlt hub