catalog
Find packages that provide a command
Reverse lookup: which package(s) provide the given command name.
Required Query Parameters:
- system: The system architecture to search for (e.g., x86_64-linux)
- name: The command name to look up (e.g., readelf, rg, gcc-13)
Returns:
- ByCommandResult: Providers of the command and total count
Note: first pass returns a hardcoded mock so the OpenAPI contract can freeze before the command_index table lands. No database query yet.
get/api/v1/catalog/by-command
Query parameters
system'aarch64-darwin' | 'aarch64-linux' | 'x86_64-darwin' | 'x86_64-linux' | 'invalid' required
namestring required
Response
Packages that provide the given command
Example response
{
"command_name": "readelf",
"listing_known": true,
"providers": [
{
"attr_path": "binutils",
"exact_name_match": false,
"pname": "binutils",
"system": "x86_64-linux"
}
],
"total_count": 1
}