LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-19-2005, 11:41 PM   #1
shadow_wolf_666
LQ Newbie
 
Registered: Nov 2005
Posts: 1

Rep: Reputation: 0
tar.gz


hey all would like to get some help tar.gz I have learned to uncopress them just cant figure out the install.AQny help would be appericated
 
Old 11-20-2005, 12:10 AM   #2
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,091

Rep: Reputation: 45
usually it's:

tar -xzvf <packagename>.tar.gz
cd <packagename>
./configure
make
su
<root password>
make install
 
Old 11-20-2005, 01:19 AM   #3
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 1,923

Rep: Reputation: 278Reputation: 278Reputation: 278
Here is a shell script to extract archives. You just copy and paste it into a text editor, and save it as text. I call it extract. You have to do:

chmod a+x extract

To make it executable

and

cp extract /bin

To put it in your path

Then, when you have a .tar.gz ; .tar.bz2 ; .gz ; .bz2 ; .tgz ; .zip ; or .rar file all you need to do is type <extract file>

and the file will uncompress.

#!/bin/bash ##extract file line 1
##to extract many different archive types
if
echo "$1" | grep '.tar.gz'
then
tar zxvf "$1"
exit 0
fi
if
echo "$1" | grep '.tar.bz2'
then
tar jxvf "$1"
exit 0
fi
if
echo "$1" | grep '.gz'
then
gunzip "$1"
exit 0
fi
if
echo "$1" | grep 'bz2'
then
bunzip2 "$1"
exit 0
fi
if
echo "$1" | grep '.tgz'
then
tar zxvf "$1"
exit 0
fi
if
echo "$1" | grep '.rar'
then
unrar x "$1"
exit 0
fi
if
echo "$1" | grep '.zip'
then
unzip "$1"
exit 0
fi
echo "There is no suitable extractor for $1"
exit 1
 
Old 11-20-2005, 01:23 AM   #4
koyi
Member
 
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421

Rep: Reputation: 31
After extracting the files, look into the folder for a file named "INSTALL" or "README". Read through them and you should know what to do.

If you let us know the softwares you are trying to install together with the distribution you are using, we may be able to provide more precise answers.

Good luck.
 
  


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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 03:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 11:55 AM
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 12:02 PM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 01:08 PM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 07:30 AM


All times are GMT -5. The time now is 02:09 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration