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.
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!
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.
Just run brew uninstall foo
or the same for cask
.
Again, just refer to the usual process.
Just run a git fetch
followed by a git pull
The usual brew update
followed by brew upgrade foo
and brew cask upgrade foo
. You can script that too.
All other package managers support the same procdure: Fetch the most current list, then upgrade.