Created
July 28, 2015 20:46
-
-
Save alexjj/44943a5c6bdf79a31b34 to your computer and use it in GitHub Desktop.
FreeBSD Ports update check script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run with sudo.
Obviously uses portmaster.
Shows what ports have updates.