I usually use: tar -xzvf -C <output_dir> <file.tar.gz>
where x means extract... can't remember the rest of the args. hit tar --help to see a list of options
That won't isntall anything though, just extract it. You'll probably need to check the readme to figure out how to install