This script automates the process of updating outdated Homebrew apps on your macOS system and sends an SMS notification using Twilio. It ensures your software is up-to-date while keeping you informed of the changes. Follow these steps to install and run the script on your system.
- Python 3.x installed on your system
- A Twilio account with the necessary credentials (account SID, auth token, and phone numbers)
- Homebrew installed on your macOS system
Clone the Repository:
git clone https://github.com/darth-assan/auto-apps-updater.git
cd auto-apps-updater
Use pip to install the required Python libraries. Run this command in your terminal:
pip3 install -r requirements.txt
Create a .env file in the script directory with the following content:
TWILIO_ACCOUNT_SID=your_twilio_account_sid
TWILIO_AUTH_TOKEN=your_twilio_auth_token
TWILIO_PHONE_NUMBER=your_twilio_phone_number
RECIPIENT_PHONE_NUMBER=your_recipient_phone_number
Replace your_twilio_account_sid, your_twilio_auth_token, your_twilio_phone_number, and your_recipient_phone_number with your actual Twilio credentials and phone numbers.
Open your terminal, navigate to the script directory, and run the script:
python updater.py
The script will update outdated Homebrew apps and send an SMS notification via Twilio.
Running the script will check for outdated Homebrew apps, update them, and send an SMS notification with the update details using Twilio.
For the ultimate in hands-free management, set up a cron job to run your script at designated intervals.
- Step 1: Edit Crontab
Open your terminal and type:
crontab -e
- Step 2: Add the Cron Job
eg: Insert this line to run your script every Monday at 3:00 PM:
0 15 * * 1 /path/to/your/python3 /path/to/your/script.py