Fast sharded-index replacement for apt-file search on Debian/Ubuntu.
Project description
apt-file-fast
A fast replacement for apt-file search on Debian/Ubuntu — with dramatically faster index creation.
apt-file-fast builds and maintains a local search index of the files provided by your
installed packages. Updates are incremental: only the data for packages added, removed, or
changed since the last run is rewritten, so refreshing after apt install / apt upgrade
is orders of magnitude faster than apt-file update.
Requirements
- Debian or Ubuntu
- Python 3.10+
ripgrep(apt install ripgrep)
Install
From PyPI (recommended)
uv tool install apt-file-fast
Or run it one-shot without installing:
uvx apt-file-fast --help
From source
git clone https://github.com/izumo-m/apt-file-fast.git
cd apt-file-fast
uv sync
uv run apt-file-fast --help
Usage
Build or refresh the index (run once, then after every apt install/apt upgrade):
apt-file-fast update
Search for a file across all installed packages:
apt-file-fast search ls
apt-file-fast search -i README # case-insensitive
apt-file-fast search -x '^/usr/bin/py.*' # regex
Clear the cache:
apt-file-fast clean
Options
| Option | Scope | Description |
|---|---|---|
--cache-dir PATH |
all commands | Override cache location |
-i, --ignore-case |
search |
Case-insensitive match |
-x, --regexp |
search |
Treat the query as a regex |
See apt-file-fast --help for the full list of options.
License
MIT © 2026 Masanao Izumo
Contributors and maintainers: see
docs/development.md
for internals and the release process.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file apt_file_fast-0.1.0.tar.gz.
File metadata
- Download URL: apt_file_fast-0.1.0.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b0cbd9ff8cb279de5536847e4cc80287b688ae5d7b4f0a71ac883e3477256f0
|
|
| MD5 |
c9b2c3ffde9ca31c9c81cf097a7a74c3
|
|
| BLAKE2b-256 |
b33dcfa3bc12b8980ef4754693d296d3620d4caeb39d56ccf74cf512b1da2ab4
|
File details
Details for the file apt_file_fast-0.1.0-py3-none-any.whl.
File metadata
- Download URL: apt_file_fast-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04e90ef164023713f224ed3bee90593d94639f5f11fc04d382f5bdae58ad9c0a
|
|
| MD5 |
baae209be31098396acdd988112ae2fc
|
|
| BLAKE2b-256 |
238dff05ac9a5c83b613ed6bc7e97feeac26f67606f907c8226c55c614802cbd
|