All Projects → DomT4 → Homebrew Autoupdate

DomT4 / Homebrew Autoupdate

Licence: bsd-2-clause
🍹 An easy, convenient way to automatically update Homebrew.

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Homebrew Autoupdate

Luma3ds
Noob-proof (N)3DS "Custom Firmware"
Stars: ✭ 3,313 (+817.73%)
Mutual labels:  homebrew
Devmymac
✨ ✨ A Simple Tool To Setup A Mac for Development✨✨
Stars: ✭ 312 (-13.57%)
Mutual labels:  homebrew
Homebrew Osgeo4mac
Mac homebrew tap for maintaining a stable work environment for the OSGeo.org geospatial toolset
Stars: ✭ 329 (-8.86%)
Mutual labels:  homebrew
Homebrew Cask Drivers
🖨 Casks of Drivers
Stars: ✭ 295 (-18.28%)
Mutual labels:  homebrew
Mac Dev Playbook
Mac setup and configuration via Ansible.
Stars: ✭ 4,202 (+1063.99%)
Mutual labels:  homebrew
Ulaunch
🚀 Custom, open-source qlaunch (Nintendo Switch HOME menu) replacement/reimplementation
Stars: ✭ 313 (-13.3%)
Mutual labels:  homebrew
Edizon cheatsconfigsandscripts
The official EdiZon Editor Config and Editor Script repository.
Stars: ✭ 271 (-24.93%)
Mutual labels:  homebrew
Cave Story Md
A fan port of Cave Story for the Sega Mega Drive
Stars: ✭ 354 (-1.94%)
Mutual labels:  homebrew
Whalebrew
Homebrew, but with Docker images
Stars: ✭ 3,352 (+828.53%)
Mutual labels:  homebrew
Ros Install Osx
Installing ROS on OS X.
Stars: ✭ 329 (-8.86%)
Mutual labels:  homebrew
Mac os Config
Shell scripts for customized macOS machine setup and configuration.
Stars: ✭ 298 (-17.45%)
Mutual labels:  homebrew
Mockserver
MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby. MockServer also includes a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i.e. HTTP proxy), HTTPS Tunneling Proxying (using HTTP CONNECT) and…
Stars: ✭ 3,479 (+863.71%)
Mutual labels:  homebrew
8bitworkshop
web-based IDE for 8-bit programming and Verilog development
Stars: ✭ 309 (-14.4%)
Mutual labels:  homebrew
Homebrew Avr
Homebrew AVR Toolchain
Stars: ✭ 294 (-18.56%)
Mutual labels:  homebrew
Mac os
Shell scripts for automated macOS machine setup.
Stars: ✭ 336 (-6.93%)
Mutual labels:  homebrew
Aio Switch Updater
All-in-One Nintendo Switch Updater
Stars: ✭ 272 (-24.65%)
Mutual labels:  homebrew
Homebrew Php
🍺 Homebrew tap for PHP 5.6 to 8.1. PHP 8.1 is a nightly build.
Stars: ✭ 304 (-15.79%)
Mutual labels:  homebrew
Homebrew V2ray
The homebrew tap for v2ray-core.
Stars: ✭ 357 (-1.11%)
Mutual labels:  homebrew
Nxdumptool
Generates XCI/NSP/HFS0/ExeFS/RomFS/Certificate/Ticket dumps from Nintendo Switch gamecards and installed SD/eMMC titles.
Stars: ✭ 345 (-4.43%)
Mutual labels:  homebrew
Redisapp
The easiest way to get started with Redis on the Mac
Stars: ✭ 316 (-12.47%)
Mutual labels:  homebrew

Homebrew-autoupdate

An easy, convenient way to automatically update Homebrew.

This script will run brew update in the background once every 24 hours (by default) until explicitly told to stop, utilising launchd.

brew upgrade and brew cleanup can also be handled automatically but are optional flags.

Notifications are enabled by default on macOS Big Sur using a new, codesigned AppleScript applet. On older versions of macOS, if you have terminal-notifier installed you can also request desktop notifications when this command runs.

Installing this command

Just brew tap domt4/autoupdate.

Usage

brew autoupdate --start [interval] [--upgrade] [--cleanup] [--enable-notification]:
  Start autoupdating either once every interval hours or once every 24 hours.
  Please note the interval has to be passed in seconds, so 12 hours would be:
    brew autoupdate --start 43200.

  If --upgrade is specified, autoupdate will also upgrade your installed
  formulae. If the Caskroom exists locally Casks will be upgraded as well.

  If --cleanup is specified, autoupdate will also automatically clean
  brew's cache and logs.

  If --enable-notification is specified, autoupdate will send a notification
  when the autoupdate process has finished successfully, if terminal-notifier
  is installed & found. Note that currently a new experimental notifier runs
  automatically on macOS Big Sur, without requiring any external dependencies.

 autoupdate --stop:
  Stop autoupdating, but retain plist & logs.

 autoupdate --delete:
  Cancel the autoupdate, delete the plist and logs.

 autoupdate --status:
  Prints the current status of this tool.

 autoupdate --version:
  Output this tool's current version.

Logs of the performed operations can be found at: ~/Library/Logs/com.github.domt4.homebrew-autoupdate

This Vs brew's built-in autoupdate mechanism

This command mostly exists to ensure Homebrew is updated regardless of whether you invoke brew or not, which is the primary difference from the autoupdate mechanism built into brew, the latter requiring a user to explicitly run any of brew install, brew tap or brew upgrade.

If you run brew commands regularly yourself, you may wish to consider using the built-in autoupdate mechanism, which can be instructed to autoupdate less often or disabled entirely. If you wish to update every 24 hours using the built-in autoupdate mechanism set this in your environment:

export HOMEBREW_AUTO_UPDATE_SECS="86400"

or if you wish to disable the built-in autoupdate mechanism entirely:

export HOMEBREW_NO_AUTO_UPDATE="1"

Please note that Homebrew themselves slightly frown upon people disabling the built-in autoupdate mechanism.

TO-DO (PRs Welcome)

  • Complete broader testing and roll-out of new, experimental notification support added in 6365cc020 that doesn't require or use any external dependencies, using only an Applescript applet. Related Issue

  • Decide what to do about Cask upgrades which require sudo to succeed and currently just hang when that situation is encountered, unless using SUDO_ASKPASS. Related Issue

License

Code is under the BSD 2 Clause (NetBSD) license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].