LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-27-2004, 03:57 PM   #1
samuelmp
Member
 
Registered: Feb 2004
Location: england
Distribution: mepis 3-4-3 [join us]
Posts: 154

Rep: Reputation: 30
how do I install an tgz file


hi there

I have used Linux for 4 months. but have never used the comand line to
Install software. I have used RPMs I am using Suse 9.1 personal

how can I install this file empe-2-1-1.tgz

I have trid to find out but an confised
 
Old 10-27-2004, 04:52 PM   #2
Gort32
Member
 
Registered: Sep 2004
Distribution: Slack!
Posts: 150

Rep: Reputation: 15
a tgz file (which is the same as a tar.gz file) is a gzipped tarball. From a Windows perspective, imagine you took a bunch of files and made them into an uncompressed zip file - this would be a tarball. Then, compress that zip file - that's a gzipped darball.

So what you need to do in "unzip" the file. There are several GUI utilities for this, but if you want to do it from a bash prompt the command would be
tar zxvf filename.tar.gz
z = zip/unzip
x = extract
v = verbose (so you can see all of the files flash across the screen)
f = filename (must be the last argument, followed by the name of the file).

That should untar the file. Typically, the files will unpack into a directory of the same name.

I'm going to assume that this package is a source package - ie, it is an app that you need to compile/install. cd to the newly-created directory, then run
./configure
make

then, as root (you can use su to "become" root)
make install

That should install most packages!
 
Old 10-28-2004, 09:57 AM   #3
samuelmp
Member
 
Registered: Feb 2004
Location: england
Distribution: mepis 3-4-3 [join us]
Posts: 154

Original Poster
Rep: Reputation: 30
can not unpack

hi there I get this from the Konsole, I would not unpack the file so I tride a nother file.

Password:
linux:/home/samuelmp # tar zxvf empe-2-1-1.tgz
tar: empe-2-1-1.tgz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
linux:/home/samuelmp # tar zxvf empe-2-1-1.tgz
tar: empe-2-1-1.tgz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
linux:/home/samuelmp # tar zxvf acm-5.0.tar.gz
tar: acm-5.0.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
linux:/home/samuelmp #


and what does cd mean why do that. thanks for your help
 
Old 10-28-2004, 02:42 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
.tgz files can also be Slackware packages, in which case I'm not sure tar understands them. In your case I would do two things. First, make sure that you are in the same directory with the .tgz file when you use tar and second, make sure that you didn't have a bad download.
 
Old 10-28-2004, 03:30 PM   #5
cyberliche
Member
 
Registered: Aug 2004
Location: Atlanta
Distribution: Slackware 10
Posts: 85

Rep: Reputation: 15
Even if it is a Slackware package you should still be able to uncompress and install it as you would any source. The only thing that makes it a Slackware package are the instructions in doinst.sh (if any) and the slack-desc file used for populating the package manager.

I suspect that you have a corrupted file. Re-download, or download from another source and try again.
 
Old 10-28-2004, 05:43 PM   #6
MattOlz
LQ Newbie
 
Registered: Nov 2003
Distribution: Slackware
Posts: 19

Rep: Reputation: 0
Give the ls command, which will list all the files in a folder. If you dont see that file, then you are in the wrong folder and you will need to cd [FolderName] to where the file is located.
 
Old 10-28-2004, 06:06 PM   #7
black hole sun
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 127

Rep: Reputation: 15
.tgz is a slackware package, very similar to .rpm in what it does, but it's pretty useless to you unless you're using slackare.

You can try an extract it with this command, in the dir the file is in;


tar -xvzf empe* -C /

That will extract the file and install it for you.

Note the little * sign? Well it's a shortcut I use alot; * is the wildcard character, meaning the terminal will attempt to extract the first file it finds that has a name beginning with empe.

Also note the -C / - this tells the command line to extract it to where the files are supposed to be on your / drive.


Last edited by black hole sun; 10-28-2004 at 06:09 PM.
 
Old 10-28-2004, 06:23 PM   #8
cyberliche
Member
 
Registered: Aug 2004
Location: Atlanta
Distribution: Slackware 10
Posts: 85

Rep: Reputation: 15
Actually Black Hole Sun, despite the fact that it's a "slackware package" all it is is a compressed tar of the software's source. The ONLY thing that makes it diffrent from a .tar.gz file (aside from the name) is that it has instructions that the slackware package manager reads to install it. If you uncompress the .tgz file you can ./configure && make && make install it like any other source, under any distro, so in fact, it's not useless.
 
Old 10-28-2004, 06:26 PM   #9
black hole sun
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 127

Rep: Reputation: 15
Quote:
Originally posted by cyberliche
Actually Black Hole Sun, despite the fact that it's a "slackware package" all it is is a compressed tar of the software's source. The ONLY thing that makes it diffrent from a .tar.gz file (aside from the name) is that it has instructions that the slackware package manager reads to install it. If you uncompress the .tgz file you can ./configure && make && make install it like any other source, under any distro, so in fact, it's not useless.
Couple things;

