LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 09-07-2002, 11:11 PM   #1
Kellvyn
LQ Newbie
 
Registered: Jun 2002
Posts: 7

Rep: Reputation: 0
package management and source


It would be handy if there were some way for me to compile and install software from source, and somehow have the program/files show up using pkgtool so I can easily remove everything if I want to. Anyone know how I can do that? Or some other way I can keep track of all the files 'make install' puts on my system so I can get rid of them if I want to?

Thanks!
 
Old 09-08-2002, 05:10 AM   #2
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 46
no not really, but theres a workaround. What you can do is make the source and then make a slackware .tgz package out of it and install it with installpkg. Search google for "making slackware packages" for a detailed guide. Basically, in short, what you need to do is ./configure using --PREFIX=/tmp (or any temporary folder) then make, and make install, this will install the package in /tmp. Then cd to /tmp and inspect if everything looks good, it should. Then while in /tmp issue makepkg as root and your package will be magically created, now just install it with installpkg, and you can also copt the .tgz so if you ever reinstall on the same machine you can just use installpkg to install it again.
Hope that helps
-NSKL
 
Old 09-08-2002, 02:20 PM   #3
Marshall
LQ Newbie
 
Registered: Jul 2002
Posts: 11

Rep: Reputation: 0
Sure there is! Check out this thread, it explains the options you have.

http://www.linuxquestions.org/questi...threadid=25753

To sumarize, basically, you have three options:
1. Keep track of everything yourself
2. Using the source, build slackware packages, then install them with pkgtool
3. (This is my preferred method) Use a really bad-ass program called CheckInstall that will **CREATE** slackware packages FOR you from source, and then install them. Best part is you can then use pkgtool to remove them later if need be. This is really a very, very good program you should check out. Here's the link:

http://checkinstall.izto.org/

Let me know if you have questions, I am happy to help.

Cheers,
Marshall
 
Old 09-08-2002, 02:57 PM   #4
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 46
Marshall: that program sounds very good, i'm downloading it now, thanks for the link!
-NSKL
 
Old 09-08-2002, 03:33 PM   #5
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 46
Hmm, i tried checkinstall and it segfaults for some reason, and then after reading all it's documentation i have to say i'm not really happy not knowing what exactly is going on, if i wanted something like that i would run SuSE or RH. Im not saying checkinstall is bad, its just my personal preference to do everything "manually". In other words i'll stay with my traditional way of making slackware packages with makepkg, it's a bit longer then using checkinstall but at least i know whats hapening.

-NSKL
 
Old 09-08-2002, 08:20 PM   #6
Marshall
LQ Newbie
 
Registered: Jul 2002
Posts: 11

Rep: Reputation: 0
True, it does take some direct control out of it. However, for some uses (i.e. someone new to slackware, or for packages that I have difficulty making my own slackware packages with, etc.), this is a really great tool.

For me, it works. I like that I can still do the "configure" and "make" parts myself. Then everything is prepped, and I just run checkinstall and it is done. Afterwards, I usually look at the contents of the package by examining the file it places in /var/log/packages to make sure all went well.

Just another tool, that is all. But lately since I am getting much more proficient with Slack, I have been building my own packages as you described.

But nonetheless, I think it is a good tool for beginners.

Take care,
Marshall
 
Old 09-09-2002, 12:23 PM   #7
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 46
True, i totally agree, as i mentioned before, it's just my personal preference to do everything by hand "The slack way!"
Thanks again for pointing this tool out, it might come in useful in certain situations, like presenting Slack to a newbie.
-NSKL
 
  


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
Using Package Archive style package management mugwump84 Linux From Scratch 3 08-25-2005 06:19 PM
Package management awing_pilot Linux - Newbie 1 03-30-2005 01:41 PM
Package Management Eklipz Slackware 4 12-05-2004 10:59 PM
Package management? darkRoom Linux From Scratch 9 06-04-2004 11:00 AM
Package management Ultimaterra2005 Red Hat 1 02-22-2004 01:02 PM


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