Files
mkdocs/docs/macos/homebrew/brew-cask.md
Bruno 21 e82296ba06 1er commit
De la docs au format Mkdocs
2018-09-16 14:48:15 +02:00

3.7 KiB

Homebrew-Cask

:fa-link: Homebrew-Cask

:fa-link: https://caskroom.github.io

$ brew cask install qlvideo

# --force	réinstalle le Cask (si déjà présent)

Desinstaller:

$ brew cask uninstall qlvideo

Liste de tous les Casks disponibles:

$ brew cask search

Liste de tous les Casks disponibles à propos de Chrome:

$ brew cask search chrome
==> Partial Matches
chrome-devtools                 dmm-player-for-chrome           google-chrome
chrome-remote-desktop-host      epichrome                       mkchromecast
==> Remote Matches
caskroom/versions/google-chrome-canary          caskroom/versions/google-chrome-dev
caskroom/versions/google-chrome-beta

Information au sujet d'un Cask:

$ brew cask info google-chrome
google-chrome: 63.0.3239.132
https://www.google.com/chrome/
Not installed
From: https://github.com/caskroom/homebrew-cask/blob/master/Casks/google-chrome.rb
==> Name
Google Chrome
==> Artifacts
Google Chrome.app (App)

Liste des Casks installés:

$ brew cask list
basictex                        qlcolorcode                     suspicious-package
betterzipql                     qlstephen

# -1			sortie sur une seule colonne
# --versions	montre toutes les versions installés

Aller à la page du project Homebrew-Cask:

$ brew cask home

Aller à la page du Cask:

$ brew cask home qlstephen

Liste des Casks mis-à-jour disponibles:

$ brew cask outdated

# --greedy 		inclus les Casks avec auto_updates true et version :latest
# --verbose

Installer les mises-à-jour:

$ brew cask reinstall `brew cask outdated`
$ brew cask outdated --greedy --verbose | grep -v '(latest)' | awk '{print $1}' | xargs brew cask reinstall

# mets à jour les auto_updates true mais pas les version :latest

Mettre à jour tous les Casks:

$ brew cask upgrade

# --greedy		met à jour les Casks avec auto_updates true et version :latest

Script d'installation:

# !/bin/sh

# Brew packages that I use alot.

brew install wget
brew install ffmpeg
brew install node
brew install imagemagick

# Some cask packages that I like.

brew cask install google-chrome
brew cask install xquartz
brew cask install virtualbox

Sauver le script sous le fichier installConfig.sh et le rendre exécutable:

$ chmod +x installConfig.sh

Cache:

$ cd ~/Library/Caches/Homebrew/Cask
total 480296
drwxr-xr-x  11 bruno  staff        352 18 jan 18:54 .
drwxr-xr-x  92 bruno  staff       2944 17 jan 17:19 ..
-rw-r--r--@  1 bruno  staff   19529710 14 déc 12:30 airy--3.3.179.dmg
-rw-r--r--   1 bruno  staff  135495923 10 jan 01:59 atom--1.23.3.zip
-rw-r--r--   1 bruno  staff   74574230  7 jui  2017 basictex--2017.0607.pkg
-rw-r--r--@  1 bruno  staff    2158705 22 oct 05:23 cakebrew--1.2.5.dmg
-rw-r--r--   1 bruno  staff      28404 26 oct 14:01 qlcolorcode--2.0.9.zip
-rw-r--r--   1 bruno  staff      55479 21 mai  2017 qlmarkdown--1.3.5.zip
-rw-r--r--   1 bruno  staff      30945 24 mai  2017 qlstephen--1.4.4.zip
-rw-r--r--@  1 bruno  staff    5078603 22 mai  2017 transmission--2.92.dmg
-rw-r--r--@  1 bruno  staff    2825054 13 nov 11:03 vnc-viewer--6.17.1113.dmg

Vider le cache:

# Supprimer tous les téléchargements
$ brew cask cleanup

# Supprimer les téléchargements vieux de + de 10 jours.
$ brew cask cleanup --outdated

https://github.com/Homebrew/homebrew-cask/blob/master/doc/development/adding_a_cask.md