Installing .tar.gz (Suse Linux 10)
Installing .tar.gz (Suse Linux 10)
Author
Discussion

Vodka Margarine

Original Poster:

6,636 posts

245 months

Friday 27th April 2007
quotequote all
Does anyone know how to install .tar.gz files on Suse Linux 10?

Ive tried many a time and im hopeless!

Thanks

Matt.

Globulator

13,847 posts

262 months

Friday 27th April 2007
quotequote all
Vodka Margarine said:
Does anyone know how to install .tar.gz files on Suse Linux 10?

Ive tried many a time and im hopeless!

Thanks

Matt.
It is a unix stylee 'zip' file.

Use
tar tzf file.tar.gz
to test and see what is inside

When you want to unzip it, change directory to where you want it and type
tar xzf file.tar.gz

mph999

2,780 posts

251 months

Friday 27th April 2007
quotequote all
You might need to do ....

gunzip filename.tar.gz first.

This unzipps and make it just a .tar file, then tar xvf filename.tar will split it into the individual files.

FYI a tar file is simply a single file containing multiple files, uncompressed.

Martin

ThePassenger

6,962 posts

266 months

Friday 27th April 2007
quotequote all
gunzip file123.tar.gz | tar -xvf -

Will unpack it, usually in to it's own directories.

cd <directory>

./configure
make
sudo (or su) make install

Will usually build the program and install it in the default location for you.

However (WARNING GEEK TALK AHEAD) Suse is an RPM based distro and often does not install the source packages to build stuff. You might find that ./configure throws out a metric ass tonne of errors about missing dependancies, you will have to hunt through YaST (if they are still using it) for the packages it needs, often marked 'source' or 'dev'. I found it simpler to just hunt for '<program> suse' in google as often someone, somewhere will have a Suse RPM built.

This concludes the geek talk.

Globulator

13,847 posts

262 months

Saturday 28th April 2007
quotequote all
<geek-pendant-mode-on>
The 'z' given to tar (Tape Archive) tells tar to do the gunzip/gzip itself
The normal postfix for this is however .tgz, but .tar.gz is usually the same thing

Using a 'j' instead (not supported on solaris/unix IIRC) uses bzip - a better compression in general but you give those a different extension - so people know - can't recall the convention though!
</geek-pendant-mode-on>

zumbruk

7,848 posts

291 months

Saturday 28th April 2007
quotequote all
Globulator said:
<geek-pendant-mode-on>
The 'z' given to tar (Tape Archive) tells tar to do the gunzip/gzip itself
The normal postfix for this is however .tgz, but .tar.gz is usually the same thing

Using a 'j' instead (not supported on solaris/unix IIRC) uses bzip - a better compression in general but you give those a different extension - so people know - can't recall the convention though!
</geek-pendant-mode-on>


<uber-geek-pedant-mode>
Neither the 'z' nor 'j' switches are supported in traditional Unixes, and definitely not on Solaris. Better to learn to do it the "proper" way;

gunzip wibble.tar.gz | tar xvpf -

In the same way that not all the world was a VAX, not all the world is Linux.
</>


Globulator

13,847 posts

262 months

Saturday 28th April 2007
quotequote all
zumbruk said:
Globulator said:
<geek-pendant-mode-on>
The 'z' given to tar (Tape Archive) tells tar to do the gunzip/gzip itself
The normal postfix for this is however .tgz, but .tar.gz is usually the same thing

Using a 'j' instead (not supported on solaris/unix IIRC) uses bzip - a better compression in general but you give those a different extension - so people know - can't recall the convention though!
</geek-pendant-mode-on>


<uber-geek-pedant-mode>
Neither the 'z' nor 'j' switches are supported in traditional Unixes, and definitely not on Solaris. Better to learn to do it the "proper" way;

gunzip wibble.tar.gz | tar xvpf -

In the same way that not all the world was a VAX, not all the world is Linux.
</>

<uberloitnent-geek mode>
..But he said he was using Suze Linux 10

Plus is always bugs me that Solaris is always stuck in the 80's and refuses to countenance useful flags - especially ones like '-h', for instance du -sh * or ls -lash, so I avoid it where possible..
</de-uber>

shocker-z

554 posts

249 months

Saturday 28th April 2007
quotequote all
ThePassenger said:
gunzip file123.tar.gz | tar -xvf -

Will unpack it, usually in to it's own directories.

cd <directory>

./configure
make
sudo (or su) make install

Will usually build the program and install it in the default location for you.

However (WARNING GEEK TALK AHEAD) Suse is an RPM based distro and often does not install the source packages to build stuff. You might find that ./configure throws out a metric ass tonne of errors about missing dependancies, you will have to hunt through YaST (if they are still using it) for the packages it needs, often marked 'source' or 'dev'. I found it simpler to just hunt for '<program> suse' in google as often someone, somewhere will have a Suse RPM built.

This concludes the geek talk.



and depending what your trying to install the lilkleyhood is that there may also be a config file that you need to edit first..

If you dont know how to untar a file (personaly i use tar xzfv file.tar.gz (which untars the file to the same name as the tar.gz but without the .tar.gz extention)) then goto www.rpmfind.net/ or simular and fine an RPM for the program and your distro

