Skip to main content

BLFS-automation:

"A simple Python package that simplifies your BLFS project in many ways..."

About this project:

This project is designed for people who have built their own LinuxFromScratch (LFS) system, and are now working on the next stage - BeyondLinuxFromScratch (BLFS). BLFS packages often require many other dependencies to work, and sometimes it is a bit cumbersome to install all of those. blfs-pm aims to make it easier to install these packages without the stress of downloading everything and calculating, while simultaneously allowing you to still get the full build experience.

Download and installation:

To get a local copy up and running follow these steps.

Prerequisites:

  • A working LFS system (check them out at https://www.linuxfromscratch.org/)
  • A working internet connection - you may need to install a couple of BLFS packages like NetworkManager, DHCPClient, and WPA-supplicant.
  • A working Python environment
  • Python3 package manager (Pip)
  • Git (https://www.linuxfromscratch.org/blfs/view/svn/general/git.html)

Installation:

pip install blfs-pm

Usage:

It is recommended that the package should always be run as root, in order to prevent errors when installing packages to the system.

This package has many options to list, download, list commands, or install a given package. Note: once again it is highly recommended that you always run this as root!

Usage: blfs-pm [-h] [-a] [-b PACKAGE] [-c PACKAGE] [-d PACKAGE] [-f] [-l PACKAGE] [-o] [-r] [-s PACKAGE] [--systemd]

Note: It is recommended to follow along the installation process in the BLFS book. blfs-pm is not perfect and I have not tested every BLFS package. There are still some issues with circular dependencies, and at the moment it is best to monitor everything to prevent problems. Additionally, the -b (build) option will prompt the user to run EVERY command provided for the specific package. Some commands can only be run if optional dependencies are installed (like Texlive, Docbook, etc.). Furthermore, some packages require further kernel configuration (and recompilation) as a prerequisite for installation.

  -h, --help                        show this help message and exit

  -a, --all                         Downloads ALL BLFS packages - uses a lot of time and space.

  -b PACKAGE, --build PACKAGE       Install a given Package on the system.

  -c PACKAGE, --commands PACKAGE    List installation (without installing) commands for a given package.
  
  -d PACKAGE, --download PACKAGE    Downloads a given BLFS package along with all of its dependencies.

  -f, --force                       Force package installation even though it is already installed

  -l PACKAGE, --list PACKAGE        Lists all of the dependencies for a given BLFS package in order of installation.

  -o, --optional                    List/download optional packages.

  -r, --recommended                 List/download recommended packages.

  -s PACKAGE, --search PACKAGE      Search for a given package.
  --systemd                         Pass this flag if you built LFS with Systemd

Additional options:

Contributers:

Ahron Maslin (creator, maintainer, and designer), Josh W. (moral support), Dan the Man (Chief Psychologist)

Todo

  • implement different db's for different LFS versions
  • add --info flag to display information about a package
  • query to install a package if only one search result was found

Metadata

Release files for blfs-pm 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for blfs-pm 1.1.0
File Size Uploaded Provenance
blfs_pm-1.1.0.tar.gz 19.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for blfs-pm 1.1.0
File Interpreter ABI Platform
blfs_pm-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 37.3 kB

Release files / blfs_pm-1.1.0.tar.gz

Download URL blfs_pm-1.1.0.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a83f9235aead2d578340d940785a80bb76407cfa1c68ddde37f9333db5065097
BLAKE2b-256 checksum
How to use checksums
81ba7623a267834e5f5c35c1ba9ffbd5d62c903c7499e22e0a9e9a41e751ab91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.14

Release files / blfs_pm-1.1.0-py3-none-any.whl

Download URL blfs_pm-1.1.0-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e72a2751d461861b505dfcf6ecabe02d230c4ba3535afae71fbb8cc5ac5faeaf
BLAKE2b-256 checksum
How to use checksums
2d7bb892e2163d60c313cf0f7d8a7b83876829f89c9e4053efe1a26ff5724ec7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.14

Security for blfs-pm 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page