Created
June 3, 2013 06:51
-
-
Save TravelingTechGuy/5696475 to your computer and use it in GitHub Desktop.
Update all Mac Ports - run with `sudo`
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
#!/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