Just my 2 pence

Regards
Liam

ThePassenger

6,962 posts

266 months

Sunday 29th April 2007
quotequote all
shocker-z said:
and depending what your trying to install the lilkleyhood is that there may also be a config file that you need to edit first..

If you dont know how to untar a file (personaly i use tar xzfv file.tar.gz (which untars the file to the same name as the tar.gz but without the .tar.gz extention)) then goto www.rpmfind.net/ or simular and fine an RPM for the program and your distro


Config file should normally end up in /etc or /etc/<programname>/ hopefully.

Personally, my only experience of Suse was 8.0, which kinda fell apart by installing too much from source (YaST freaked out), so like you I'd head to rpmfind first rather than after.

shocker-z

554 posts

249 months

Sunday 29th April 2007
quotequote all
Yeah i prefer to install basics then install the rest asi go along.. using Mandriva but been using Debian for majority of the past 5 years.

Globulator

13,847 posts

262 months

Monday 30th April 2007
quotequote all
shocker-z said:
(personaly i use tar xzfv file.tar.gz


Or rather: tar xzvf file.tar.gz

Unix: Tiny characters and ordering matters

zumbruk

7,848 posts

291 months

Monday 30th April 2007
quotequote all
Globulator said:
zumbruk said:
Globulator said:
<geek-pendant-mode-on>
The 'z' given to tar (Tape Archive) tells tar to do the gunzip/gzip itself
The normal postfix for this is however .tgz, but .tar.gz is usually the same thing

Using a 'j' instead (not supported on solaris/unix IIRC) uses bzip - a better compression in general but you give those a different extension - so people know - can't recall the convention though!
</geek-pendant-mode-on>


<uber-geek-pedant-mode>
Neither the 'z' nor 'j' switches are supported in traditional Unixes, and definitely not on Solaris. Better to learn to do it the "proper" way;

gunzip wibble.tar.gz | tar xvpf -

In the same way that not all the world was a VAX, not all the world is Linux.
</>

<uberloitnent-geek mode>
..But he said he was using Suze Linux 10

Plus is always bugs me that Solaris is always stuck in the 80's and refuses to countenance useful flags - especially ones like '-h', for instance du -sh * or ls -lash, so I avoid it where possible..
</de-uber>


Ahem.

zumbruk{~}: du -sh
4.8G .
zumbruk{~}: uname -a
SunOS encopresis 5.10 Generic_118822-30 sun4u sparc SUNW,Ultra-60
zumbruk{~}:

'ls -lash' works, too.

Edited by zumbruk on Monday 30th April 11:31

Zod

35,295 posts

289 months

Monday 30th April 2007
quotequote all
all goes to show how consumer-friendly Linux is. laugh

mph999

2,780 posts

251 months

Monday 30th April 2007
quotequote all
Globulator said:
<geek-pendant-mode-on>
The 'z' given to tar (Tape Archive) tells tar to do the gunzip/gzip itself
The normal postfix for this is however .tgz, but .tar.gz is usually the same thing

Using a 'j' instead (not supported on solaris/unix IIRC) uses bzip - a better compression in general but you give those a different extension - so people know - can't recall the convention though!
</geek-pendant-mode-on>


Hmmm, I didn't know that (-z), I will comitt (hopefully) to memory ...

Martin

qube_TA

8,405 posts

276 months

Tuesday 1st May 2007
quotequote all
Installing software on SUSE you should be using YaST, either click the YaST icon if you're using a desktop and go into software management, click search for the software you want to install and click install, nothing else to it, if it needs anything else to get it to work it'll sort all that out for you. Otherwise type yast from the command line and do the same thing.

You don't need to hunt around for software these days unless you're still using Windows.

Don't piss about installing software from source or using tar's that's oldskool Unix/BSD and will just cause you hassle when you want to patch or upgrade anything.

Matthew

Vodka Margarine

Original Poster:

6,636 posts

245 months

Tuesday 1st May 2007
quotequote all
qube_TA said:
Installing software on SUSE you should be using YaST, either click the YaST icon if you're using a desktop and go into software management, click search for the software you want to install and click install, nothing else to it, if it needs anything else to get it to work it'll sort all that out for you. Otherwise type yast from the command line and do the same thing.

You don't need to hunt around for software these days unless you're still using Windows.

Don't piss about installing software from source or using tar's that's oldskool Unix/BSD and will just cause you hassle when you want to patch or upgrade anything.

Matthew



Will try that when I get home, Thought YAST only did .RPM

Thanks to everyone for the help, just trying to get SUSE to play DVD's.

Oh and just a quick question to settle an argument, are there viruses for Suse?

ThePassenger

6,962 posts

266 months

Tuesday 1st May 2007
quotequote all
Vodka Margarine said:
Will try that when I get home, Thought YAST only did .RPM

It does. What you're looking for is libdvdcss2 (usually).


Vodka Margarine said:
Thanks to everyone for the help, just trying to get SUSE to play DVD's.

http://en.opensuse.org/Installing_SuS
The section on multimedia.


Vodka Margarine said:
Oh and just a quick question to settle an argument, are there viruses for Suse?

Linux has no viruses in the wild.


[/quote]