Recently, I updated the firmware on my BlueSCSI v1 SCSI emulator. Unfortunately, the update script installed a lot of packages through brew… Yay!
I didn’t want those package sitting on my Mac after the update. The issue, is figuring out what the script installed (and the dependencies). Brew will only list installed packages, not recently installed packages. So I turned to the simi-random word generator, ChatGPT.
Asking it if there was a way to list recently install Brew packages, it barfed out this.
for pkg in $(brew list); do stat -f "%N: %Sm" $(brew --cellar)/$pkg; done | sort -k2
Thankfully, that actually worked. Printing out a nice list of packages, and install time stamps.
...
/opt/homebrew/Cellar/rsync: Jan 15 23:41:38 2025
/opt/homebrew/Cellar/fontconfig: Jan 18 13:56:22 2025
/opt/homebrew/Cellar/libzip: Jan 19 01:11:54 2025
/opt/homebrew/Cellar/tldr: Jan 19 01:11:54 2025
/opt/homebrew/Cellar/pango: Jan 20 12:58:12 2025
/opt/homebrew/Cellar/autoconf: Jan 20 20:40:51 2025
/opt/homebrew/Cellar/automake: Jan 20 20:40:51 2025
/opt/homebrew/Cellar/texinfo: Jan 20 20:40:51 2025
/opt/homebrew/Cellar/capstone: Jan 20 20:40:53 2025
/opt/homebrew/Cellar/hidapi: Jan 20 20:40:53 2025
/opt/homebrew/Cellar/pkgconf: Jan 20 20:40:53 2025
/opt/homebrew/Cellar/confuse: Jan 20 20:40:54 2025
/opt/homebrew/Cellar/libftdi: Jan 20 20:40:54 2025
/opt/homebrew/Cellar/open-ocd: Jan 20 20:40:58 2025
/opt/homebrew/Cellar/dfu-util: Jan 20 20:41:42 2025
Defiantly going to save this little script. It’ll probably come in handy again.