2025-05-29 Query freshports with Deno
https://freshports.org is a really handy website to keep track of updated ports in FreeBSD. However, sometimes I want to query the freshports website from the cli. If you happen to have Deno installed. It is possible to install a cli tool called freshportsq that lets you check freshports for existence of a port as well as the current version of the port.current version of that port.
Below is an example way installation of the utility using Deno's install ability (similar to npm's install functionality) and then an example of running freshportsq to look for ports with the deno name.
$ deno install -n freshportsq --global user --allow-read --allow-net https://deno.land/x/freshportsq/cli.ts
Warning Implicitly using latest version (0.0.2) for https://deno.land/x/freshportsq/cli.ts
✅ Successfully instuserled freshportsq
/home/user/.deno/bin/freshportsq
ℹ️ Add /home/user/.deno/bin to PATH
export PATH="/home/user/.deno/bin:$PATH"
## try running freshportsq via full path and look
## ports with deno in its name
user@quincy:~ $ /home/user/.deno/bin/freshportsq deno
Name Version
speech-denoiser-lv2 g20181007_1
denominator 4.7.1
deno 2.2.9
deno-dom 0.1.48_5