# Bash Installer If you are collaborating with others, chances that not everyone's on the same OS are good. If you want to avoid "running on my machine" kind of problems, just share an installer script for your favorite binaries installers/ upgrader/ uninstallers. This is one way to do it. This is a simple installer script that selects different installation methods based on the OS you are running this on. ## How to Just replace `@TODO` with whatever you are installing. Make sure to adjust the different installation methods some project/ program offers. **Linux** currently is running a Git clone installer that symlinks into some `$PATH` supporting place. This does _not_ clone the complete repo, but just the last commit! ## Uninstallation ### Git If you need to uninstall something you cloned via Git, just run `rm -rf --preserve-root` on the directory you cloned to. Maybe use `echo rm -rf /path/to/dir` first to check the output. ### Homebrew Just run `brew uninstall foo` or the same for `cask`. ### Package Managers Again, just refer to the usual process. ## Upgrading ### Git Just run a `git fetch` followed by a `git pull` ## Upgrading. ## Upgrading ### Homebrew The usual `brew update` followed by `brew upgrade foo` and `brew cask upgrade foo`. You can script that too. ### Package Managers of all sorts All other package managers support the same procdure: Fetch the most current list, then upgrade.