git.christianimmanuel.de / Linux From Scratch / dependency_collecter_for_lfs_packageuser_system

dependency_collecter_for_lfs_packageuser_system git · main

git clone https://git.christianimmanuel.de/linux-from-scratch/dependency_collecter_for_lfs_packageuser_system.gitwget https://git.christianimmanuel.de/linux-from-scratch/dependency_collecter_for_lfs_packageuser_system/archive/dependency_collecter_for_lfs_packageuser_system.tar.gz
d3a1519Add single transction with ChatGPT5.2Christian Immanuel · 2 months ago
-depscollector8.7 KB
-depslister5.4 KB
-Makefile660 B
-README.md1.3 KB

README.md

depscollector

I created two bash scripts, depscollector and depslister. depscollector collects all binary files and it dependencies within a sqlite db, depslister is used to get dependencies of a package.

As i use the packageuser system for LFS the database keeps track of the user and groups of each binary.

dependencis

  • sqlite3

install

make install

man depscollector

SYNOPSIS<br> depscollector [OPTION]

DESCRIPTION

-u
    Update the database by removing stale and adding new binaries.
-d DB_PATH
    Use specified database file (default: /var/lib/depscollector/depscollector.db).
-b BIN_DIR
    Scan binaries from specified directory (default: /usr/bin). Can be used multiple times.
-h
    Show this help message.

man depslister

SYNOPSIS<br> depslister [OPTION] [ARGUMENT]

DESCRIPTION

-u USER
    List all binaries owned by USER
-b BIN_NAME
    List libraries required by binary BIN_NAME
-lu USER
    List all libraries used by binaries owned by USER
-ldu USER
    List owners of libraries used by USER's binaries (who USER depends on)
-ldr USER
    List owners of binaries depending on libraries owned by USER (who depends on USER)
-a
    List all binaries in the database
-h
    Show this help message