Well, there is no single command. However, this is typically the sequence:
tar xvjf packagename-version.tar.bz2
The first command might need to be tar xvzf packagename-version.tar.gz
depending on how the tarball was compressed.
Also read the README and INSTALL files if present
. They will provide instructions on how to compile the software. The steps I gave are generic. They'll work most of the time, but not 100% of the time.
Finally, the make install
command will need to be executed as root so the install routine will have permission to copy files into system directories.