Almost always, .tgz are binaries, meaning there is no making invovled. I'm thinking he got it off a slackawre mirror and if that's the case then it's probaby a binary. Of course, I could be wrong, the poster should probably extract it to the current directory to view its contents and get a better look.

Secondly I didn't say it was useless, I meant that it's install function was useless to those not running slackware. If it was useless to him then I wouldn't have told the extraction command.
 
Old 10-28-2004, 06:41 PM   #10
cyberliche
Member
 
Registered: Aug 2004
Location: Atlanta
Distribution: Slackware 10
Posts: 85

Rep: Reputation: 15
Sorry, I mis-understood. Also, your correct, sometimes the .tgz are binaries, especially if they were downloaded from a slackware mirror.
 
Old 10-29-2004, 11:07 AM   #11
samuelmp
Member
 
Registered: Feb 2004
Location: england
Distribution: mepis 3-4-3 [join us]
Posts: 154

Original Poster
Rep: Reputation: 30
o.k

o.k I an going to use another file [game] I got that file from tuxcows but I will leave that one

so I an going to use another file its called

tar zxvf empe-2-1-1.tgz

what should do with this in the terminal or should I get another file

what is The diffrence between an RPM and SRPM

thank's for your help

Last edited by samuelmp; 10-29-2004 at 11:11 AM.
 
Old 10-29-2004, 12:32 PM   #12
samuelmp
Member
 
Registered: Feb 2004
Location: england
Distribution: mepis 3-4-3 [join us]
Posts: 154

Original Poster
Rep: Reputation: 30
got a good file

Hi guys I got a new file how do I install this with the terminal


file:/home/samuelmp/bin/scalar-1.02-i386.tar.bz2

scalar-1.02-i386.tar.bz2
 
Old 10-29-2004, 12:52 PM   #13
RockmanExe
Member
 
Registered: Aug 2003
Distribution: Mandriva, Slackware
Posts: 265

Rep: Reputation: 30
With something like this:

cd /home/samuelmp/bin/

tar xvfj scalar-1.02-i386.tar.bz2

cd scalar-1.02-i386

./configure
make
make install

Regards
 
Old 10-29-2004, 01:02 PM   #14
RHLinuxGUY
Member
 
Registered: Oct 2003
Distribution: Ubuntu 7.04
Posts: 889
Blog Entries: 1

Rep: Reputation: 30
Did you guys not read his reply? He asked what "cd" does. Open up the file manager you have, and find the file you downloaded, where is it? Is it in /home/you/Downloads/ or somewhere else? If so, open up a command line and type this...

$ cd Downloads or whatever the name of the file that the download is located.

Now when in ther type this...

$ tar zxvf "enter the first few letters of the file, and press tab, itll finish it"

now most of the time, itll create a sub directory in the same folder, to see this, type "ls" on the command line to the see the directorys. You'll see a new file that is named similar to the package you uncompressed, or different. Im assuming you dont have a lot of files on your computer, so it should be easy spotting a new directory. When spotted in command line (or file browser) type

cd "first few letters of the file, and press tab" then press enter

In there type "ls" to view the contents of the directory. If you see "autogen.sh" "configure" and/or "make.something" then your in the right place. If its just a couple files, plz reply back, because Im just trying to show you how to compile a program from source not run an executable.
Now, in that directory, if there is one,(dont worry if this command doesnt work, most sources dont have it) type

$ ./autogen.sh (or just the few letters and press tab to finish it)

Then when its done, type this...

$ ./configure

After that type

$ make

Then you'll need to get into root. So...

$ su
Password: <<< your root password here, you should know it, unless this isnt your computer, then you shoudnt be compiling programs at all on it.

# make install

Then type exit when its done.

After it is done, type the name of the program you installed, or if you dont know, type the first letter or so of the programs name, and press tab a couple of times to show you the available programs starting with those letters. When you find the program you want to run, type it in the terminal, and press enter.

This should do it. O and I have slackware, and you CAN uncompress and compile .tgz files.

Last edited by RHLinuxGUY; 10-29-2004 at 01:07 PM.
 
Old 10-29-2004, 01:46 PM   #15
samuelmp
Member
 
Registered: Feb 2004
Location: england
Distribution: mepis 3-4-3 [join us]
Posts: 154

Original Poster
Rep: Reputation: 30
nearly there

hi guys I get this out of the terminal

