Need some help w/ unpacking a tar.gz & directory stuff
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.