Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-21-2005, 05:31 PM   #1
LQ Newbie
Registered: Aug 2005
Posts: 9

Rep: Reputation: 0
Need some help w/ unpacking a tar.gz & directory stuff

How do I extract files from a tar.gz in /mnt to the directory (/atmel) I want to extract them to? The documentation for the driver I'm trying to install says "tar xzvf ATMEL_linux_drivers.tgz" but I'm unsure of how I work my directories into the string.

Now, after that is done, how do I go to the directory to run the driver installer while typing in the installation string?

Old 10-21-2005, 06:00 PM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
The /atmel directory is on the root partition. This may not be the best idea. It would be better to extract the tarball to a directory in your home directory, where you have write access. The package will probably produce its own directory, so you could for example cd to to where you want this directory located (e.g. cd ~/downloads ) and then run the tar command:
tar xvzf /mnt/ATMEL_linux_drivers.tgz

The tarball should be extracted then to your current working directory. There is also a tar option to set the target directory. Actually I think that the name of the option is: --target-directory, but please check the tar man page to be sure.

As to the other part of the question, if there is a install script, you need to either A) first make the script executable if it isn't the the "chmod +x <script-name>" command and then run the script "./<script-name" or B) run is like "sh <script-name>"

One final note. If the original tar-ball is located in the /tmp partition, and the /tmp is on its own partition, you will need to extract it elsewhere because the /tmp partition will be mounted with the "noexec" option. This is done because the /tmp directory is world writable and programs should not be located there.
Old 10-21-2005, 07:01 PM   #3
LQ Newbie
Registered: Aug 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks, that worked...well, mostly, as I mistakenly thought the revision of the distro I'm using (KnoppMyth) was 2.4 kernel when it's 2.6, and the driver is for 2.4, so I'm DLing an older version now.


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
dwnloader insists on unpacking tar.gz's on FC1 farpoint Linux - General 2 06-03-2005 03:38 PM
Unpacking a .tar.bz2 file njschroe Linux - Software 1 01-31-2005 03:25 PM
unpacking .tar.gz files crazibri Linux - Newbie 5 03-24-2004 02:19 AM
unpacking tar file Longinus Slackware 4 12-14-2003 02:04 AM
unpacking multiple .tar.gz files illtbagu Linux - General 5 01-18-2003 05:43 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:26 AM.

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