How to install a rar or tr.gz package after downloading and extracting it??

Asked by Mark on 2008-06-20

How do I install a program after i have downloaded it.
I have found various bits of literature about it but it still leaves me a bit confused I understang I nedd to extract the files eg .rar and tar.gz.

Can somebody explain how to extract and install the desired package step by step in plain english please??

This is a game i would like to install hwsource.rar

how do i get to use the game?
I am a begginer.

Question information

English Edit question
Ubuntu Edit question
No assignee Edit question
Solved by:
Jensen Somers
Last query:
Last reply:

Please tell us the download site address ussually on the site there are install instructions...

To simply extract a tar file

Please open a Terminal from the menu Applications->Accessories->Terminal and type:

tar xvf hwsource.rar

or for or for .tar.bz2
tar jvf

or for .tgz o for .tar.gz
tar xvzf hwsource.tgz

Thank you

Best Jensen Somers (jsomers) said : #2

A tar file is an archive just like a zip file. You can extract it via the command line as described by marcobra or you can, when using a graphical environment, right click on the file and choose "Extract here" from the menu. If you select "Open" it will open the File Archive manager which works in a similar way as WinZip or WinRar.

After you extracted the archive, most of the times a README and/or INSTALL file is present explaining the installation steps. These will most likely need to be performed from within a terminal.

Mark (mark-j-hogan) said : #3

Thanks Jensen Somers, that solved my question.