https://github.com/bfontaine/up
one command to update all your package managers
https://github.com/bfontaine/up
cli shell tool
Last synced: about 1 month ago
JSON representation
one command to update all your package managers
- Host: GitHub
- URL: https://github.com/bfontaine/up
- Owner: bfontaine
- License: mit
- Created: 2014-02-14T16:11:18.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-01-05T12:30:06.000Z (over 11 years ago)
- Last Synced: 2025-03-23T23:43:42.272Z (over 1 year ago)
- Topics: cli, shell, tool
- Language: Shell
- Homepage:
- Size: 195 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# up
**up** is a command-line utility to upgrade packages managers. If you’re using
multiple managers, your workflow is something like this:
```sh
# 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:
```sh
up brew gem opam npm
# or just:
up
```
The tool is stable and I’ve used it almost every day for the past 10+ years.
## Installation
```sh
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:
```sh
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc
```
A [Bash autocomplete script][autocomp-bash] is available.
[autocomp-bash]: https://raw.github.com/bfontaine/up/master/utils/up.bash
### 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 # add a new command
up --rm # remove a command
up --list # list available commands
up --all # execute all commands
```
### Example
```sh
# 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
```