A Python script to parse and store file-to-package mappings from Debian and Ubuntu content archives, functioning as an offline alternative to the apt-file tool.
This script extracts and parses mappings from content-*.gz files for Debian and Ubuntu, storing the information in an SQLite database.
The download script is set to fetch recent versions of Debian and Ubuntu. For other distributions, a similar approach can be followed.