Are you ready to embark on the journey of installing a Linux program from a TGZ file? Unveil the secrets of this compressed archive format with ease. In this exclusive tutorial, discover how to compile and install programs effortlessly on Ubuntu, Debian, Kali, and beyond, straight from a TGZ file.
Quick Steps
Navigate to the directory containing your TGZ file.

Unlock the pathway with simplicity by accessing your TGZ file through your file manager. Simply right-click in the folder containing the TGZ file, and select Open in Terminal.
- Alternatively, employ the cd command within a Terminal window to reach the directory. For example, if your TGZ file rests on the Desktop, execute cd Desktop to navigate there.
- While installing software from a TGZ archive is within your grasp, consider the swiftness and convenience of package manager installations.
Unleash the Contents of the TGZ Archive.

Execute the command tar -xzvf filename.tgz. Replace
filename with the name of your file. This action liberates the files from the TGZ archive into the present directory.
- Issue ls -a to inspect the contents of the directory. A new directory housing the extracted files should now be visible.
- Occasionally, tar files may adopt a non-gzip format, and employing these arguments for extraction might lead to an error. In such instances, employ the command tar xf filename.tar.
Access the Newly Formed Directory.

Utilize cd to penetrate the fresh directory. For instance, if you've unpacked a file named program.tgz and now find yourself amidst a directory christened program within the current directory, employ cd program to navigate into the program directory.
Examine the README or INSTALL File.

Discover the Guiding Light: README or INSTALL. Unveil the treasure trove of specific instructions nestled within this illuminating document. Delve into its contents to uncover installation requirements and peculiarities. There are several paths to enlightenment:
- To absorb the entirety of wisdom at once, employ cat README.
- If the tome spans several pages, traverse its wisdom one page at a time with more README. Simply navigate through the pages using the down arrow or spacebar.
- If the README or INSTALL beckons you to amend a specific file, wield the power of nano or vim to enact these changes.
Initiate the configure Ritual.

Embark on a Quest for the Fabled configure Manuscript within the New Realm. Should this mystical manuscript reveal itself, invoke the sacred ./configure incantation. This ritual tailors the software to your unique machine and crafts a Makefile imbued with magical properties.
- If the configure script laments a missing ingredient, seek out these elusive dependencies before your endeavor can proceed. Harness the power of Synaptic, apt-get, or dpkg to summon these missing fragments.
- If the elusive configure manuscript remains hidden, consult the README or INSTALL for alternative incantations. You may need to awaken a script bearing a different name, such as install.sh. Before invoking this script, imbue it with life using chmod u+x install.sh. Then, awaken its power by uttering ./install.sh.
Forge the Program.

Invoke the make Enchantment. Channel the essence of creation encoded within the sacred Makefile to bring the program into being. Once the forging is complete, you shall return to the realm of the prompt, wielding a newly minted program.
Deploy the Compiled Program.

Evoke sudo make install and input your passphrase. Upon authentication, the compiled program shall be bestowed upon your system.
- If the command line echoes 'command not found'