dotbot-brew icon indicating copy to clipboard operation
dotbot-brew copied to clipboard

Feature request: Add support for updates

Open grzesuav opened this issue 2 years ago • 2 comments

It would be nice to update package if new version found

grzesuav avatar May 16 '22 09:05 grzesuav

Just like nix-darwin has a feature of auto update.

d12frosted avatar May 19 '22 18:05 d12frosted

According to the homebrew documentation, that is already the case: https://docs.brew.sh/Manpage#install-options-formulacask-

Unless HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK is set, brew upgrade or brew reinstall will be run for outdated dependents and dependents with broken linkage, respectively.

What do you think about it ? Nevertheless, I saw something weird with my dotbot install. Here is the brew part of my install.conf.yaml

- tap:
  │ - homebrew/bundle
  │ - homebrew/core
  │ - homebrew/cask
  │ - homebrew/cask-fonts
  │ - amar1729/formulae
- cask:
  │ - font-hack-nerd-font
  │ - raycast # better Spotlight
  │ - rectangle # macos window management
  │ - stats # System stats menu bar
- brew:
  │ - bat # better cat
  │ - browserpass # password manager
  │ - coreutils
  │ - diff-so-fancy # fancy git diff
  │ - exa # ls alternative
  │ - fd # find alternative
  │ - git
  │ - gitlint # Linting comiit messages
  │ - glow # Render markdown
  │ - gnupg
  │ - htop # top alternative
  │ - neovim # neovim
  │ - node # Node
  │ - openssl
  │ - pgcli # PGCli
  │ - pinentry-mac
  │ - pyenv
  │ - pyenv-virtualenv
  │ - readline
  │ - ripgrep # very fast file searcher
  │ - sqlite3
  │ - starship # prompt
  │ - the_silver_searcher
  │ - tmux # sessions multiplexer
  │ - xz # Compression
  │ - wget
  │ - zlib
  │ - zsh

And here is the output:

Tapping homebrew/bundle
Tapping homebrew/core
Tapping homebrew/cask
Tapping homebrew/cask-fonts
Tapping amar1729/formulae
Installing font-hack-nerd-font
Warning: Cask 'font-hack-nerd-font' is already installed.

To re-install font-hack-nerd-font, run:
brew reinstall --cask font-hack-nerd-font
Installing raycast
Warning: Cask 'raycast' is already installed.

To re-install raycast, run:
brew reinstall --cask raycast
Installing rectangle
Warning: Cask 'rectangle' is already installed.

To re-install rectangle, run:
brew reinstall --cask rectangle
Installing stats
Warning: Cask 'stats' is already installed.

To re-install stats, run:
brew reinstall --cask stats
All packages have been installed
All packages have been installed

I noticed two things :

  • Can I bypass the Warning for re-installing cask (this happens only for cask) ?
  • It seems a little bit slow for my taste but this might come only from brew itself. The only step of installing/updating brew formulas take approximately 30sec.

0inp avatar Apr 12 '23 21:04 0inp