. tar.gz? Open A question quite frequently on the Italian Ubuntu community forum is on how to install a. tar.gz (or even a. tar.bz2 and friends). The answer is simple: the application does not make sense.
A
. Tar.gz (or. Tar.bz2) is a collection of files stored with tar and compressed with gzip (or
in the case of bzip2. Tar.bz in other formats will change the compression), but in can be anything (pre-compiled binaries, sources to be completed by hand, program in python that can not be completed, themes for your desktop, so on and so forth) and that is why it makes no sense ask how to install it. In general you can not say anything about what should be done with a file without knowing what's inside. It's like asking "how to open a file?" Without saying what file it is.
famous example: Mozilla provides on its website Firefox and Thunderbird (and other programs) for GNU / Linux in the archives. tar.bz2 containing programs within
already completed and ready for use (something that many people seem not to understand, despite being said, is that there is no need to compile anything in this case). There is nothing to install, the two programs to start just unzip the archive (and please, if you can not (like me) to do so from a terminal, unzip through GUI, I do not understand why people kill to unzip from the command line when just two clicks) and double-click the file or
firefox thunderbird
, depending on the program.
Allora la domanda sorgente spontanea: come faccio a capire cosa me ne devo fare di questo archivio? Anche qui la risposta è semplice:
aprirlo
. Nella stragrande maggioranza dei casi è presente un file chimato
README
che contiene le istruzioni (purtroppo praticamente sempre in inglese) sul da farsi (estrarre l'archivio e compilare, oppure estrarre e fare doppio clic su un file o altro).
Nel caso in cui l'archivio contenga il sorgente di un programma da compilare è spesso presente anche un altro file chiamato
INSTALL che spiega più dettagliatamente come si compila il programma, anche se spesso sono sufficienti i "comandi magici":
./configure
make
# make install Concludendo, se avete scaricato un .tar.gz/.bz2/.lzma/ecc. e volete chiedere aiuto su un forum & Co. è sensato porre la domanda «Ho scaricato il programma
xyz
[magari fornendo anche link al sito da cui si è scaricato l'archivio], come faccio a utilizzarlo?» ma non «Ho scaricato un .tar.gz [senza fornire alcuna indicazione su quale programma si tratti...], come si installa?» perché, come mi sembra di aver già detto,
the application does not make sense.