LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 12-05-2004, 09:41 PM   #1
Eklipz
Member
 
Registered: Sep 2004
Posts: 85

Rep: Reputation: 15
Package Management


For a while now, I've been installing my programs like this:

<download the program>

<untar the program>

<./configure & make & checkinstall>

Now at this point Ive got the program installed, a package in the current directory, and a whole lot of source files left over. What I have been doing at this point is putting the source files in my /home/user directory, and moving the newly made package to /usr/src/packages. This seemed to work for a while, but not my /home/user directory is getting very full. Is there any easier way to do this? If I install a program with the checkinstall tool, do I really need to keep all of the source files around?

I'm just a little confused about how I should be managing my packages on slackware, Im not sure of the "normal" procedure or anything. How does everyone else do it?
 
Old 12-05-2004, 09:45 PM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
No, you don't need to keep the source, you can keep the package that was generated for later install or don't keep it at all.
 
Old 12-05-2004, 09:48 PM   #3
Eklipz
Member
 
Registered: Sep 2004
Posts: 85

Original Poster
Rep: Reputation: 15
So lets say I just downloaded a new program that requires me to build it from source. I go through ./configure, make, and then checkinstall. I'm left with a directory full of source files and the file.tgz. I can save the .tgz file as I have been in /usr/src/packages, and then just "rm -rf" the directory that I used to configure and make the file? And I will still be able to run the program at a later time?
 
Old 12-05-2004, 09:57 PM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Yes, make sure that checkinstall told you that it installed the package, otherwise install it using: installpkg pkgname.tgz
The .tgz file (a package) contains the compiled program so there's no need to keep the source. Also when you install it is extracted from the package and copied where it was told to (this info is in the .tgz file) so you can delete the .tgz file too (it's useless to keep it unless you want to install it again later without recompiling). A file is created in /var/log/packages telling which files the package uses so it can later be deleted (you can delete your tgz generated file as the uninstall information is on the packages dir).

Last edited by gbonvehi; 12-05-2004 at 10:00 PM.
 
Old 12-05-2004, 09:59 PM   #5
Eklipz
Member
 
Registered: Sep 2004
Posts: 85

Original Poster
Rep: Reputation: 15
Oh ok, thank you very much for the information. I guess I've been saving alot more than I needed to be, which has been cluttering my home directory. Thanks again.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Package Archive style package management mugwump84 Linux From Scratch 3 08-25-2005 05:19 PM
Package management awing_pilot Linux - Newbie 1 03-30-2005 12:41 PM
package management laydros Slackware 6 01-21-2005 06:43 PM
9.2 package management Icarus315 Suse/Novell 1 01-15-2005 06:12 AM
Package management? darkRoom Linux From Scratch 9 06-04-2004 10:00 AM


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

Main Menu
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