LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 01-04-2004, 11:20 AM   #1
Superdude
Member
 
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, 11:38 AM   #2
superbondbond
Member
 
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, 11:42 AM   #3
-X-
Member
 
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, 11:43 AM   #4
slano
Member
 
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 http://www.linuxpackages.net/, a place where you can find a lot of slackware packages.
 
Old 01-04-2004, 11:57 AM   #5
Superdude
Member
 
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, 01:30 PM   #6
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
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, 04:35 PM   #7
Superdude
Member
 
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, 05:05 PM   #8
slano
Member
 
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, 06:30 PM   #9
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,791
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
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:
./configure
make
checkinstall

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.
 
  


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


All times are GMT -5. The time now is 05:37 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