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 |
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! |
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 |
.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.
|
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. |
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.
|
.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. |
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.
|
Quote:
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.;) |
Sorry, I mis-understood. Also, your correct, sometimes the .tgz are binaries, especially if they were downloaded from a slackware mirror.
|
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 |
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 |
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 |
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. |
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 # |
All times are GMT -5. The time now is 10:51 AM. |