Pages
  • life with BSD
  • 2025-06-05 Ripgrep or ripgrep-all
  • 2025-06-02 Ripgrep a nice Rust utility for ports spelunking
  • 2025-05-31 Get started with gpui on FreeBSD
  • 2025-05-29 Query freshports with Deno
  • 2025-05-27 Trying out Defuddle an npm tool via Deno
  • 2025-05-25 Deno for FreeBSD
  • 2025-05-23 A new beginning
life with BSD
  • life with BSD
  • 2025-06-05 Ripgrep or ripgrep-all
  • 2025-06-02 Ripgrep a nice Rust utility for ports spelunking
  • 2025-05-31 Get started with gpui on FreeBSD
  • 2025-05-29 Query freshports with Deno
  • 2025-05-27 Trying out Defuddle an npm tool via Deno
  • 2025-05-25 Deno for FreeBSD
  • 2025-05-23 A new beginning

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
PREVRANDOMNEXT