[SOLVED] Simple guide to installing applications from tarball files
Welcome, Guest.
“Theory and practice sometimes clash. And when that happens, theory loses. Every single time.” ― Linus Torvalds

Author Topic: [SOLVED] Simple guide to installing applications from tarball files  (Read 4105 times)

Offline Wolflint

  • Newbie
  • **
  • Posts: 13
  • Wolflint
I've been using Linux for a year now and I often find applications in tarball files, I'd like to learn to install them but I can never find a guide that explains the process well.

If you know of a good guide could you please post a link, thank you.
« Last Edit: July 17, 2014, 04:58:14 PM by Wolflint »

Offline Will

  • Spatry's Tardis Operator
  • Contributor
  • *******
  • Posts: 498
  • Chronic Distro Hopper
Re: Simple guide to installing applications from tarball files
« Reply #1 on: July 04, 2014, 08:57:09 AM »
There is no official way to install tarballs. Well, I say that, when I'm using a distro that uses tar.gz files as binaries... If you could please tell us what you are trying to install that would help very much.
Ryzen 7 2700x, 32GB(3600MHz), 500GB 850 EVO, Sapphire Nitro+ RX 580 + EVGA Geforce GTX 1080 | Gentoo

Offline Wolflint

  • Newbie
  • **
  • Posts: 13
  • Wolflint
Re: Simple guide to installing applications from tarball files
« Reply #2 on: July 04, 2014, 12:50:40 PM »
I'm not installing any at the moment but I thought there were specific commands that you have to use for tarballs.

Offline Will

  • Spatry's Tardis Operator
  • Contributor
  • *******
  • Posts: 498
  • Chronic Distro Hopper
Re: Simple guide to installing applications from tarball files
« Reply #3 on: July 04, 2014, 04:25:26 PM »
Well, not specific, but each developer packages them to their own.
Ryzen 7 2700x, 32GB(3600MHz), 500GB 850 EVO, Sapphire Nitro+ RX 580 + EVGA Geforce GTX 1080 | Gentoo

Offline lcRONOS

  • I will run all the Operating Systems!
  • Staff Member
  • ********
  • Posts: 751
Re: Simple guide to installing applications from tarball files
« Reply #4 on: July 08, 2014, 06:57:26 PM »
When you extract a .tar.gz it should include a read me with the proper steps as well as necessary dependencies.  Generally it'll some be commands along the lines of
Code: [Select]
/.config
make && make install
as root. However it varies based on the tools used to make it, if it was built with cmake, it's a little different (can't remember off the top of my head). Remember that .tar.gz is just an archiving format like .tar.bz2, or .zip so it's really just a package's source code in a small package.
Laptop: HP Pavilion 15t, quadboot Obarun Linux, macOS 10.13, TrueOS, Windows 10
Desktop: Dell Inspiron 660, dualboot Artix Linux,Windows 1

Offline Spatry

  • Benevolent Dictator
  • Administrator - Sysop
  • **********
  • Posts: 5600
  • Cup of Linux Founder
    • Cup of Linux
Re: Simple guide to installing applications from tarball files
« Reply #5 on: July 08, 2014, 07:31:31 PM »
Actually I would not compile as root. As your regular user you can navigate to the folder where you extract the files then run the following:
Code: [Select]
./configure
make
if no errors occurred during the build you can run
Code: [Select]
sudo make installIf errors DID occur while building then you may not have the necessary dependencies to build from source so always be certain to READ the instructions which come with the package. You may find a README or INSTALL file which should tell you what you will need to successfully build the package.
Windows assumes the user is an idiot... Linux DEMANDS Proof!

Offline lcRONOS

  • I will run all the Operating Systems!
  • Staff Member
  • ********
  • Posts: 751
Re: Simple guide to installing applications from tarball files
« Reply #6 on: July 10, 2014, 07:26:14 PM »
 Lol I forgot make didn't need root privileges. The only thing I've compiled manually has been the kernel in the past few months, where root is needed for every thing. Thanks for the correction Spatry.
Laptop: HP Pavilion 15t, quadboot Obarun Linux, macOS 10.13, TrueOS, Windows 10
Desktop: Dell Inspiron 660, dualboot Artix Linux,Windows 1

Offline Wolflint

  • Newbie
  • **
  • Posts: 13
  • Wolflint
Re: Simple guide to installing applications from tarball files
« Reply #7 on: July 17, 2014, 04:57:56 PM »
Thank you for the help, I think I will be able to install tarballs now :)

Offline mikhail21393

  • Newbie
  • **
  • Posts: 48
Re: [SOLVED] Simple guide to installing applications from tarball files
« Reply #8 on: February 20, 2015, 10:40:10 AM »
If you want to uninstall a program just simply navigate in your source directory by typing:
Code: [Select]
sudo make uninstall
And if you want to remove generated/compiled files to recompile again and start fresh (optional) you will do this by typing again:  
Code: [Select]
sudo make clean
:)