Crates.io | fast-shlibdeps |
lib.rs | fast-shlibdeps |
version | 0.3.0 |
created_at | 2025-06-10 04:44:33.284865+00 |
updated_at | 2025-06-11 02:42:12.023245+00 |
description | A fast ELF shared library dependency analyzer for Debian-based systems |
homepage | |
repository | https://gitlab.com/piperswe/fast-shlibdeps |
max_upload_size | |
id | 1706653 |
size | 77,171 |
A fast ELF shared library dependency analyzer for Debian-based systems. This tool analyzes ELF binaries to determine their shared library dependencies and maps them to Debian packages, providing output suitable for generating package dependencies.
This all happens in-process, allowing you to scan a massive directory tree without any subprocess overhead.
This tool was built to speed up my cursed Debian package building project, where I'm looking to build some packages without exactly adhering to Policy.
cargo install --locked fast-shlibdeps
# Analyze a single binary
fast-shlibdeps /usr/bin/ls
# Analyze multiple binaries
fast-shlibdeps /usr/bin/ls /usr/bin/cat
# Analyze all binaries in a directory recursively
fast-shlibdeps /usr/local/bin/
The tool outputs a comma-separated list of package dependencies with minimum version requirements:
libc6 (>=2.39-0ubuntu8.3), libssl3t64 (>=3.0.13-0ubuntu3.4), zlib1g (>=1:1.3.dfsg+really1.3.1-1ubuntu0.1)
fast-shlibdeps
is optimized for speed:
ldd
or objdump
dpkg-query
This project is licensed under the CC0 License - see the LICENSE.md
file for details.
This tool was built with the help of Claude Code. This README was significantly written by Claude. I wanted to get this quickly built, so I took a shortcut.