Skip to content

bfontaine/up

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

up

up is a command-line utility to upgrade packages managers. If you’re using multiple managers, your workflow is something like this:

# upgrade homebrew
brew update && brew upgrade
# upgrade gems
gem update
# update opam
opam update && opam upgrade
# update npm
npm -g update
# etc

With up, it can be reduced to:

up brew gem opam npm

Installation

mkdir -p ~/bin
curl -s https://raw.github.com/bfontaine/up/master/bin/up > ~/bin/up
chmod u+x ~/bin/up

If ~/bin is not in your PATH, you have to add it:

echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc

A Bash autocomplete script is available.

Using homebrew

brew tap bfontaine/utils
brew install up

Usage

up takes either a set of aliases or one of the following options:

up --help                  # show help and exit
up --version               # show version and exit
up --add <alias> <command> # add a new command
up --rm <alias>            # remove a command
up --list                  # list available commands
up --all                   # execute all commands

Example

# add a command
up --add rvmall 'rvm all do gem update'

# execute a command
up rvmall

# execute multiple commands sequentially
up npm rvmall apt-get

# remove a command
up --rm rvmall

About

one command to update all your package managers

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages