Is there an alternative for ppasearch (command-line app) in newer versions of Ubuntu?
ppasearch is only avaiable for 10.10, 10.04 and 9.10.
If you're looking to search for a PPA which contains a certain package, you can use the PPA search feature in Y PPA Manager (by WebUp8).
Install it with these commands:
sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install y-ppa-manager
Run it by searching for Y PPA Manager in the Dash.
Click on the "Search in all Launchpad PPAs" button.
Enter your admin password if prompted.
Enter the package name you want to search for.
Enable the "Basis search" if you want it to go faster, but with less info
Click "OK". A notification will appear informing you that the search has started,
wait for a new window with PPAs to appear.
You can then choose to add a PPA and other actions.
As a side note, Y PPA Manager also includes a handy utility called update-ppa
. It's like apt-get update
, but only for one PPA.
Usage:
sudo -H update-ppa ppa:webupd8team/y-ppa-manager
(replace ppa:webupd8team/y-ppa-manager
with the PPA, with a similar format)
very easy python script derived from this gist :
#!/usr/bin/env python
import sys, json
cachedir = "/tmp/ppasearch"
from launchpadlib.launchpad import Launchpad
launchpad = Launchpad.login_anonymously('mc-ppa-test', 'production', cachedir)
potential = launchpad.projects.search(text=sys.argv[1])
for p in potential:
print(p.display_name + "\t" + (p.description or "")[:60] + "\t" + p.web_link)
as alternative, i am trying to query the official web API directly with curl but i am not sure how to fetch the results:
$ curl "https://api.launchpad.net/1.0/projects/+search?field.text=$PACKAGE_NAME"
Object: <lp.registry.model.product.ProductSet object at 0x7f1d80be5df0>, name: '+search'
ppasearch
originally do? – kiri Jan 11 '14 at 07:02apt search
but for ppa's – Jonathan May 29 '18 at 22:28