Skip to content

Instantly share code, notes, and snippets.

@TravelingTechGuy
Created June 3, 2013 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TravelingTechGuy/5696475 to your computer and use it in GitHub Desktop.
Save TravelingTechGuy/5696475 to your computer and use it in GitHub Desktop.
Update all Mac Ports - run with `sudo`
#!/usr/bin/env bash
# This a simple bash script outlining the procedures to get macports on OS X
# to auto update weekly via the ~/Library/LaunchAgents/net.ipatch.macportsUpdate.plist
# The first step is to update the port files
echo "Step 1: Update port tree"
port selfupdate
# The second step is to upgrade the outdated
echo "Step 2: Upgrade outdated"
port upgrade outdated
# The third step is to remove inactive ports
echo "Step 3: Remove inactive ports"
port uninstall inactive
# The fourth step is to clean the vile
echo "Step 4: Clean the vile"
port clean --all vile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment