Skip to main content

Search Ubuntu packages.

Project description

apt-search

Search Ubuntu packages.

Motivation

I needed a way to find the right package for missing header files. I tried apt-file, but for some reason it was constantly complaining with

E: The cache is empty. You need to run "apt-file update" first.

The alternative was to search the Ubuntu packages in the browser, but I wanted a tool for the CLI. So I had the idea to parse the HTML search result and give a nice terminal output.

Installation

Use pip or pipx for installation:

pip install --user apt-search
# or
pipx install apt-search

Usage

Just execute the apt-search command with the filename you are looking for:

apt-search --help
# Usage: main.py [OPTIONS] FILENAME
#
# Arguments:
#   FILENAME  [required]
#
# Options:
#   --suite TEXT                    [default: jammy]
#   --arch TEXT                     [default: any]
#   --help                          Show this message and exit.

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_search-0.1.3.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

apt_search-0.1.3-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

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