Skip to content

Instantly share code, notes, and snippets.

@alexjj
Created July 28, 2015 20:46
Show Gist options
  • Save alexjj/44943a5c6bdf79a31b34 to your computer and use it in GitHub Desktop.
Save alexjj/44943a5c6bdf79a31b34 to your computer and use it in GitHub Desktop.
FreeBSD Ports update check script
#!/bin/sh
/usr/sbin/portsnap fetch update && \
/usr/local/sbin/portmaster -L --index-only | egrep '(ew|ort) version|total install'
echo -n "Last update: "
date -r `pkg query %t | sort | tail -n1` "+%Y%m%d"
@alexjj
Copy link
Author

alexjj commented Jul 28, 2015

Run with sudo.
Obviously uses portmaster.

Shows what ports have updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment