Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 09-01-2004, 10:32 PM   #1
Registered: Jan 2004
Location: EST
Distribution: Slackware 10.0
Posts: 150

Rep: Reputation: 15

I have read the man for pkgtool, but Im still confused. When you installpkg a .tgz, does it need to be a special .tgz that is especially made for pkgtool? Or can I get any .tgz and use pkgtool to install it? Is there anything else I should know, or any tips for using pkgtool? Also, will it work with .tar.gz files? Those are the same as tgz, right?

Last edited by Corallis; 09-01-2004 at 10:36 PM.
Old 09-01-2004, 10:38 PM   #2
Registered: Jul 2003
Location: MD USA
Distribution: Slackware
Posts: 137

Rep: Reputation: 18
Not all .tgz files are Slackware packages. I'm not an expert but I've made a couple of Slackware packages with makepkg, and they are binary files with a directory structure that are copied to your system. Roughly. Someone please correct me if I"m wrong.
Old 09-01-2004, 10:48 PM   #3
Senior Member
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Nope.... Your right.

About 90% of all .tgz are precompiled binaries made for slackware. Sometimes you'll find one that is source code... That's pretty rare tho. So basically, you can install any tgz that you find with pkgtool. Whether or not they were made right or even work is another question all together. Thats something you'll have to find out I suppose.

And, no, .tar.gz's are nothing like .tgz's..... .tar.gz's are usually compressed source code that you have to 'configure, make and make install' after you uncompress them... Same thing with .tar.bz2's....

.tgz's are pre-compiled binaries just like .exe or .rpm or .deb.....

Last edited by jong357; 09-01-2004 at 10:52 PM.
Old 09-01-2004, 10:51 PM   #4
Registered: Aug 2004
Location: San Diego
Distribution: Slackware
Posts: 303

Rep: Reputation: 31
You're right, slackware packages are just tarballs with the directory structure of how it'll be installed in the system. The most important thing I guess is the directory structure. I think i've made some tgz's by using tar zcvf .
Old 09-01-2004, 11:01 PM   #5
Registered: Jan 2004
Location: EST
Distribution: Slackware 10.0
Posts: 150

Original Poster
Rep: Reputation: 15
Another question... how do you all generally install files? What I have been doing is this... it may be way off from the "norm", but I never really learned a set way:

(Assuming its a ./configure, make, make install file)
Download said file
tar -xzvf it, assuming its a *.tar.gz
make install
Move all of the old source files to /usr/src
Move all of the new program files to /usr/bin

Is this the standard convention? Or am I way off?
Old 09-01-2004, 11:40 PM   #6
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
It's standart except for moving the new program files, when you issue "make install" you're installing them (they're usually installed to /usr/local/bin instead of /usr/bin) so you shouldn't move them to /usr/bin.
Also try checkinstall it makes a package from the sources you compile so it's easier to install and remove it.
Old 09-02-2004, 12:49 AM   #7
Registered: Jul 2004
Distribution: Slackware Current
Posts: 308

Rep: Reputation: 30
Yup go with checkinstall. Since it will turn it to a .tgz before installing, hence it will be easier to uninstall in the future when you want to get rid of it or upgrade it.


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
pkgtool fails ionmich Slackware 3 11-10-2004 08:08 PM
pkgtool does nothing?! alienDog Slackware 8 10-31-2004 06:11 PM
pkgtool sio Linux - General 0 07-30-2003 01:47 PM
using pkgtool ivans Slackware 2 05-28-2003 10:37 PM
pkgtool ktindle Slackware 4 12-15-2002 05:14 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:54 PM.

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