D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Installing

 

On 19/07/11 21:02, Jack Oley wrote:
Can anybody tell me how I install a tar.gz package, please? I've got it
in my Dowloads folder; I open the terminal and enter the command, *tar
xfvz eldy23.tar.gz * and get the error, "Cannot open: No such file or
directory". Am I doing something incorrectly? Is there an easier /
better way to install a tar.gz file?? Thanks for any help. Jack.


I'm assuming when you open a terminal you'll end up in your home directory.

You'll need to first change to the Downloads directory before you can untar the file, or specifically give it the path of the file.

You can do this in a couple of ways...

at the $ prompt type:

cd Downloads

tar xfvz eldy23.tar.gz

....or....

tar xfvz Downloads/eldy23.tar.gz

The first set of commands will change to the Downloads directory and then extract the archive, possibly in to it's own sub-directory.

The second set of commands will extract the tar file into the root of your home directory, again it may create a sub-directory.

You may also find that you can extract the file using some sort of archive manager. You didn't specify which desktop environment you're using but on Mint (and at least earlier versions of Ubuntu running Gnome) you can double click on the tar.gz file in Nautilius (the file manager) and extract the files to a location of your choice.

What I tend to do personally is try and find what I'm looking for in the repositories (either with Synaptic, apt-get, yum, or YaST depending on the distro), failing that I try and add a 3rd party repository so I can use a package manager, or if there isn't one, then I try and get a suitable package (.deb, .rpm etc). If all these methods fail then I'll look at getting a .tar.gz (either a binary or source code to compile) or maybe look at getting the source from a subversion, cvs, git server (something that I'm not too clued up on so try and avoid it if I can :-D).

Anyway, good luck, hopefully you'll get it sorted out.

Rob

--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq