Package Management and such (Was RE: Website)

linux fan linuxscratch at gmail.com
Mon Aug 2 07:56:43 PDT 2010


DJ Lucas wrote:
>
> Berkeley DB could be done easily enough I think.

Flat text files allow processing via command line tools such as grep,
sed, awk, perl, bash, etcetera. Does a DB require an esoteric API that
can get in someone's way?

>
> if everything were properly accounted for,
> prior to installation

Choice in LFS seems to thwart the possibility of an existing list of
files which means that everything cannot (easily) be accounted for
prior to pressing ENTER.
I use a find-before and a find-after and then process the diff with
awk which enables me to detect whether a file was new or modified. It
only serves as a reality check before I start deleting (uninstall). By
the way, I put the md5sum in the list which enables detection of files
that were modified, hopefully by me, hopefully on purpose. It also
enables detection of files that were not deleted (if uninstalled) due
to me being "chicken" to delete files in /etc or otherwise. I wouldn't
want to be without my installation logs. I even use them to make a
tarballs before uninstalling in case I change my mind.

Files in "DESTDIR" are not the only files that will be "installed".
There are those installs which perform operations over potentially
pre-existing (random) files. Ex: daemon user/groups, additions to a
conf file, info, gconf, etc.

It is those things to look out for in the fakeroot hint which have scared me.

Kevin Buckley wrote:
>
> find / -newer SOME_TIMESTAMP_FILE -ls
>
> where SOME_TIMESTAMP_FILE is touched after every package install
> would seem to do all that one wants.

Thousands of files may change between installs, especially in BLFS. A
system is not always built in twenty minutes from start to finish.


I ponder Slackware, how similar a slackbuild script seems to LFS. The
biggest difference is that LFS is "Your system, Your rules", not
theirs.

I applaud discussions of hooks that can be (opionally) used to manage
packages, such as DESTDIR and file logging. If it miraculously evolves
to a near-package-manager, or even helpful notes, that would be
wonderful.



More information about the lfs-dev mailing list