You have x outdated formulae installed. You can upgrade them with brew upgrade or list them with brew outdated.

# 事象 : updateしたらなんか言われた

```bash
# 使う前に更新しようと思った
$ brew update
Updated 3 taps (homebrew/core, homebrew/cask and homebrew/cask-fonts).
==> New Formulae
# ...省略...
==> Deleted Casks
bitshares     dusty         edenmath      eggplant      macfusion     now           raiderio      red

You have 9 outdated formulae installed.
You can upgrade them with brew upgrade
or list them with brew outdated.
```

## 原因 : アプリのバージョンが古いから
別にエラーではないので見なかったことにしてもよいのだが、こういう時に見直しや更新をしようと思った。

```bash
# バージョンが古くなっているもののリストを見てみる
$ brew outdated
freetype (2.11.0) < 2.11.1
git (2.33.1_1) < 2.35.1
node (17.5.0) < 17.6.0
openjdk (17) < 17.0.2
pcre2 (10.38_1) < 10.39
sqlite (3.36.0, 3.37.2) < 3.38.0
tomcat (10.0.12) < 10.0.16
tomcat@8 (8.5.72) < 8.5.75
tomcat@9 (9.0.54) < 9.0.58
```

### (いらないもの)対応 : アンインストールする

```bash
# なぜ、Tomcatがたくさんあるの覚えていないけれど使わないので最新以外アンインストールします。
$ brew uninstall --force tomcat@8
Uninstalling tomcat@8... (621 files, 14MB)
# 残ったディレクトリもちゃんと削除しておく
$ rm -rf /usr/local/etc/tomcat@8

$ brew uninstall --force tomcat@9
Uninstalling tomcat@9... (634 files, 15.3MB)

$ rm -rf /usr/local/etc/tomcat@9
```

