Skip to content

Instantly share code, notes, and snippets.

@claui
Last active July 18, 2025 19:56
Show Gist options
  • Save claui/ea55c73904845c438349c57b4edd4d84 to your computer and use it in GitHub Desktop.
Save claui/ea55c73904845c438349c57b4edd4d84 to your computer and use it in GitHub Desktop.
OpenSearch descriptor for Debian packages
<?xml version="1.0" encoding="utf-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Debian packages</ShortName>
<Description>Search for packages by name on packages.debian.org</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">https://www.debian.org/favicon.ico</Image>
<Image width="50" height="61" type="image/png">https://www.debian.org/Pics/openlogo-50.png</Image>
<Url type="text/html" template="https://packages.debian.org/search">
<Param name="searchon" value="names"/>
<Param name="keywords" value="{searchTerms}"/>
</Url>
</OpenSearchDescription>
@claui
Copy link
Author

claui commented Jul 18, 2025

To add this search extension to Firefox:

  1. Navigate to about:config.
  2. Set the devtools.chrome.enabled preference to true.
  3. Open Browser Console.
    Caution: that’s not the Developer Tools console. It’s something entirely different.
  4. Paste the following code snippet into the Browser Console:
await Services.search.addOpenSearchEngine(
  'https://gist.githubusercontent.com/claui/ea55c73904845c438349c57b4edd4d84'
    + '/raw/b0a916666608545cf050511f4262ad79739fe125/opensearch-debian-packages.xml',
  null
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment