Quick guide on tar
As a newbee used to zip & rar I understandably don't have a real clue how to run / install
tar files etc It appears that if I download rpm's I am given the option of instslling using yast but I have probs with tar files etc. Please advise on how to do it in ideot speak. |
I'll be happy too if you answer this question. I'm newbiea as you man. :)
|
things in rpm are already nicely packaged binary and can be installed on the system with the command
Code:
rpm -ivh <filename>.rpm to "unzip" a tar file: if the file ends with ".tar" use: Code:
tar xvf <filename>.tar Code:
tar xvzf <filename>.tar.gz |
generally speaking, ( this is not always the case ), tar files are source archives. To install them, you have to extract them (we'll get to this in a minute) and build them with your system's compiler. To extract a tar file, you need to know how it was compressed. You can tell this by what extension the file has. The two most common methods is gzip (which will end in tar.gz) and bzip2 (which will end in tar.bz2).
for a gzip compressed archive: Code:
tar -zxvf tarfile.tar.gz for a bzip2 compressed file: Code:
tar -xvfjp tarfile.tar.bz2 The actual steps involved in building vary from package to package but in the most basic form ( I stress basic here): ./configure make make install But keep in mind you kinda need to know what your doing if your upgrading libraries or the application needs to link against libraries installed on your system ( This is distribution specific, some require more steps than others). if you use gnome/kde, then file-roller/ark will uncompress the archives for you also. |
Quote:
Isn't it hard getting straight answers on this forum??????? you get so many varying answers you don't know where to turn. It would be nice just to be able to download something and extract / run it like you can with win zip etc. My heads cabaged with the tar stuff and even though yast can be used to run rpm's sometimes you dont know where it's installed it to so even though a file is on your system you can't find it. Arrrrrrrrrrrr:confused::) :) :) |
http://www.linuxquestions.org/questi...threadid=45094
Look at the top two sticky threads in Linux-General :) Cheers, Tink |
Quote:
we provide for your convenience... Cheers, Tink |
I suppose this needs to be done as root? This part I am aware of and in fact I have found you can extract to a folder then you look for the install file for the info but I get lost then. I'm trying to install an antivirus. I went to root found the directory & typed what was written it said the library file was not loaded and I tried to do this but got lost. In the install file it said do x y & z and follow instructions but didn't get that far.
|
Quote:
Sorry if I offended you it wasn't meant as a snipe. theres just so much info that finding the info that is what you need is tricky. Sorry again thanks will check the link [/mod_edit] |
You might also want to try using pinfo from the CLI, I find it easier to understand than the man pages.
yourprompt>pinfo tar |
Quote:
Thanks for everyones advice. :newbie: :Pengy: |
If you have a problem with a command consult the man pages ie 'man tar', thats as straight an answer as you'll get
|
All times are GMT -5. The time now is 07:46 PM. |