Saya menggunakan tong-tong homebrew untuk memperbarui ekosistem aplikasi saya. Sangat bagus ketika memelihara beberapa komputer di rumah, bepergian atau bepergian.
Namun, ketika beberapa paket diperbarui (seperti Google Chrome), saya akhirnya menginstal versi bersamaan yang berbeda (dan yang dilihat oleh OS):
$ ls / opt / homebrew-cask / Caskroom / google-chrome / stable-channel terbaru
Ini terjadi ketika memutakhirkan tong:
$ ls -l /opt/homebrew-cask/Caskroom/tunnelblick
total 0
drwxr-xr-x 5 foo staff 238 Mar 11 07:42 3.3.0
drwxr-xr-x 5 foo staff 238 May 13 13:53 3.3.2
[13:00:40] foo at bar in ~
$ brew cask install --force tunnelblick
==> Caveats
For security reasons, Tunnelblick must be installed to /Applications and will request to be moved at launch.
==> Downloading https://downloads.sourceforge.net/project/tunnelblick/All%20files/Tunnelblick_3.3.4.dmg
######################################################################## 100.0%
==> It seems there is already an App at '/Applications/Tunnelblick.app'; not linking.
🍺 tunnelblick installed to '/opt/homebrew-cask/Caskroom/tunnelblick/3.3.4' (236 files, 20M)
$ ls -l /opt/homebrew-cask/Caskroom/tunnelblick
total 0
drwxr-xr-x 5 foo staff 238 Mar 11 07:42 3.3.0
drwxr-xr-x 5 foo staff 238 May 13 13:53 3.3.2
drwxr-xr-x 5 foo staff 238 Jun 26 13:01 3.3.4
[13:01:26] foo at bar in ~
Bagaimana saya hanya menyimpan yang terbaru?
brew cleanup
danbrew prune
?Jawaban:
Di Terminal, ketik:
Petunjuk: Salin dan tempel baris perintah di atas ke Terminal.
sumber
/opt/homebrew-cask/Caskroom/
ke/usr/local/Caskroom/
.