Package Manager for Linux From Scratch
Package Manager for Linux From Scratch
This is a package manager for system built using Linux From Scratch. It is based on btrfstools and hence will required your ‘/‘ to be formatted with btrfs filesystem. It uses btrfs’s snapshot feature to install and then listout the files created during the installation.
You’ll need to configure following things before using this utility by modifying the /etc/pkgmgr.conf file.
After doing configure
and make
instead of doing make install
, run pkgmgr as pkgmgr install <package name>
as root (or using sudo). If the command to install the package is not make install
or has some variation to make install
e.g. make PREFIX=/usr install
you should run pkgmgr install <package name> 1 '' <install command>
To list the packages that currently pkgmgr knows of use pkgmgr list
To list the files installed by a package, use pkgmgr listfiles <package name>
pkgmgr remove <package name>
To remove a package permanently:pkgmgr premove <package name>
To install PyGTK-2.24.0,
cd pygtk-2.24.0
./configure --prefix=/usr
make
sudo pkgmgr install pygtk-2.24.0
btrfs has snapshot feature and has facility to list the files created between two marker files in the snapshot. So, this utility creates a starting marker, create thes snapshot/subvolume, installs the package using the provided command (or make install
by default) and then does subvolume find-new
to get the list of files installed by the make install
command. Creates an archives from the file list and extracts it in ‘/‘. It also keeps a INSTALL.log file with the package files containing the details. It keeps the name of the package in flat file under ‘metadata’ directory.