Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apt_file_fast-0.1.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apt_file_fast-0.1.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

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

Hashes for apt_file_fast-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7b0cbd9ff8cb279de5536847e4cc80287b688ae5d7b4f0a71ac883e3477256f0
MD5 c9b2c3ffde9ca31c9c81cf097a7a74c3
BLAKE2b-256 b33dcfa3bc12b8980ef4754693d296d3620d4caeb39d56ccf74cf512b1da2ab4

See more details on using hashes here.

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

Hashes for apt_file_fast-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04e90ef164023713f224ed3bee90593d94639f5f11fc04d382f5bdae58ad9c0a
MD5 baae209be31098396acdd988112ae2fc
BLAKE2b-256 238dff05ac9a5c83b613ed6bc7e97feeac26f67606f907c8226c55c614802cbd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page