Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

Extract and instal Tar.GZ files in ubuntu 10.04

  Date: Jan 23    Category: Unix / Linux / Ubuntu    Views: 539
  

Can someone please advise me on a simple way to do this,having looked
at the Ubuntu Forum Tutorial,I haven't been able to figure out how using a
command to do it!or is there a way to convert the tar to a deb or rpm?
I am still trying to learn something about Ubuntu everyday,though I realise that
if possible I should stick to the programmes within Synaptic Package Manager but
sometimes I cant find a programme that I want!

Share: 

 

6 Answers Found

 
Answer #1    Answered On: Jan 23    

I would suggest visiting the site that provided your tar.gz file and see
if they have a .deb file. If you downloaded source then unpack it and
look for the readme file and follow the directions for compiling the source.

A tar.gz file is a compressed file and can be of many natures, just as a
zip file can be in windows. It is recommended you use the repositories
because the compilation is known to work well with the distro. I have
used many deb files without problems and have also compiled source code
using the instructions packaged with the tar file, but sometimes it
involved some hair loss.

 
Answer #2    Answered On: Jan 23    


I have opened the compressed file and have read the instructions
packaged within the file but cannot understand how to compile the source
code?

 
Answer #3    Answered On: Jan 23    

see here for generalized compilation instructions.
https://help.ubuntu.com/community/CompilingEasyHowTo

However, it would probably be useful to know what your instructions in
the package suggested, as instructions differ based what the developer
provided in the file you downloaded.

In addition to unpacking the compressed file from the command line as
Leslie suggested, I think you can also move the file to a folder of
choice, right-click, and select "extract here".... But maybe I was
thinking of a different compression format. You can always try it.

 
Answer #4    Answered On: Jan 23    

tar xvf should unpack the archive, then read the instructions that came with it.

 
Answer #5    Answered On: Jan 23    

what is tar xvf please?
tar xvf should unpack the archive, then read the instructions that came
with it.

 
Answer #6    Answered On: Jan 23    

orry for being so terse. All I know is what I read in the man
(manual) command, as in "man tar" at a command prompt. It tells a
whole lot about every Linux command, most of which you will never use
but the following you do need.

tar is a linux command, like unzip in DOS, except you have to get the
upper/lower case correct in Linux or it won't work. You type it at a
command prompt to use it; i.e:

root@Unique-K1010:~#, (where Unique-K1010 is the name of my system,
yours will be different).

It only works when you have root privileges, so type sudo bash and
enter your user password (sudo = do superuser; bash is the "Bourne
again shell" (Linux in joke). User Prompt is $; root is #. Don't ask
me why!

To unpack an archive you need to be in the same directory, or else
type in the fully qualified pathname. I prefer to be in the same
directory. It's simpler.

At the prompt:

root@Unique-K1010:~#

Type the command, modifiers and name of the archive:

tar -xvf Name_of_archive

x means extract
v means verbose (lots of progress messages as it works)
f means the file that follows is to be operated on

The "-" only needs to be in front of the first parameter if they are
stacked together.

That should give you some files and a readme or similar, which
(hopefully) tells how to install it. It might be in a directory it has
created. If it doesn't help you may find general instructions by
googling the programme name. A .deb file is much to be preferred.

More experienced users may have corrections to the above so don't jump
too soon to try it unless you have a spirit of adventure! Linux works
very well, and increasingly it "just works" but you are now getting
into the power and complexity of an awesome operating system.

 
Didn't find what you were looking for? Find more on Extract and instal Tar.GZ files in ubuntu 10.04 Or get search suggestion and latest updates.




Tagged: