LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to install packages with tar.gz extensions? (https://www.linuxquestions.org/questions/linux-software-2/how-to-install-packages-with-tar-gz-extensions-158136/)

SelaAragon 03-15-2004 05:48 PM

How to install packages with tar.gz extensions?
 
Hi, the noob is back. I have rpm installation down ok but I have no clue about these .tar.gz extensions. Could someone please explain to me how I extract and install these please? Thx.

Komakino 03-15-2004 05:55 PM

tar zxvf filename.tar.gz (or .tgz, same thing)
tar jxvf filename.bz2 (just a different sort of zipping algorithm)

that will unzip the file which usually contains source code. Most programs will have either a README file or an INSTALL file or both. Read them to find out how to install the program but it's usually just a case of cd'ing to the directory that was just created when you untarred the tarball and typing:
Code:

./configure
make
make install (that one as root to make programs installed for all users)


peace 03-15-2004 05:57 PM

The file is gziped (compressed) and in a tar archive. You have to extract it:

tar -xzvf filename.tar.gz

Now, whatever is unpacked may be for a binary or for source.

If it is source, here is an "answers" article: http://www.linuxquestions.org/questi...ticle&artid=15

If it is a binary, there should be a README file telling you what to do.

Komakino 03-15-2004 05:58 PM

Should probably explain. The reason that it's .tar.gz is because gzip can only compress one file, so the collection of files is tarred (Tape ARchive) first. Tarring goes back to when most backups were done to tape. Rather than write all the files individually to tape, you tarred them first so you only had one file to write.
The j option with tar tells it that the file was zipped with Bzip2. The z option means Gzip was used. x means eXtract. v is Verbose (tell you what files it's extracting) and f precedes the name of the file.

SelaAragon 03-15-2004 09:52 PM

Aha. Thanks! This isn't so difficult after all. :D Actually it's kinda fun not having lamer windows doing everything for me. I did compile one tar.gz but during the process it asked for the path to mozilla and when I told it /usr/lib/mozilla it told me "no such directory". A bit silly considering that this is the correct directory. whereis gave it to me and I even verified it visually. I'm still searching for the gentoo ISO's I think I will remove RedHat and try gentoo. I rather like it's look. The only site I have found them at has all dead links. :(

Pwnz3r 03-15-2004 10:34 PM

Want Gentoo ISOs? Go to http://gentoo.org to get them. :p Gentoo is advanced to install, but the instructions are very thorough so it's hard to get stuck really. It takes a while to install since things get built from the source (through the uber cool Portage system using the emerge command) but it's worth it. I emerged Firefox with it and everything works right in it unlike when I use the pre-compiled binary version from mozilla.org. 'Tis great stuff. And don't worry, Portage is a lot better than the RPM.

Also, http://forums.gentoo.org is a good place to check out if you get stuck.

megaspaz 03-16-2004 12:27 AM

well since you are (maybe were) using redhat, some of those tar.gz packages can be built into rpms. use the command:

rpm -ta *.tar.gz

if the developers have been nice enough to include a spec file, that command will compile the source in the tarball and create rpm files in /usr/src/redhat/RPMS/i386/

;)


All times are GMT -5. The time now is 12:45 AM.