LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 07-14-2002, 06:51 PM   #1
chr15t0
Member
 
Registered: Jun 2002
Location: London
Distribution: Slackware
Posts: 201

Rep: Reputation: 30
difference btw tar.gz and .tgz


I just converted to Slack I like the idea of never having to use rmps again and doing everything from source.. but I just noticed that pkgtool needs .tgz files to install from.... but most source downloads that I have come across are as tar.gz . What is .tgz ? Please excuse my ignorance on this one...

chris
 
Old 07-14-2002, 07:23 PM   #2
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
The difference between .tgz and tar.gz is the same as the difference between .htm and .html - i.e. the filename.
 
Old 07-14-2002, 07:36 PM   #3
chr15t0
Member
 
Registered: Jun 2002
Location: London
Distribution: Slackware
Posts: 201

Original Poster
Rep: Reputation: 30
so if they are both gzipped tarballs, then does that mean I always have to rename the archive from asfd.tar.gz to asfd.tgz for pkgtool to see it? Maybe I have just gotten in a muddle here , but pkgtool gave an error that packages files should end in .tgz

Am I being daft?
 
Old 07-14-2002, 08:44 PM   #4
wartstew
Member
 
Registered: Apr 2002
Location: Albuquerque, NM USA
Distribution: Slackware, Ubuntu, Debian, Maemo
Posts: 464

Rep: Reputation: 30
Note that not all .tgz tarballs are the same. The ones for Slackware include some standardized script files that the Slackware package installer runs to configure things for you. When these scripts don't exist, you have to do any configuring yourself.
 
Old 07-15-2002, 03:00 AM   #5
X11
Member
 
Registered: Dec 2001
Location: Brisie, Australia
Distribution: Slackware 8.1
Posts: 324

Rep: Reputation: 30
Re: difference btw tar.gz and .tgz

Quote:
Originally posted by chr15t0
I just converted to Slack I like the idea of never having to use rmps again and doing everything from source.. but I just noticed that pkgtool needs .tgz files to install from.... but most source downloads that I have come across are as tar.gz . What is .tgz ? Please excuse my ignorance on this one...

chris
The extension .tgz or .tar.gz doesn't necessarily mean that that has source code in it. This is just the type of package format that slackware uses to install packages (programs, libraries, etc).
 
Old 07-15-2002, 04:45 AM   #6
chr15t0
Member
 
Registered: Jun 2002
Location: London
Distribution: Slackware
Posts: 201

Original Poster
Rep: Reputation: 30
Yeah, I'd definitely confused !

When I want to install something new, I usually go out to sourceforge or freshmeat and download a zipped tar file, tar.gz which includes all the install scripts and readmes and the source.. all in one tidy little bundle. I extract with tar -zxvf, then cd into the new folder and then

./configure --with-options
make
make install
Now, my understanding is that pkgtool will manage this process for me and keep a record of my installations, allowing me to keep a track of what I have installed on the system, checking dependencies as I come to install new packages.

I had a fiddle with this yesterday, loaded pkgtool, selected to install a new package and offered the tar.gz bundle for the application I wanted to install (in this case it was Grip). The system responded, saying that it was expecting a .tgz file and not a tar.gz. My understanding is that the only difference is in the name and not the format... hmm I guess I should go and read some more on pkgtool

Thanks for the help, guys

christo

btw, having switched over to Slack from RedHat, I have to say I'm pretty impressed so far with the simplicity of things... I think I'm gonna like this!
 
Old 07-16-2002, 01:07 AM   #7
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Slackware and pkgtool use the .tgz extension for precompiled slackware binary packages, if you want to make a slackware package from source have a look at makepkg and to open up a slackware package look at explodepkg
 
Old 07-16-2002, 02:53 AM   #8
chr15t0
Member
 
Registered: Jun 2002
Location: London
Distribution: Slackware
Posts: 201

Original Poster
Rep: Reputation: 30
Now *that* sounds more like it.. thank you so much!

cristo
 
Old 07-16-2002, 08:44 PM   #9
syouth333
LQ Newbie
 
Registered: May 2002
Posts: 18

Rep: Reputation: 0
ok so if i downloaded a file, ummm kde.tar.gz, for example and i wanted to change that package to a .tgz file that could be used in pkgtool, what would the general course of action be here?
 
Old 07-16-2002, 11:51 PM   #10
divad
LQ Newbie
 
Registered: Jun 2002
Location: Barbados
Distribution: SLACK by nature
Posts: 6

Rep: Reputation: 0
differance between .tar.gz & .tgz

You should take a look at (man installpkg)
once upon a time you had to symlnk /var from the director
specified in the ROOT=/dir
 
Old 07-18-2002, 10:24 PM   #11
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
There is a guide on how to make slackware packages here.
 
Old 09-03-2002, 12:58 AM   #12
enzo250gto
Member
 
Registered: Oct 2001
Location: Tokyo, Japan
Distribution: Slackware
Posts: 105

Rep: Reputation: 15
Opera 6.03 pkg

Wonderful thread here. I read the above link about making pakages for Slackware. Also very helpful. Here is what I'm not sure about. I want to install Opera 6.03 onto my computer. However the ./configure --prefix=/slackpacks does not work. To install the version of software ./install.sh which will install it system wide. This is fine but I would rather do it via installpkg so I can easily remove all of it at a later date if I need too. Any suggestions on how I build this. Also if I downloaded the tar.gz and did tar zxvf file does this mean I now have the binary files or just the source files? One last thing, there is a file called runme.sh which if executed will run Opera. So I'm guessing (and hoping) I can just do a makepkg foo.tgz while I'm in the dir with this file?

Last edited by enzo250gto; 09-03-2002 at 01:03 AM.
 
Old 09-03-2002, 04:46 AM   #13
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
install.sh is a binary installer
 
Old 09-03-2002, 11:49 AM   #14
Marshall
LQ Newbie
 
Registered: Jul 2002
Posts: 11

Rep: Reputation: 0
Hello, as a previous red hat user, I was very confused when I switched to slack a few years ago as well. You may want to check out a really cool program called CheckInstall.

http://checkinstall.izto.org/

This program is a miracle solution that you may like as well. Basically, when you have package source you compile yourself and want to install, here are the steps I follow:

configure
make
checkinstall

the checkinstall command basically runs "make install" for you, and then builds a slackware package for you, and then installs that package using pkgtool. You can optionally pass it any required paramters as well. You can even install binary only stuff using checkinstall. It is really a great program that I hope gets added to slackware some day.

Anyhow, check it out, I think you will like it.

CHeers,
Marshall
 
Old 09-03-2002, 08:02 PM   #15
sharper
Member
 
Registered: Aug 2002
Location: MN USA
Distribution: slakware 9.0
Posts: 121

Rep: Reputation: 15
Go for the CheckInstall program. I've hacked up my system by partial installs and removals and moving things that the precompiled slackware packages don't seem to work. But using CheckInstall I have a package that the package tool can remove.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gave wrong syntax for tar as tar -cvzf file file.tgz how to recover the file gautham Linux - General 4 04-13-2005 04:15 AM
What's difference btw. -exec and xargs rytrom Linux - Newbie 3 09-14-2004 04:42 PM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 01:08 PM
wts difference btw newbie and member farhan LQ Suggestions & Feedback 7 04-01-2003 10:57 PM
.tgz or .tar.gz c0c0deuz Linux - General 9 12-14-2001 11:37 AM


All times are GMT -5. The time now is 08:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration