Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-04-2004, 10:20 AM   #1
Registered: Oct 2003
Distribution: Slackware 9.0
Posts: 47

Rep: Reputation: 15
Not sure about installpkg

(Slackware 9.0)

I am new to linux but I've come to the conclusion that you cannot use installpkg to install any tgz (or tar.gz) package. Normally you would untar/unzip the package and then run make and then make install. Does installpkg do that, or does it just unpack the archive? How do I determine whether or not I can use installpkg to install a package, or whether I have to do it manually? I have noticed that whenever I have an rpm file and I run rpm2tgz on it, then installpkg will work fine.
Old 01-04-2004, 10:38 AM   #2
Registered: Nov 2002
Posts: 668

Rep: Reputation: 30
Don't confuse a *.tgz with a *.tar.gz These are NOT the same thing.

A valid Slackware Package should have a .tgz extansion, which (obviously) should install just fine with installpkg.

A tar.gz is a gzipped tar archive (tarball) and is what you manually compile/install (./configure, make, make install)
Old 01-04-2004, 10:42 AM   #3
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
I don't use installpkg, but the pkgtool for .tgz files. do;
$ su - (with the dash), then password.
cd to the dir where tgz files are.
# pkgtool
Then use current directory from menu. It will do the complete install.
Probably have better feedback in the slackware group.
Old 01-04-2004, 10:43 AM   #4
Registered: May 2003
Distribution: slack,gentoo
Posts: 57

Rep: Reputation: 16
the installpkg is slackware thing, there is already compiled program (so no need to run make && make install) in it, so installpkg just unzip the files to /. but it has to be a slackware package. it's similar to RPMs.
The other thing is that when you have some program source codes, you have to unzip/untar it, and than in most cases run configure, make, make install. This will compile the program on your computer.

you should also check out, a place where you can find a lot of slackware packages.
Old 01-04-2004, 10:57 AM   #5
Registered: Oct 2003
Distribution: Slackware 9.0
Posts: 47

Original Poster
Rep: Reputation: 15
Ok I see, my mistake was that I thought tar.gz and tgz files were the same thing just with different extentions so you could simply do "mv file.tar.gz file.tgz" and then run installpkg on it.

So let's see if I understand this now, installpkg will work ONLY on packages meant specifically for slackware? The only way to install tar.gz packages is to unpack them then run configure, make and make install (as root).

By the way when I unpack it and then run make and make install, it creates a new directory right in the root directory. Is that supposed to happen? Where are new programs supposed to install to?
Old 01-04-2004, 12:30 PM   #6
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
you can always run ./configure --help to see what is offered to you. Most of the tarballs are installed under /usr/local unless specified otherwise usually with ./configure --prefix=/path/where/to/intall
The directory which is created when you decompress teh archive is just a handy way to keep all the files needed by the installation process in one place, so you don't cluter your filesystem.
Old 01-04-2004, 03:35 PM   #7
Registered: Oct 2003
Distribution: Slackware 9.0
Posts: 47

Original Poster
Rep: Reputation: 15
Thanks for the help everyone I just have one more question: How do you uninstall a tarball? I'm assuming you can't just delete the directory, because during installation it copies files to several different directories?

Also, what precisely does make clean do?
Old 01-04-2004, 04:05 PM   #8
Registered: May 2003
Distribution: slack,gentoo
Posts: 57

Rep: Reputation: 16
No you can't just delete the directory, if you do that the program still stays on your computer. You have to remove every file that was produced after make install.
If you want to uninstall the slackware package, there is program called pkgtool that might help you

make clean will remove all stuff that configure and make does.
eg, if u type make (you should run it also if you aren't root) the program will be compiled somewhere in the directory where you have unziper the tarball.
Now you can run it from there. When you type make install (you have to be a root to do that) it will copy all program files to your system, so other users can access it.
Old 01-04-2004, 05:30 PM   #9
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 417Reputation: 417Reputation: 417Reputation: 417Reputation: 417
If you're ever compiling from source, you want a copy of checkinstall handy. Checkinstall replaces the make install step and instead creates a Slackware package from the compiled program and then installs it as a real Slackware package. That means that you can use pkgtool to remove it rather than hoping that the author included a make uninstall.

So bascially, you:

And you have the advantages of compiling it yourself plus the ease of using a Slackware package.

By the way, I think it creates Debian packages and RPMs as well.


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
something about installpkg tintilin Slackware 5 11-26-2004 12:13 AM
installpkg not working aje Slackware 8 11-07-2004 04:03 PM
installpkg mcd Slackware 4 10-17-2004 09:04 PM
installpkg questions salahuddin_66 Slackware 2 09-23-2004 01:26 AM
help with installpkg mep]-[isto Slackware 3 11-19-2003 02:27 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:07 AM.

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