LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-14-2015, 08:18 AM   #1
paletroxz
LQ Newbie
 
Registered: Oct 2014
Posts: 23

Rep: Reputation: Disabled
Package management for LFS 7.7 x64


Hey guys, I've come across plenty of threads about adding apt-get & dpkg to LFS as package management tools, but the recommended ones were paco, slackware, lfspkg etc... Could anyone tell me how to setup dpkg & apt-get alone on my LFS 7.7 system. I've also seen on linuxfromscrath.org hints & they've mentioned it for LFS 6.6 version which I think might get too complicated to setup.

Is there anyone who could provide me a good guide to do so. And yes I'm doing it for educational + regular update(s) reason...

I've completed LFS 7.7 & have done BLFS 7.7 up till working network & desktop environment. Now if I get a package manager it'll make my job easier....

Thank you in advance....

Last edited by paletroxz; 07-14-2015 at 08:19 AM.
 
Old 07-14-2015, 09:26 AM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
There are no real guides, just user experience and reworking efforts from other distributions.

Example:

pkgtools from Slackware is a set of scripts that create, unpack, install, remove, and update tarballed packages usually in .tgz or .txz format. They can use the dialog with ncurses packages to give a sort of UI, but it's not required. It also requires tar-1.13 be included alongside the current tar package.

pkgtools uses SlackBuild scripts with slack-desc description files and doinst.sh post-install scripts. It's very simplistic and offers no dependency resolution unless you craft the .info files and README files used by SlackBuilds.org that can utilize add-on tools like sbotools to create pseudo dependency resolution methods.

However, you will need intimate knowledge of how to use patches to make sure them with packages like glibc to make sure glibc doesn't perform a lock-in with ldconfig pointing at /tmp/package-glibc/lib and use /lib instead and other such issues. You will also need to possibly perform many reinstalls of other packages to keep re-resolving dependencies as things get added.

Often, I find it best to just keep pre-configured source packages in /usr/src ran with make clean on them. It's a lot easier.

LFS unofficially uses the fakeroot hint from Chapter 6 as a package management system, but in truth any system can be imported.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS - Package Management Experiences basica Linux From Scratch 5 12-09-2011 06:04 AM
deb package management on lfs r£vilo Linux From Scratch 5 10-06-2006 06:55 PM
LFS and package management michaely Linux From Scratch 7 07-02-2004 12:57 AM
LFS package management aes12 Linux From Scratch 4 05-09-2003 09:46 AM
Package management in LFS CragStar Linux From Scratch 7 11-04-2002 02:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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