LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-30-2009, 09:04 PM   #1
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
An audacious plan for Package management...


I have completed a CLFS build, and have really enjoyed configuring to my hearts content. I have added Roy Marples OpenRC 0.5.0, and have added the zen-sources kernel among other things. This has been a great learning experience & enjoyable.

Now I am tasked with getting a proper package management system. I have seen people use dpkg & rpm's and paco. Since I will not be running a X environment paco is out of the question, I need a good tool. So I installed Arch's pacman.static, and added the mirrorlists, and pacman.conf file. I now can successfully download packages with pacman. But.... I have a problem with its dependency check. I need to trick pacman into thinking I have the core, utils, headers and build utils installed. Note this is a barebones CLFS install at the moment, meaning only the toolchain, coreutils and devices are installed. I do have dhcp working and is active.

So, I was thinking about using ARCH's ABS to download the PKGBUILDS, and manually install the compiled packages. This gives me the freedom to edit the PKGBUILD to suit my standard FHS layout and any needed dependences. Before I can get pacman.static working, I need to know where pacman stores its db, so I can edit it manually to override any unwanted package downloads. Something like Gentoo's world file.

I am not familiar with Slackware, but I do know they have a similar system for compiling and installing packages. So... are there any tutorials (trust me I've expended google) that can assist me in installing Slackware like system in my CLFS... as an alternative to the Arch approach...? I am very new with Slackware, so I am wondering if this is possible.


EDIT: An example of pacman.static output
Code:
localhost / # pacman.static -S abs 
resolving dependencies...
looking for inter-conflicts...

Targets (10): kernel-headers-2.6.30.5-1  tzdata-2009m-1  glibc-2.10.1-4  ncurses-5.7-2.1  
              readline-6.0.004-1  bash-4.0.033-1  attr-2.4.43-1  acl-2.2.47-2  rsync-3.0.6-1  abs-2.3.3-1  

Total Download Size:    16.81 MB
Total Installed Size:   59.43 MB

Proceed with installation? [Y/n]

Last edited by manwithaplan; 09-30-2009 at 09:11 PM.
 
Old 09-30-2009, 10:20 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Did you check the Package Management section of the CBLFS Wiki --> http://cblfs.cross-lfs.org/index.php/Main_Page. There are several package managers there including Slackware's Pkgtools and one created explicitly for CLFS systems.
 
Old 09-30-2009, 11:29 PM   #3
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by weibullguy View Post
Did you check the Package Management section of the CBLFS Wiki --> http://cblfs.cross-lfs.org/index.php/Main_Page. There are several package managers there including Slackware's Pkgtools and one created explicitly for CLFS systems.
Your completely right... I was over thinking this issue... I have installed pkgtools ..

I have a 64bit setup ... does Slackware64 use a standard FHS layout..? is the library folder named /lib or /lib64 ...? I need to know if I need to setup a symbolic link, and if it will work.

BTW, does Slackware have any rsync servers that I can sync with, maybe a db with links to download a package or sets. Or is it a manual download per package..? Or do I have to build a wget list to download multiple packages..?

Total noob.. to the Slackware way of package management. Thx
 
Old 10-01-2009, 04:42 AM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Don't know, I use PackManUtil on my CLFS boxes.
 
Old 10-01-2009, 10:02 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
But, paco doesn't need a gui. Just do './configure --disable-gpaco'.
 
Old 10-01-2009, 01:30 PM   #6
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by weibullguy View Post
Don't know, I use PackManUtil on my CLFS boxes.
I actually was looking @ PackManUtil on the CBLFS site before I posted and noticed your the maintainer, and a CBLFS contributor. I assume that you use PackManUtil after the toolchain is built and bootstrapped. Does it catalog all libs, and installed sources after I have completed the build so to avoid any file collision? I am a complete novice with how CLFS philosophy works, and any package tool variant. Not ignorant though.

I have no problem with installing source, but using symlinks and using InstallWatch seemed cumbersome. So I'll look more closely at PackManUtil. Just trying to get my head around Package management with CLFS in Pure64.

On a side note, I would like to contribute to the CBLFS community and write a tutorial for implementing OpenRC 0.5.0, I have written a small patch for CLFS pure64. And have confirmed it with Roy Marples. How would I go about this..? I am working on a 64bit multilib setup for testing and implementing OPenRC 0.5.0, so far its been much better then any BSD, or the bundled CLFS bootscripts package I've used.

Quote:
Originally Posted by H_TeXMeX_H View Post
But, paco doesn't need a gui. Just do './configure --disable-gpaco'.
It seems I overlooked that... It was late and I was tired ...

Last edited by manwithaplan; 10-01-2009 at 01:31 PM.
 
Old 10-01-2009, 04:30 PM   #7
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Quote:
Originally Posted by manwithaplan View Post
I assume that you use PackManUtil after the toolchain is built and bootstrapped.
Actually, I already had build scripts for CLFS when I started writing PackManUtil so I don't start using PackManUtil until after I've completed CLFS. Someday, if someone requests, I might work out the details of using PackManUtil starting with chapter 10.

Quote:
Originally Posted by manwithaplan View Post
Does it catalog all libs, and installed sources after I have completed the build so to avoid any file collision?
It can use paco to track installation of *all* files. Unfortunately, paco doesn't use a fakeroot AFAIK, so you have to install system-wide. The other option is to use a fakeroot, create a tarball of the installed files, and then unpack the tarball system-wide. This is the preferred method and when writing the build scripts for a package, we make sure the installed files won't clobber anything. If so, we account for those clobbers.

Quote:
Originally Posted by manwithaplan View Post
On a side note, I would like to contribute to the CBLFS community and write a tutorial for implementing OpenRC 0.5.0, I have written a small patch for CLFS pure64. And have confirmed it with Roy Marples. How would I go about this..?
You can add the build instructions to the CBLFS wiki. If there is anything more in depth than that, you can write a CLFS hint at http://hints.cross-lfs.org/index.php/Main_Page.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
package management ramayana Linux - Newbie 5 05-18-2008 05:17 PM
LXer: Simple Package management with Synaptic Package Manager LXer Syndicated Linux News 0 12-05-2006 06:33 PM
LXer: Gecko 1.9 Trunk and 1.8 Branch Management Plan Posted LXer Syndicated Linux News 0 12-22-2005 12:16 AM
Using Package Archive style package management mugwump84 Linux From Scratch 3 08-25-2005 05:19 PM
9.2 package management Icarus315 SUSE / openSUSE 1 01-15-2005 06:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:46 AM.

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
Open Source Consulting | Domain Registration