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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
09-15-2005, 03:05 AM
|
#1
|
Member
Registered: Jan 2004
Location: New Zealand
Distribution: Mint | Sabayon
Posts: 160
Rep:
|
Installing tarballs with dir structure
I have a couple of tarballs and gnuzip tarballs to install. 'Inside' the tarball is the full directory structure of the program with it's usr, doc, bin, etc files.
How do I install these files without # mv them to all the correct directories? They just need to be dropped into place, but I wondered if one command might save 20 mins of laborious # mv. Thanks.
|
|
|
09-15-2005, 03:17 AM
|
#2
|
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032
Rep:
|
Check the structure of them. If the binaries are in, say, /usr/bin you should untar it to the root of your filesystem, but if they are located in /bin you should consider untarring the tarball to /usr (so they end up in /usr/bin) or perhaps more appropriate, /usr/local (so they end up in /usr/local/bin). Another option is untarring to /opt: cd /opt && tar xfvz ~/filename.tar.gz
Håkan
|
|
|
09-15-2005, 10:21 AM
|
#3
|
Member
Registered: Jan 2004
Location: New Zealand
Distribution: Mint | Sabayon
Posts: 160
Original Poster
Rep:
|
Thanks for your reply. I shall need to check that the directory structure is the same as my distro, but untarring will just untar the files into the relevant directories, not overwrite them? This was my concern.. that I might wipe out /usr for example with a directory with only a few files in it. Thanks.
|
|
|
09-15-2005, 10:57 AM
|
#4
|
Senior Member
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897
Rep:
|
tar won't wipe out previous structure and files. However, tar will silently overwrite an existing file if another file with the same name is in the same path in the tar.
You may be interested in my article:
My site > Computing > Linux > software/install.
Yves.
|
|
|
09-15-2005, 04:25 PM
|
#5
|
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938
Rep:
|
I think you've possibly downloaded slackware packages. Slack packs take the form of a tgz (or tar.gz) file that contains a directory structure and some script to install any little bits and pieces (create files in certain places or change permissions etc)
|
|
|
All times are GMT -5. The time now is 01:30 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|