Hello there,<br><br>I am developing a Gnome Shell extension which shows available software to install. The user can type, for example, "opent" and then just click "openttd" to install the package. It's pretty decent. :-) <a href="https://extensions.gnome.org/extension/95/appsearch/">https://extensions.gnome.org/extension/95/appsearch/</a><br>
<br>This works all fine on Debian/Ubuntu using "apt-cache pkgnames [ prefix ]". I am doing my best to support PackageKit as well but getting the results fast enough is a bit problematic.<br><br>At the moment I use<span class="s2"> "pkcon </span><span class="p"></span><span class="s2">-p </span><span class="s2">resolve <search_term>" which </span>is very quick and works fine, however, this works only for exact matches. <br>
<br>I have experimented with "pkcon -p search name <search_term>" and indeed it works fine but it's just too slow for this use case :-( ... it can take up to several  (sometimes more than 5) seconds to get results.<br>
<br>Is there a faster way to get all available packages with names matching a pattern? (No need for regex or so, actually, just prefix match will do)<br><br>Thanks!<br>Lukas<br>