Simple CLI search for packages

Command pf (Package Finder) can search packages with a little easier syntax than yay or pacman.

For example, to search packages using words pdf and cups can be done as follows:

    pf pdf cups       # search both official and AUR software
    pf -o pdf cups    # search only official packages
    pf -a pdf cups    # search only AUR software

You can download and install it like this:

    wget https://github.com/endeavouros-team/User-contributions/raw/master/manuel/pf
    chmod +x pf
    sudo cp pf /usr/local/bin
7 Likes
$ pf pdf cups 
aur/cups-pdf-to-pdf-git 3.0.1_r7.63ab5e7-1 (+1 0.00%) 
    CUPS-PDF v3 with text print support
aur/cups-ocr 0.1.2-4 (+1 0.00%) 
    Print directly to a tiff file which feeds an OCR engine which will output a text file. Modelled after cups-pdf.
extra/cups-pdf 3.0.1-5 (23.8 KiB 197.2 KiB) (Installed)
    PDF printer for cups
$ pf -o pdf cups
extra/cups-pdf 3.0.1-5 (23.8 KiB 197.2 KiB) (Installed)
    PDF printer for cups
$ pf -a pdf cups 
aur/cups-pdf-to-pdf-git 3.0.1_r7.63ab5e7-1 (+1 0.00%) 
    CUPS-PDF v3 with text print support
aur/cups-ocr 0.1.2-4 (+1 0.00%) 
    Print directly to a tiff file which feeds an OCR engine which will output a text file. Modelled after cups-pdf.

Very good contribution and thanks!
:ok_hand:

1 Like

Works nicely :slight_smile:

pf -o "theme|icon" "^e.*os"                                                                    
endeavouros/grub2-theme-endeavouros 20190711-4 (960.4 KiB 2.5 MiB) 
    EndeavourOS grub2 theme
endeavouros/endeavouros-theming 5-1 (5.5 MiB 6.2 MiB) (Installed)
    Default EndeavourOS background images and icons for all different DE

But if I provide an illegal option there’s a little typo I believe:

pf: illegal option -- v
Error: unsupport option '?'

Shouldn’t it be “unsupported”?

2 Likes

Thanks, you’re right! :smile:
I’ll fix it as soon as possible.

2 Likes