LinuxQuestions.org
Register a domain and help support LQ
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 08-31-2006, 01:07 PM   #1
Knasen
LQ Newbie
 
Registered: Oct 2004
Location: Sweden
Distribution: Fedora
Posts: 12

Rep: Reputation: 0
How to convert a tar.gz-file to tgz-file ?


Hi !

How do I convert a tar.gz-file to tgz-file ?

I use Slackware 10.0.

Thanks !
 
Old 08-31-2006, 01:09 PM   #2
mindsport
Member
 
Registered: Apr 2005
Location: Florida
Distribution: Slackware 13.1-64bit / 2.6.33.4
Posts: 45

Rep: Reputation: 17
Code:
mv filename.tar.gz filename.tgz
the extention means the same thing; they are both "tar balls"
 
Old 08-31-2006, 01:10 PM   #3
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 30
It's the same

Code:
mv <zee_file>.tar.gz <zee_file>.tgz
Though I'm not so sure if that's what you meant... or are you trying to build your own tgz packages?
 
Old 08-31-2006, 01:30 PM   #4
Knasen
LQ Newbie
 
Registered: Oct 2004
Location: Sweden
Distribution: Fedora
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by raska
Code:
mv <zee_file>.tar.gz <zee_file>.tgz
Though I'm not so sure if that's what you meant... or are you trying to build your own tgz packages?
I've dowloaded a tar.gz-file and want's to have it in the .tgz-format instead.

Thats all ....

I want a Slackware pack ...

How do build a tgz-file from a tar.gz-file then ?

Last edited by Knasen; 09-01-2006 at 03:19 PM.
 
Old 08-31-2006, 01:48 PM   #5
mindsport
Member
 
Registered: Apr 2005
Location: Florida
Distribution: Slackware 13.1-64bit / 2.6.33.4
Posts: 45

Rep: Reputation: 17
if you want to build a slackware package you need to do the following..

Code:
mkdir /pack
tar -zxvf <package.tar.gz>
cd package
./configure

make
make DESTDIR=/pack install

cd /pack
makepkg package.tgz
 
Old 08-31-2006, 01:59 PM   #6
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
You may want to read a bit more about Slackware packages before trying to make them, a good starting point: http://www.linuxpackages.net/howto.php
Examining existing packages is a good learning experience too.
There's a little tool created by gnashley that can help you to compile programs easily and make packages from them, make a search on this forum, there's a thread about it ( http://www.linuxquestions.org/questi...d.php?t=462649 ).

Last edited by gbonvehi; 08-31-2006 at 02:03 PM.
 
Old 08-31-2006, 02:26 PM   #7
drewhead
LQ Newbie
 
Registered: Jan 2006
Distribution: Slackware
Posts: 21

Rep: Reputation: 1
Quote:
Originally Posted by mindsport
the extention means the same thing; they are both "tar balls"
It may help to say that there is nothing about a .tgz suffixed file that implies a slackware package. It's just a gzip compressed tar file making it synonymous with .tar.gz

What makes a given .tgz a slackware package is the context of the contents of that archive. Therefore making some arbitrary .tar.gz suffixed file a slackware package is not merly a matter of some simple conversion, it is a matter of correctly constructing a package using some data that _may_ be in a .tar.gz file.

gbonvehi cites a good place to learn about package construction if that's really what you want to do. But the conversion between tar.gz distributed source and a slackware package isn't some one step command.
 
Old 08-31-2006, 07:05 PM   #8
pbhj
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware 12; Ubuntu 7.10
Posts: 358

Rep: Reputation: 31
I was reading over this post and thinking "what's the quickest way to recognise that it's a tar.gz or a slackware package (tgz)?". Probably it would be that

A tar.gz (source files) ...
1) has text files called README, INSTALL with info on compilation (but tgz may have these too)
2) has Makefile or some text files that mention make, or perhaps a setup script like setup.pl
2) has a autogen.sh or configure script used to start off the package making routine
3) has a src/, doc/ or lib/ directory but not usually a bin/ directory

A tgz usually has just a couple of directories in the root of the file and they usually correspnd to high level system dir such as usr, share. A tgz also usually has an install/ dir with a doinst.sh file.
 
Old 09-01-2006, 02:58 AM   #9
Daga
Member
 
Registered: Apr 2006
Location: A comfy chair...
Distribution: Slackware
Posts: 110

Rep: Reputation: 15
and you can look for those directories with "tar -tzf filename.tgz|less"
 
Old 09-01-2006, 08:44 AM   #10
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
or simply "less filename.tgz"
 
Old 09-01-2006, 03:14 PM   #11
Knasen
LQ Newbie
 
Registered: Oct 2004
Location: Sweden
Distribution: Fedora
Posts: 12

Original Poster
Rep: Reputation: 0
OK !!!

Thank you all very much for the information.

Well, then it is little more complicated to build a Slackwarepackage from a sourcepackage.

Very confusing to have Slackwarepackages named after tarball's.

Thanks !
Philip
 
Old 09-01-2006, 05:11 PM   #12
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 30
Quote:
Originally Posted by Knasen
Well, then it is little more complicated to build a Slackwarepackage from a sourcepackage
You can always get a bunch of Slackware ready-to-install packages at http://www.linuxpackages.net/
 
Old 09-01-2006, 10:52 PM   #13
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Quote:
Originally Posted by Knasen
OK !!!

Thank you all very much for the information.

Well, then it is little more complicated to build a Slackwarepackage from a sourcepackage.

Very confusing to have Slackwarepackages named after tarball's.
How so? This is exactly what it is. A Slackware package is just a tarball of install files. If you wanted to, you can install a Slackware package by simply untarring it to the root directory (Infact this is how I installed pkgtools in Knoppix so I could install the downloaded Slackware packages to a mounted partition).

In my opinion, you couldn't find a better package management system.

regards,
...drkstr

**edit**
my 1000'th post. Neato!
 
Old 09-02-2006, 06:36 AM   #14
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 49
Quote:
Originally Posted by drkstr
If you wanted to, you can install a Slackware package by simply untarring it to the root directory
Don't forget to manually run the doinst.sh script and clean up the /install directory if you go that route.
 
Old 09-04-2006, 01:02 AM   #15
Daga
Member
 
Registered: Apr 2006
Location: A comfy chair...
Distribution: Slackware
Posts: 110

Rep: Reputation: 15
Quote:
Originally Posted by uselpa
or simply "less filename.tgz"
That's a cool trick. Thanks!
 
  


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
tar.gz to .tgz file? wombat53 Linux - Software 20 06-15-2005 09:31 AM
Quick...Someone Tell Me How To Open a Tar File in .tgz format njschroe Linux - Software 3 06-10-2005 05:58 AM
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
D/l a .tgz.tar file..how to unzip Navop Linux - Newbie 1 03-13-2005 08:56 AM
How to convert .deb file to .tar file on redhat? zhu_liheng Linux - Newbie 1 01-15-2004 09:11 PM


All times are GMT -5. The time now is 08:21 PM.

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