Skip to content

Get Brew Packages to update, just like you've experienced from Ubuntu

License

Notifications You must be signed in to change notification settings

code-yeongyu/brew-updates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrewUpdates

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
  • 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: SSH-connected ubuntu screenshot

When you have installed BrewUpdates, you can see the following: demo

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

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/code-yeongyu/brew-updates/master/install/install.sh)"

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.


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 & Install

CGO_ENABLED=0 go build -a -o bin/brew-updates main.go; \
mv bin/brew-updates /usr/local/bin

Run!

./brew-updates

About

Get Brew Packages to update, just like you've experienced from Ubuntu

Topics

Resources

License

Stars

Watchers

Forks