Using Homebrew on Macintosh OSX is not too dissimilar to the apt system in Debian. This is very easy to upgrade when package updates come out.
There are very simple commands that do not require sudo access.
Run this command to check for package updates.
()deusexmachina.local-_
(05:30 pm)~ $> brew update
This downloads all information about all pending package updates.
Then, run this command to download and install all pending updates.
()deusexmachina.local-_
(05:30 pm)~ $> brew upgrade
This might take a while, but this is very reliable and even cleans up after itself after the process is complete.
==> Running `brew cleanup nghttp2`...
Removing: /usr/local/Cellar/nghttp2/1.56.0... (17 files, 2.3MB)
Removing: /Users/jason/Library/Caches/Homebrew/nghttp2--1.56.0... (801.2KB)
==> `brew cleanup` has not been run in the last 30 days, running now...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /Users/jason/Library/Caches/Homebrew/portable-ruby-2.6.10_1.el_capitan.bottle.tar.gz... (8.7MB)
Removing: /Users/jason/Library/Logs/Homebrew/openssl@3... (64B)
Removing: /Users/jason/Library/Logs/Homebrew/[email protected]... (64B)
Pruned 0 symbolic links and 12 directories from /usr/local
==> Caveats
==> php
To enable PHP in Apache add the following to httpd.conf and restart Apache:
LoadModule php_module /usr/local/opt/php/lib/httpd/modules/libphp.so
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
Finally, check DirectoryIndex includes index.php
DirectoryIndex index.php index.html
The php.ini and php-fpm.ini file can be found in:
/usr/local/etc/php/8.3/
To start php now and restart at login:
brew services start php
Or, if you don't want/need a background service you can just run:
/usr/local/opt/php/sbin/php-fpm --nodaemonize
==> mpv
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> git
The Tcl/Tk GUIs (e.g. gitk, git-gui) are now in the `git-gui` formula.
Subversion interoperability (git-svn) is now in the `git-svn` formula.
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
To install a package, use this simple command. This is very easy.
(05:30 pm)~ $> brew install golang
==> Downloading https://formulae.brew.sh/api/formula.jws.json
==> Downloading https://formulae.brew.sh/api/cask.jws.json
==> Downloading https://ghcr.io/v2/homebrew/core/go/manifests/1.21.5
################################################################################################################################################################################################ 100.0%
==> Fetching go
==> Downloading https://ghcr.io/v2/homebrew/core/go/blobs/sha256:c1f94bfd04d78ed1f5ae06892fe413bf0a63ce8c174e82c20c33e3704bd3c9c7
################################################################################################################################################################################################ 100.0%
==> Pouring go--1.21.5.monterey.bottle.tar.gz
๐บ /usr/local/Cellar/go/1.21.5: 12,543 files, 242.7MB
==> Running `brew cleanup go`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
This is installing golang on Macintosh OSX.
And it even installed the recent version.
()deusexmachina.local-_
(05:37 pm)~ $> go version
go version go1.21.5 darwin/amd64
This is how to get information about a certain package. Use the brew info command.
()deusexmachina.local-_
(05:38 pm)~ $> brew info vim
==> vim: stable 9.0.2150 (bottled), HEAD
Vi 'workalike' with many additional features
https://www.vim.org/
Conflicts with:
ex-vi (because vim and ex-vi both install bin/ex and bin/view)
macvim (because vim and macvim both install vi* binaries)
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/v/vim.rb
License: Vim
==> Dependencies
Required: gettext โ, libsodium โ, lua โ, ncurses โ, perl โ, [email protected] โ, ruby โ
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 27,891 (30 days), 97,359 (90 days), 242,248 (365 days)
install-on-request: 27,428 (30 days), 95,729 (90 days), 239,504 (365 days)
build-error: 6 (30 days)
Use the brew search command to search for a package to install. You can even install Doom source ports on Macintosh OSX!
(05:38 pm)~ $> brew search doom
==> Formulae
chocolate-doom crispy-doom dsda-doom woof-doom dooit
==> Casks
doomsday-engine gzdoom zdoom