Password:
linux:/home/samuelmp # cd /home/samuelmp/bin/
linux:/home/samuelmp/bin # tar xvfj scalar-1.02-i386.tar.bz2
scalar-1.02-i386/
scalar-1.02-i386/data/
scalar-1.02-i386/data/font-blue.bmp
scalar-1.02-i386/data/font-uni.bmp
scalar-1.02-i386/data/scalaricon.bmp
scalar-1.02-i386/data/small.png
scalar-1.02-i386/data/back.png
scalar-1.02-i386/data/moondan.mod
scalar-1.02-i386/data/toolbar.bmp
scalar-1.02-i386/data/logo.png
scalar-1.02-i386/images/
scalar-1.02-i386/images/zoo.jpg
scalar-1.02-i386/images/head.jpg
scalar-1.02-i386/images/darksky.jpg
scalar-1.02-i386/images/boy.jpg
scalar-1.02-i386/images/building.jpg
scalar-1.02-i386/images/church.jpg
scalar-1.02-i386/images/cof.jpg
scalar-1.02-i386/images/crash.jpg
scalar-1.02-i386/images/double.jpg
scalar-1.02-i386/images/ducks.jpg
scalar-1.02-i386/images/elefant.jpg
scalar-1.02-i386/images/elemental.jpg
scalar-1.02-i386/images/fountain.jpg
scalar-1.02-i386/images/gate.jpg
scalar-1.02-i386/images/grafit.jpg
scalar-1.02-i386/images/grafitti.jpg
scalar-1.02-i386/images/huge.jpg
scalar-1.02-i386/images/ingh.jpg
scalar-1.02-i386/images/lake.jpg
scalar-1.02-i386/images/lakensky.jpg
scalar-1.02-i386/images/lisca.jpg
scalar-1.02-i386/images/monkeys.jpg
scalar-1.02-i386/images/roof.jpg
scalar-1.02-i386/images/roofruin.jpg
scalar-1.02-i386/images/seagulls.jpg
scalar-1.02-i386/images/sgc.jpg
scalar-1.02-i386/images/sgc2.jpg
scalar-1.02-i386/images/sign.jpg
scalar-1.02-i386/images/snow.jpg
scalar-1.02-i386/images/snow2.jpg
scalar-1.02-i386/images/snow3.jpg
scalar-1.02-i386/images/snow4.jpg
scalar-1.02-i386/images/builder.jpg
scalar-1.02-i386/images/cards.jpg
scalar-1.02-i386/images/cart.jpg
scalar-1.02-i386/images/dogs.jpg
scalar-1.02-i386/images/flower.jpg
scalar-1.02-i386/images/horse.jpg
scalar-1.02-i386/images/novisad.jpg
scalar-1.02-i386/images/silo.jpg
scalar-1.02-i386/images/statue.jpg
scalar-1.02-i386/images/tree.jpg
scalar-1.02-i386/images/yugo.jpg
scalar-1.02-i386/COPYING
scalar-1.02-i386/INSTALL
scalar-1.02-i386/README
scalar-1.02-i386/scalar
linux:/home/samuelmp/bin # cd scalar-1.02-i386
linux:/home/samuelmp/bin/scalar-1.02-i386 # ./configure
bash: ./configure: No such file or directory
linux:/home/samuelmp/bin/scalar-1.02-i386 # make
bash: make: command not found
linux:/home/samuelmp/bin/scalar-1.02-i386 # make install
bash: make: command not found
linux:/home/samuelmp/bin/scalar-1.02-i386 # ./autogen.sh
bash: ./autogen.sh: No such file or directory
linux:/home/samuelmp/bin/scalar-1.02-i386 # ./autogen.sh
bash: ./autogen.sh: No such file or directory
linux:/home/samuelmp/bin/scalar-1.02-i386 # ./configure
bash: ./configure: No such file or directory
linux:/home/samuelmp/bin/scalar-1.02-i386 #




./configure does not work


linux:/home/samuelmp/bin/scalar-1.02-i386 # ls
. .. COPYING data images INSTALL README scalar
linux:/home/samuelmp/bin/scalar-1.02-i386 # ./configure
bash: ./configure: No such file or directory
linux:/home/samuelmp/bin/scalar-1.02-i386 # scalar./configure
bash: scalar./configure: No such file or directory
linux:/home/samuelmp/bin/scalar-1.02-i386 # scalar
bash: scalar: command not found
linux:/home/samuelmp/bin/scalar-1.02-i386 #

Last edited by samuelmp; 10-29-2004 at 01:50 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cedega install trouble on slackware 10 from tgz file AM1SHFURN1TURE Linux - Games 3 10-02-2004 09:54 AM
tgz file doesn't end in .tgz? detpenguin Slackware 4 05-15-2004 08:13 PM
how do i install a .tgz file? keegan Linux - Newbie 6 01-09-2004 03:35 PM
how to install a *.tgz file on Mandrake 9.1 lxandrthegr8 Linux - Software 9 08-22-2003 02:26 AM
X Sever crash after xset.tgz & vg16.tgz install lachlan Slackware 0 08-13-2003 03:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration