Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/code-yeongyu/brew-updates
Get Brew Packages to update, just like you've experienced from Ubuntu
https://github.com/code-yeongyu/brew-updates
brew mac macos shell terminal utility
Last synced: 13 days ago
JSON representation
Get Brew Packages to update, just like you've experienced from Ubuntu
- Host: GitHub
- URL: https://github.com/code-yeongyu/brew-updates
- Owner: code-yeongyu
- License: mit
- Created: 2021-09-15T14:20:30.000Z (about 3 years ago)
- Default Branch: develop
- Last Pushed: 2021-10-17T09:08:47.000Z (about 3 years ago)
- Last Synced: 2024-10-04T21:43:34.065Z (about 1 month ago)
- Topics: brew, mac, macos, shell, terminal, utility
- Language: Go
- Homepage:
- Size: 721 KB
- Stars: 12
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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](docs/images/ubuntu-execution.png)When you have installed BrewUpdates, you can see the following:
![demo](docs/images/execution.png)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
```sh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```### Install go
```sh
brew install go
```### Clone this repository
```sh
git clone [email protected]:code-yeongyu/brew-updates.git
```### Install dependencies
```sh
cd src/
go mod tidy
```### Compile & Install
```sh
CGO_ENABLED=0 go build -a -o bin/brew-updates main.go; \
mv bin/brew-updates /usr/local/bin
```### Run!
```sh
./brew-updates
```---