Get the number of Brew Packages to update, just like you've experienced from Ubuntu
BrewUpdate is a simple utility written in Go, notify you how many packages to update every time when you execute the terminal.
This project is currently in progress, so the following features cannot work as expected.
The key features are:
- Fast: Caching the packages to update
- The execution time of
brew update; brew outdated
:7.42 seconds
- The execution best time of
brew-updates
(cached):271.91 millis
- approximately 27x faster
- The execution time of
- Easy: Simply downloadable using brew
- Easy to setup: Just by specifying what shell you use, the setup can be done
- Friendly: The apt-like notifications from brew
Example
When you open terminal in ubuntu, you can see the following:
When you have installed BrewUpdates, you can see the following:
You can do the similar thing with the brew update; brew upgrade
command, which takes a few seconds.
With the BrewUpdates, your update history will be recorded locally so you don't have to wait for a few seconds to get result.
Installation
I have plan to upload this project to the brew, so that you can download easily.
However, still I got some works to do, so currently it's not supported to install automatically using brew.
The other option you can use right now, is to build it.
FYI, after you build and got the binary, you can add the path of your binary into your shell configs like .bashrc
Therefore, add the execution command of brew-updates like:
...
./Users/yeongyu/workspaces/brew-updates/src
Build
Follow the below instructions sequentially. Let's start with the installing brew
and go
. You can skip installing it if you already have it.
Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install go
brew install go
Clone this repository
git clone [email protected]:code-yeongyu/brew-updates.git
Install dependencies
cd src/
go mod tidy
Compile
go build .
Run!
./brew-updates