Is it possible to install and update links in one command? #7079
Output of
|
Replies: 2 comments 4 replies
|
You can |
|
An alternative is to use Example output running in a fresh Linux container with manual Brewfile using one formula with $ printf 'brew "libssh2"\nbrew "openssl@3.5", link: true\n' > Brewfile
$ cat Brewfile
brew "libssh2"
brew "openssl@3.5", link: true
$ brew list
$ brew bundle
==> Downloading Homebrew API data
✔︎ JSON API packages.arm64_linux.jws.json Downloaded 15.4MB/ 15.4MB
Installing libssh2
Installing openssl@3.5
`brew bundle` complete! 2 Brewfile dependencies now installed.
$ brew list
==> Formulae
ca-certificates libssh2 openssl@3 openssl@3.5 zlib-ng-compat
$ ls -l $(which openssl)
lrwxrwxrwx 1 linuxbrew linuxbrew 39 Sep 15 22:10 /home/linuxbrew/.linuxbrew/bin/openssl -> ../Cellar/openssl@3.5/3.5.8/bin/openssl |
GitHub runner's OpenSSL 1.1 is pretty much out of Homebrew's control since it won't be tracked by JSON API. That is manually set up by GitHub1
Not sure if it works, but you can try
brew "openssl@3.5", link: :overwriteFootnotes
https://github.com/actions/runner-images/blob/main/images/macos/scripts/build/install-openssl.sh ↩