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| d3a1519 | Add single transction with ChatGPT5.2 | Christian Immanuel · 2 months ago |
| - | depscollector | 8.7 KB |
| - | depslister | 5.4 KB |
| - | Makefile | 660 B |
| - | README.md | 1.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 installman 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