how to install a software from .tar.gz

how to install a software from .tar.gz

It depends.

Typically, one creates an empty directory.


cd "to the empty directory"
tar zxpf /path/to/file.tar.gz

That unpacks everything to the directory. Then one looks for a file named README in the top directory, or perhaps in a “doc” subdirectory.

Before you start, check whether the software is already available in the opensuse repos or the open build system. If it is, then installing from there is usually a better plan.

These are compressed archive files (sometimes colloquially) that need to be uncompressed first. Then, the next steps depend on what is contained there. There is generally a ‘readme’ file that will provide the necessary steps. Sometimes, the software contained within needs to be built and compiled, and typical
steps might include


./configure
make
make install

Or, it could be that an install script needs to run. It really does depend on the tarball payload. So, you should probably tell us more about what software you are trying to install. It may be that an openSUSE package already exists. Installing by .tar.gz file is usually the last resort, especially for new users.

I feel urged to add that when the sequence ./configure, make, make install (or similar) is to be done, only the last one is to be done as root!

On Fri, 16 Jan 2015 05:46:01 +0000, zainali95 wrote:

> how to install a software from .tar.gz

It depends. It would help us help you if you provided more information
about which software you’re trying to install, what version of openSUSE
you’re using, and other pertinent information.

While a lot of times this implies compiling source code (which means you
need to have development packages installed), often times there are
alternatives.

If you are asking this question, I’m pretty sure you’re not likely to
want to build something from source. You will probably find it a painful
and frustrating experience if you’re not familiar with what a .tar.gz is
or how to unpack it.

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On 2015-01-16 06:46, zainali95 wrote:
>
> how to install a software from .tar.gz

By reading its instructions :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)