### (いるもの)対応 : バージョンアップする
```bash
# 一気にバージョンアップします。
$ brew upgrade
Running `brew update --preinstall`...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 4 formulae.

==> Upgrading 7 outdated packages:
tomcat 10.0.12 -> 10.0.16
freetype 2.11.0 -> 2.11.1
sqlite 3.37.2 -> 3.38.0
openjdk 17 -> 17.0.2
pcre2 10.38_1 -> 10.39
node 17.5.0 -> 17.6.0
git 2.33.1_1 -> 2.35.1
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/manifests/3.38.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:9e77132d9e64fcca7abb562cf6980ce578f961041187db
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:9e77132d9e64fcca7abb562cf6980c
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/openjdk/manifests/17.0.2
Already downloaded: /Users/ponsuke/Library/Caches/Homebrew/downloads/bf7b135c802dd11fdadc2b477da9226d11d9f7db5bcfe5760c32f65e979a630b--openjdk-17.0.2.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/openjdk/blobs/sha256:29512989f1140e3bc65419933d71b21d690cb6236347c
Already downloaded: /Users/ponsuke/Library/Caches/Homebrew/downloads/c396f44757e32bf01f246912865e515cefa20605f72bc06fa511d526ba38353d--openjdk--17.0.2.monterey.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/tomcat/manifests/10.0.16
Already downloaded: /Users/ponsuke/Library/Caches/Homebrew/downloads/9af998137301f15750299563ecdcbab6b6033798c6d948f1c06fba2d6c650c2a--tomcat-10.0.16.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/tomcat/blobs/sha256:83d762ee3f4e01e282ddbe8262fc6b2e2257f057a69ae4
Already downloaded: /Users/ponsuke/Library/Caches/Homebrew/downloads/d38c462ff8e5a0afcba7c370a13ce3d74f9b16d30d6a6ce4f8805967d25a3340--tomcat--10.0.16.all.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/freetype/manifests/2.11.1
Already downloaded: /Users/ponsuke/Library/Caches/Homebrew/downloads/e794be8bef57bb9b57713128682c8051623e93dfef94e95c6ff9b4e864c1d763--freetype-2.11.1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/freetype/blobs/sha256:e1320cb3ec023546f9d436a65b7a1421027fbe7ec87a
Already downloaded: /Users/ponsuke/Library/Caches/Homebrew/downloads/8d47ec7c173d9952ee04023efa7954961870689195ba5e58b008f2468bc39f36--freetype--2.11.1.monterey.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/pcre2/manifests/10.39
Already downloaded: /Users/ponsuke/Library/Caches/Homebrew/downloads/d04cf1b7feb00f01719e307014af7b7e0bdd32565eb226a2782f259934e3fe9b--pcre2-10.39.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/pcre2/blobs/sha256:07b546fdbe6af636fc750abb0104fecd998bc6f40899a75
Already downloaded: /Users/ponsuke/Library/Caches/Homebrew/downloads/87d27ae1f3c13e47661dea2a3db918319125dbaea8de91458c04bd6a0232776f--pcre2--10.39.monterey.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/node/manifests/17.6.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/node/blobs/sha256:652b5ef5c42061bf3c9096db97bae405da0a73641fc80c55
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:652b5ef5c42061bf3c9096db97bae4
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/git/manifests/2.35.1
Already downloaded: /Users/ponsuke/Library/Caches/Homebrew/downloads/4186e363ed6b4d7a3fc6ddf247edd92c6e8fd3931bfbf1059050fc263c3e79a5--git-2.35.1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/git/blobs/sha256:ec4d252f6ac282f2770bcf18af011e8032d1f43fc17af39e5
Already downloaded: /Users/ponsuke/Library/Caches/Homebrew/downloads/02db799db084e571fc0252ead8801468813784713b401436fdd7371786d55233--git--2.35.1.monterey.bottle.tar.gz
==> Upgrading sqlite
  3.37.2 -> 3.38.0 

==> Pouring sqlite--3.38.0.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/sqlite/3.38.0: 11 files, 4.4MB
==> Running `brew cleanup sqlite`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /usr/local/Cellar/sqlite/3.36.0... (11 files, 4.2MB)
Removing: /usr/local/Cellar/sqlite/3.37.2... (11 files, 4.3MB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/sqlite--3.37.2... (2MB)
==> Upgrading openjdk
  17 -> 17.0.2 

==> Pouring openjdk--17.0.2.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/openjdk/17.0.2: 639 files, 305.4MB
==> Running `brew cleanup openjdk`...
Removing: /usr/local/Cellar/openjdk/17... (639 files, 305.1MB)
==> Upgrading tomcat
  10.0.12 -> 10.0.16 

==> Pouring tomcat--10.0.16.all.bottle.tar.gz
==> Caveats
Configuration files: /usr/local/etc/tomcat

To restart tomcat after an upgrade:
  brew services restart tomcat
Or, if you don`t want/need a background service you can just run:
  /usr/local/opt/tomcat/bin/catalina run
==> Summary
🍺  /usr/local/Cellar/tomcat/10.0.16: 636 files, 15.3MB
==> Running `brew cleanup tomcat`...
Removing: /usr/local/Cellar/tomcat/10.0.12... (636 files, 15.2MB)
==> Upgrading freetype
  2.11.0 -> 2.11.1 

==> Pouring freetype--2.11.1.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/freetype/2.11.1: 66 files, 2.3MB
==> Running `brew cleanup freetype`...
Removing: /usr/local/Cellar/freetype/2.11.0... (66 files, 2.5MB)
==> Upgrading pcre2
  10.38_1 -> 10.39 

==> Pouring pcre2--10.39.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/pcre2/10.39: 230 files, 6.2MB
==> Running `brew cleanup pcre2`...
Removing: /usr/local/Cellar/pcre2/10.38_1... (230 files, 6.2MB)
==> Upgrading node
  17.5.0 -> 17.6.0 

