#!/bin/sh find /var/cache/pkg -maxdepth 2 -type f -ls 2>/dev/null | head url=https://pkg.FreeBSD.org/FreeBSD:13:amd64/latest/All/lp_solve-5.5.2.5.pkg echo $url curl -I -L -m 3 $url 2>&1 | head -n12