View Full Version : [ubuntu] tar.gz file
February 15th, 2011, 01:33 PM
Something not so hard is preventing me to install cakePHP :)
There it is:
I use the following command to extract my archive:
tar -zxvf NAME_OF_ARCHIVE
Where has the extraction been done ?
I can tell that it is not in the same folder as the archive.
Let me know, I am sure the question is not so hard to answer though.
Thank you so much for helping.
February 15th, 2011, 01:38 PM
the extraction must have been done in the same folder you ran the command in
February 15th, 2011, 01:39 PM
tar xvf NAME_OF_ARCHIVE
ie without the dash.
February 15th, 2011, 01:43 PM
Easiest way to extract a tarball is just right click > extract here.
February 15th, 2011, 01:46 PM
@euloiix, do you have a particular reason for trying to install CakePHP from source code, such as wanting the latest version?
It's in the Ubuntu repository, just a couple of mouse clicks away in the Software Centre. No real need to mess with a tar.gz file.
February 16th, 2011, 11:35 AM
No particular reason. I just did not think of using it.
My laptop has been taken away from me by Acer's people for some time but I will use the software center for sure.
Still I am wondering: how come it did not (and this I am sure of) extract the archive in the same folder ?
And would you have any idea where the content has been extracted ?
How could I look for it for example ?
February 16th, 2011, 12:20 PM
As DexterLB has already said, if you did...
tar -zxvf filename.tar.gz...the tarball will have been extracted in the same folder. However, it might have had its own folder with all the contents, and you'll find its own folder within the extraction folder. Say you had placed an archive called fred.tar.gz in your home folder and extracted it, then you will probably find a folder called 'fred' in your home folder with all the files inside it. Or sometimes the folder might be called something else. You'll just have to have a look around.
If you right-click on the archive and choose 'open with Archive manager', you can see the structure of the archive without extracting it. You can then extract it with Archive manager without having to use the terminal - as someone has already pointed out.
As far as software installation in Ubuntu is concerned, have a look at this:
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.