==> Pouring node--17.6.0.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/node/17.6.0: 2,016 files, 46.0MB
==> Running `brew cleanup node`...
Removing: /usr/local/Cellar/node/17.5.0... (2,013 files, 45.9MB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/node--17.5.0... (12.4MB)
==> Upgrading git
  2.33.1_1 -> 2.35.1 

==> Pouring git--2.35.1.monterey.bottle.tar.gz
==> Caveats
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.

zsh completions and functions have been installed to:
  /usr/local/share/zsh/site-functions

Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/git
==> Summary
🍺  /usr/local/Cellar/git/2.35.1: 1,523 files, 43MB
==> Running `brew cleanup git`...
Removing: /usr/local/Cellar/git/2.33.1_1... (1,512 files, 42MB)
==> Caveats
==> tomcat
Configuration files: /usr/local/etc/tomcat

To restart tomcat after an upgrade:
  brew services restart tomcat
Or, if you don`t want/need a background service you can just run:
  /usr/local/opt/tomcat/bin/catalina run
==> 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.

zsh completions and functions have been installed to:
  /usr/local/share/zsh/site-functions

Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/git

# 古くなったフォーミュラも削除
$ brew cleanup
Removing: /usr/local/Cellar/c-ares/1.18.1... (87 files, 645.2KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/c-ares--1.18.1... (158.3KB)
Removing: /usr/local/Cellar/ca-certificates/2021-10-26... (3 files, 208.5KB)
Removing: /usr/local/Cellar/gdbm/1.21_1... (24 files, 885.5KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/libnghttp2--1.46.0... (199.6KB)
Removing: /usr/local/Cellar/libuv/1.42.0... (49 files, 3.4MB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/mpdecimal--2.5.1... (545.2KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/nghttp2--1.46.0... (794.4KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/openjdk@11--11.0.12... (181.6MB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/openjdk@8--1.8.0+312... (98.3MB)
Removing: /usr/local/Cellar/openssl@1.1/1.1.1l_1... (8,073 files, 18.5MB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/xz--5.2.5... (415.3KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/xz_bottle_manifest--5.2.5... (7.4KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/openjdk@11_bottle_manifest--11.0.12... (8.4KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/ca-certificates_bottle_manifest--2021-10-26... (1.8KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/nghttp2_bottle_manifest--1.46.0... (10.6KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/openjdk@8_bottle_manifest--1.8.0+312... (8.3KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/sqlite_bottle_manifest--3.36.0... (7.8KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/gdbm_bottle_manifest--1.21_1... (7.0KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/readline_bottle_manifest--8.1.1... (7.5KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/openjdk_bottle_manifest--17... (8.4KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/libnghttp2_bottle_manifest--1.46.0... (7.2KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/node_bottle_manifest--17.0.1... (15.6KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/c-ares_bottle_manifest--1.18.1... (6.3KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/tomcat@8_bottle_manifest--8.5.72... (1.9KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/python@3.9_bottle_manifest--3.9.7_1... (21.6KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/openssl@1.1_bottle_manifest--1.1.1l_1... (8.7KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/mpdecimal_bottle_manifest--2.5.1... (6.9KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/git_bottle_manifest--2.33.1_1... (13.6KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/tomcat@9_bottle_manifest--9.0.54... (1.9KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/pcre2_bottle_manifest--10.38_1... (8.5KB)
Removing: /Users/ponsuke/Library/Caches/Homebrew/tomcat_bottle_manifest--10.0.12... (1.9KB)
Pruned 0 symbolic links and 2 directories from /usr/local

# Tomcatのバージョンが上がった
$ catalina version
Using CATALINA_BASE:   /usr/local/Cellar/tomcat/10.0.16/libexec
Using CATALINA_HOME:   /usr/local/Cellar/tomcat/10.0.16/libexec
Using CATALINA_TMPDIR: /usr/local/Cellar/tomcat/10.0.16/libexec/temp
Using JRE_HOME:        /usr/local/opt/openjdk
Using CLASSPATH:       /usr/local/Cellar/tomcat/10.0.16/libexec/bin/bootstrap.jar:/usr/local/Cellar/tomcat/10.0.16/libexec/bin/tomcat-juli.jar
Using CATALINA_OPTS:   
NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
Server version: Apache Tomcat/10.0.16
Server built:   Jan 15 2022 13:19:56 UTC
Server number:  10.0.16.0
OS Name:        Mac OS X
OS Version:     12.2.1
Architecture:   x86_64
JVM Version:    17.0.2+0
JVM Vendor:     Homebrew

# Gitのバージョンが上がった
$ git --version
git version 2.35.1
```