
Cuando comencé a escribir estas notas, la Wikipedia no ofrecía una página en español de este producto de software. Así que, parte de estas notas eran la traducción de esa entrada en inglés en la Wikipedia, pero también la experiencia de instalación y algunas particularidades de uso.
Definición y breve historia
Homebrew es un sistema de administración de paquetes de software gratuito de código abierto que simplifica la instalación de aplicaciones y programas en el sistema operativo Mac OS X, OS X y macOS de las computadoras de escritorio Apple. Originalmente escrito por Max Howell, el gestor de paquetes ha ganado popularidad en la comunidad Ruby on Rails y se ganó elogios por su extensibilidad. Homebrew ha sido recomendado por su facilidad de uso, así como su integración en la línea de comandos.
Homebrew ha hecho un amplio uso de GitHub con el fin de ampliar el apoyo de varios paquetes a través de contribuciones de los usuarios. En 2010 Homebrew fue el tercer repositorio con más ramificaciones en GitHub. En 2012, Homebrew tuvo el mayor número de nuevos contribuyentes en GitHub. En 2013, Homebrew tenía tanto el mayor número de contribuyentes e issues cerradas que cualquier otro proyecto en GitHub.
Homebrew ha dado lugar a varios subproyectos como Linuxbrew que es un «port» (que se ha «portado») a Linux y Homebrew Cask que es un comando externo que permite la instalación de aplicaciones GUI, así como «taps» dedicados a áreas específicas o lenguajes de programación como Homebrew PHP.
Algo de terminología
Homebrew llama a sus archivos de definición de paquetes «formulae» (plural británico para «fórmula»). Por su parte, la extensión Homebrew-Cask, que permite instalar aplicaciones GUI, las llama «barriles», «cask«. Un barril, al igual que una fórmula, es un archivo escrito en un lenguaje de dominio específico, basado en Ruby que describe cómo instalar algo. Los binario pre construidos son botellas («bottles«).
Una bodega («Cellar«) es donde Homebrew instala cosas. Su ruta predeterminada es /usr/local/Cellar
. Posteriormente se agregan enlaces simbólicos desde otras ubicaciones a éstas.
Un grifo o válvula, quizás «tapa» («tap«) es una «fuente» de fórmulas. El valor predeterminado es homebrew/core
, pero pueden agregarse más. La forma más sencilla de crear una fórmula es mediante un repositorio de GitHub llamado homebrew-<algo>; se coloca el archivo de fórmula en él y entonces se agrega como brew tap <usuario>/<algo>
a la instalación de Homebrew.
Instalación
Las instalaciones que aquí se muestran han sido hechas empleando una cuenta con capacidades administrativas, ya que Homebrew se instala en /opt
o en /usr/local
(dependiendo de la versión de sistema operativo) y las cuentas standard no tienen capacidades de escritura en estas rutas. Algunos indican que la solución a esto es volver administradora a la cuenta con la que se busca instalar Hombrew. Esta no es una buena práctica. Lo más recomendable es hacer la instalación desde una cuenta administrativa y su uso desde una standard.
Instalación en versiones de macOS 11.x-12.x con chip M1
El instalador de Ruby ha sido migrado a BASH. Un mensaje indica cómo hacer uso de éste al tratar de hacer uso del instalador con Ruby. Abajo de éste se muestra lo ocurrido haciendo uso de ese instalador. Importante notar la indicación de los dos últimos comandos al final de la salida a pantalla sobre la adición de Homebrew a PATH
.
% /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Warning: The Ruby Homebrew installer is now deprecated and has been rewritten in Bash. Please migrate to the following command: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" % % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ==> Checking for `sudo` access (which may request your password). Password: ==> This script will install: /opt/homebrew/bin/brew /opt/homebrew/share/doc/homebrew /opt/homebrew/share/man/man1/brew.1 /opt/homebrew/share/zsh/site-functions/_brew /opt/homebrew/etc/bash_completion.d/brew /opt/homebrew ==> The following new directories will be created: /opt/homebrew/bin /opt/homebrew/etc /opt/homebrew/include /opt/homebrew/lib /opt/homebrew/sbin /opt/homebrew/share /opt/homebrew/var /opt/homebrew/opt /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew /opt/homebrew/var/homebrew/linked /opt/homebrew/Cellar /opt/homebrew/Caskroom /opt/homebrew/Frameworks Press RETURN to continue or any other key to abort ==> /usr/bin/sudo /bin/mkdir -p /opt/homebrew ==> /usr/bin/sudo /usr/sbin/chown root:wheel /opt/homebrew ==> /usr/bin/sudo /bin/mkdir -p /opt/homebrew/bin /opt/homebrew/etc /opt/homebrew/include /opt/homebrew/lib /opt/homebrew/sbin /opt/homebrew/share /opt/homebrew/var /opt/homebrew/opt /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew /opt/homebrew/var/homebrew/linked /opt/homebrew/Cellar /opt/homebrew/Caskroom /opt/homebrew/Frameworks ==> /usr/bin/sudo /bin/chmod u=rwx,g=rwx /opt/homebrew/bin /opt/homebrew/etc /opt/homebrew/include /opt/homebrew/lib /opt/homebrew/sbin /opt/homebrew/share /opt/homebrew/var /opt/homebrew/opt /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew /opt/homebrew/var/homebrew/linked /opt/homebrew/Cellar /opt/homebrew/Caskroom /opt/homebrew/Frameworks ==> /usr/bin/sudo /bin/chmod g-w,o-w /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions ==> /usr/bin/sudo /usr/sbin/chown admin /opt/homebrew/bin /opt/homebrew/etc /opt/homebrew/include /opt/homebrew/lib /opt/homebrew/sbin /opt/homebrew/share /opt/homebrew/var /opt/homebrew/opt /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew /opt/homebrew/var/homebrew/linked /opt/homebrew/Cellar /opt/homebrew/Caskroom /opt/homebrew/Frameworks ==> /usr/bin/sudo /usr/bin/chgrp admin /opt/homebrew/bin /opt/homebrew/etc /opt/homebrew/include /opt/homebrew/lib /opt/homebrew/sbin /opt/homebrew/share /opt/homebrew/var /opt/homebrew/opt /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew /opt/homebrew/var/homebrew/linked /opt/homebrew/Cellar /opt/homebrew/Caskroom /opt/homebrew/Frameworks ==> /usr/bin/sudo /usr/sbin/chown -R admin:admin /opt/homebrew ==> /usr/bin/sudo /bin/mkdir -p /Users/admin/Library/Caches/Homebrew ==> /usr/bin/sudo /bin/chmod g+rwx /Users/admin/Library/Caches/Homebrew ==> /usr/bin/sudo /usr/sbin/chown -R admin /Users/admin/Library/Caches/Homebrew ==> Downloading and installing Homebrew... remote: Enumerating objects: 194282, done. remote: Counting objects: 100% (740/740), done. remote: Compressing objects: 100% (334/334), done. remote: Total 194282 (delta 424), reused 666 (delta 374), pack-reused 193542 Receiving objects: 100% (194282/194282), 53.51 MiB | 14.82 MiB/s, done. Resolving deltas: 100% (143671/143671), done. From https://github.com/Homebrew/brew * [new branch] dependabot/bundler/Library/Homebrew/sorbet-0.5.9238 -> origin/dependabot/bundler/Library/Homebrew/sorbet-0.5.9238 * [new branch] master -> origin/master * [new tag] 0.1 -> 0.1 * [new tag] 0.2 -> 0.2 * [new tag] 0.3 -> 0.3 * [new tag] 0.4 -> 0.4 * [new tag] 0.5 -> 0.5 * [new tag] 0.6 -> 0.6 * [new tag] 0.7 -> 0.7 * [new tag] 0.7.1 -> 0.7.1 * [new tag] 0.8 -> 0.8 * [new tag] 0.8.1 -> 0.8.1 * [new tag] 0.9 -> 0.9 * [new tag] 0.9.1 -> 0.9.1 * [new tag] 0.9.2 -> 0.9.2 * [new tag] 0.9.3 -> 0.9.3 * [new tag] 0.9.4 -> 0.9.4 * [new tag] 0.9.5 -> 0.9.5 * [new tag] 0.9.8 -> 0.9.8 * [new tag] 0.9.9 -> 0.9.9 * [new tag] 1.0.0 -> 1.0.0 * [new tag] 1.0.1 -> 1.0.1 * [new tag] 1.0.2 -> 1.0.2 * [new tag] 1.0.3 -> 1.0.3 * [new tag] 1.0.4 -> 1.0.4 * [new tag] 1.0.5 -> 1.0.5 * [new tag] 1.0.6 -> 1.0.6 * [new tag] 1.0.7 -> 1.0.7 * [new tag] 1.0.8 -> 1.0.8 * [new tag] 1.0.9 -> 1.0.9 * [new tag] 1.1.0 -> 1.1.0 * [new tag] 1.1.1 -> 1.1.1 * [new tag] 1.1.10 -> 1.1.10 * [new tag] 1.1.11 -> 1.1.11 * [new tag] 1.1.12 -> 1.1.12 * [new tag] 1.1.13 -> 1.1.13 * [new tag] 1.1.2 -> 1.1.2 * [new tag] 1.1.3 -> 1.1.3 * [new tag] 1.1.4 -> 1.1.4 * [new tag] 1.1.5 -> 1.1.5 * [new tag] 1.1.6 -> 1.1.6 * [new tag] 1.1.7 -> 1.1.7 * [new tag] 1.1.8 -> 1.1.8 * [new tag] 1.1.9 -> 1.1.9 * [new tag] 1.2.0 -> 1.2.0 * [new tag] 1.2.1 -> 1.2.1 * [new tag] 1.2.2 -> 1.2.2 * [new tag] 1.2.3 -> 1.2.3 * [new tag] 1.2.4 -> 1.2.4 * [new tag] 1.2.5 -> 1.2.5 * [new tag] 1.2.6 -> 1.2.6 * [new tag] 1.3.0 -> 1.3.0 * [new tag] 1.3.1 -> 1.3.1 * [new tag] 1.3.2 -> 1.3.2 * [new tag] 1.3.3 -> 1.3.3 * [new tag] 1.3.4 -> 1.3.4 * [new tag] 1.3.5 -> 1.3.5 * [new tag] 1.3.6 -> 1.3.6 * [new tag] 1.3.7 -> 1.3.7 * [new tag] 1.3.8 -> 1.3.8 * [new tag] 1.3.9 -> 1.3.9 * [new tag] 1.4.0 -> 1.4.0 * [new tag] 1.4.1 -> 1.4.1 * [new tag] 1.4.2 -> 1.4.2 * [new tag] 1.4.3 -> 1.4.3 * [new tag] 1.5.0 -> 1.5.0 * [new tag] 1.5.1 -> 1.5.1 * [new tag] 1.5.10 -> 1.5.10 * [new tag] 1.5.11 -> 1.5.11 * [new tag] 1.5.12 -> 1.5.12 * [new tag] 1.5.13 -> 1.5.13 * [new tag] 1.5.14 -> 1.5.14 * [new tag] 1.5.2 -> 1.5.2 * [new tag] 1.5.3 -> 1.5.3 * [new tag] 1.5.4 -> 1.5.4 * [new tag] 1.5.5 -> 1.5.5 * [new tag] 1.5.6 -> 1.5.6 * [new tag] 1.5.7 -> 1.5.7 * [new tag] 1.5.8 -> 1.5.8 * [new tag] 1.5.9 -> 1.5.9 * [new tag] 1.6.0 -> 1.6.0 * [new tag] 1.6.1 -> 1.6.1 * [new tag] 1.6.10 -> 1.6.10 * [new tag] 1.6.11 -> 1.6.11 * [new tag] 1.6.12 -> 1.6.12 * [new tag] 1.6.13 -> 1.6.13 * [new tag] 1.6.14 -> 1.6.14 * [new tag] 1.6.15 -> 1.6.15 * [new tag] 1.6.16 -> 1.6.16 * [new tag] 1.6.17 -> 1.6.17 * [new tag] 1.6.2 -> 1.6.2 * [new tag] 1.6.3 -> 1.6.3 * [new tag] 1.6.4 -> 1.6.4 * [new tag] 1.6.5 -> 1.6.5 * [new tag] 1.6.6 -> 1.6.6 * [new tag] 1.6.7 -> 1.6.7 * [new tag] 1.6.8 -> 1.6.8 * [new tag] 1.6.9 -> 1.6.9 * [new tag] 1.7.0 -> 1.7.0 * [new tag] 1.7.1 -> 1.7.1 * [new tag] 1.7.2 -> 1.7.2 * [new tag] 1.7.3 -> 1.7.3 * [new tag] 1.7.4 -> 1.7.4 * [new tag] 1.7.5 -> 1.7.5 * [new tag] 1.7.6 -> 1.7.6 * [new tag] 1.7.7 -> 1.7.7 * [new tag] 1.8.0 -> 1.8.0 * [new tag] 1.8.1 -> 1.8.1 * [new tag] 1.8.2 -> 1.8.2 * [new tag] 1.8.3 -> 1.8.3 * [new tag] 1.8.4 -> 1.8.4 * [new tag] 1.8.5 -> 1.8.5 * [new tag] 1.8.6 -> 1.8.6 * [new tag] 1.9.0 -> 1.9.0 * [new tag] 1.9.1 -> 1.9.1 * [new tag] 1.9.2 -> 1.9.2 * [new tag] 1.9.3 -> 1.9.3 * [new tag] 2.0.0 -> 2.0.0 * [new tag] 2.0.1 -> 2.0.1 * [new tag] 2.0.2 -> 2.0.2 * [new tag] 2.0.3 -> 2.0.3 * [new tag] 2.0.4 -> 2.0.4 * [new tag] 2.0.5 -> 2.0.5 * [new tag] 2.0.6 -> 2.0.6 * [new tag] 2.1.0 -> 2.1.0 * [new tag] 2.1.1 -> 2.1.1 * [new tag] 2.1.10 -> 2.1.10 * [new tag] 2.1.11 -> 2.1.11 * [new tag] 2.1.12 -> 2.1.12 * [new tag] 2.1.13 -> 2.1.13 * [new tag] 2.1.14 -> 2.1.14 * [new tag] 2.1.15 -> 2.1.15 * [new tag] 2.1.16 -> 2.1.16 * [new tag] 2.1.2 -> 2.1.2 * [new tag] 2.1.3 -> 2.1.3 * [new tag] 2.1.4 -> 2.1.4 * [new tag] 2.1.5 -> 2.1.5 * [new tag] 2.1.6 -> 2.1.6 * [new tag] 2.1.7 -> 2.1.7 * [new tag] 2.1.8 -> 2.1.8 * [new tag] 2.1.9 -> 2.1.9 * [new tag] 2.2.0 -> 2.2.0 * [new tag] 2.2.1 -> 2.2.1 * [new tag] 2.2.10 -> 2.2.10 * [new tag] 2.2.11 -> 2.2.11 * [new tag] 2.2.12 -> 2.2.12 * [new tag] 2.2.13 -> 2.2.13 * [new tag] 2.2.14 -> 2.2.14 * [new tag] 2.2.15 -> 2.2.15 * [new tag] 2.2.16 -> 2.2.16 * [new tag] 2.2.17 -> 2.2.17 * [new tag] 2.2.2 -> 2.2.2 * [new tag] 2.2.3 -> 2.2.3 * [new tag] 2.2.4 -> 2.2.4 * [new tag] 2.2.5 -> 2.2.5 * [new tag] 2.2.6 -> 2.2.6 * [new tag] 2.2.7 -> 2.2.7 * [new tag] 2.2.8 -> 2.2.8 * [new tag] 2.2.9 -> 2.2.9 * [new tag] 2.3.0 -> 2.3.0 * [new tag] 2.4.0 -> 2.4.0 * [new tag] 2.4.1 -> 2.4.1 * [new tag] 2.4.10 -> 2.4.10 * [new tag] 2.4.11 -> 2.4.11 * [new tag] 2.4.12 -> 2.4.12 * [new tag] 2.4.13 -> 2.4.13 * [new tag] 2.4.14 -> 2.4.14 * [new tag] 2.4.15 -> 2.4.15 * [new tag] 2.4.16 -> 2.4.16 * [new tag] 2.4.2 -> 2.4.2 * [new tag] 2.4.3 -> 2.4.3 * [new tag] 2.4.4 -> 2.4.4 * [new tag] 2.4.5 -> 2.4.5 * [new tag] 2.4.6 -> 2.4.6 * [new tag] 2.4.7 -> 2.4.7 * [new tag] 2.4.8 -> 2.4.8 * [new tag] 2.4.9 -> 2.4.9 * [new tag] 2.5.0 -> 2.5.0 * [new tag] 2.5.1 -> 2.5.1 * [new tag] 2.5.10 -> 2.5.10 * [new tag] 2.5.11 -> 2.5.11 * [new tag] 2.5.12 -> 2.5.12 * [new tag] 2.5.2 -> 2.5.2 * [new tag] 2.5.3 -> 2.5.3 * [new tag] 2.5.4 -> 2.5.4 * [new tag] 2.5.5 -> 2.5.5 * [new tag] 2.5.6 -> 2.5.6 * [new tag] 2.5.7 -> 2.5.7 * [new tag] 2.5.8 -> 2.5.8 * [new tag] 2.5.9 -> 2.5.9 * [new tag] 2.6.0 -> 2.6.0 * [new tag] 2.6.1 -> 2.6.1 * [new tag] 2.6.2 -> 2.6.2 * [new tag] 2.7.0 -> 2.7.0 * [new tag] 2.7.1 -> 2.7.1 * [new tag] 2.7.2 -> 2.7.2 * [new tag] 2.7.3 -> 2.7.3 * [new tag] 2.7.4 -> 2.7.4 * [new tag] 2.7.5 -> 2.7.5 * [new tag] 2.7.6 -> 2.7.6 * [new tag] 2.7.7 -> 2.7.7 * [new tag] 3.0.0 -> 3.0.0 * [new tag] 3.0.1 -> 3.0.1 * [new tag] 3.0.10 -> 3.0.10 * [new tag] 3.0.11 -> 3.0.11 * [new tag] 3.0.2 -> 3.0.2 * [new tag] 3.0.3 -> 3.0.3 * [new tag] 3.0.4 -> 3.0.4 * [new tag] 3.0.5 -> 3.0.5 * [new tag] 3.0.6 -> 3.0.6 * [new tag] 3.0.7 -> 3.0.7 * [new tag] 3.0.8 -> 3.0.8 * [new tag] 3.0.9 -> 3.0.9 * [new tag] 3.1.0 -> 3.1.0 * [new tag] 3.1.1 -> 3.1.1 * [new tag] 3.1.10 -> 3.1.10 * [new tag] 3.1.11 -> 3.1.11 * [new tag] 3.1.12 -> 3.1.12 * [new tag] 3.1.2 -> 3.1.2 * [new tag] 3.1.3 -> 3.1.3 * [new tag] 3.1.4 -> 3.1.4 * [new tag] 3.1.5 -> 3.1.5 * [new tag] 3.1.6 -> 3.1.6 * [new tag] 3.1.7 -> 3.1.7 * [new tag] 3.1.8 -> 3.1.8 * [new tag] 3.1.9 -> 3.1.9 * [new tag] 3.2.0 -> 3.2.0 * [new tag] 3.2.1 -> 3.2.1 * [new tag] 3.2.10 -> 3.2.10 * [new tag] 3.2.11 -> 3.2.11 * [new tag] 3.2.12 -> 3.2.12 * [new tag] 3.2.13 -> 3.2.13 * [new tag] 3.2.14 -> 3.2.14 * [new tag] 3.2.15 -> 3.2.15 * [new tag] 3.2.16 -> 3.2.16 * [new tag] 3.2.2 -> 3.2.2 * [new tag] 3.2.3 -> 3.2.3 * [new tag] 3.2.4 -> 3.2.4 * [new tag] 3.2.5 -> 3.2.5 * [new tag] 3.2.6 -> 3.2.6 * [new tag] 3.2.7 -> 3.2.7 * [new tag] 3.2.8 -> 3.2.8 * [new tag] 3.2.9 -> 3.2.9 HEAD is now at fecacdce4 Merge pull request #12238 from carlocab/link-arm ==> Tapping homebrew/core remote: Enumerating objects: 1058419, done. remote: Counting objects: 100% (12/12), done. remote: Compressing objects: 100% (10/10), done. remote: Total 1058419 (delta 4), reused 9 (delta 2), pack-reused 1058407 Receiving objects: 100% (1058419/1058419), 399.02 MiB | 8.66 MiB/s, done. Resolving deltas: 100% (727432/727432), done. From https://github.com/Homebrew/homebrew-core * [new branch] master -> origin/master HEAD is now at f7ece95ffa7 singular: update 4.2.1_1 bottle. Warning: /opt/homebrew/bin is not in your PATH. Instructions on how to configure your shell for Homebrew can be found in the 'Next steps' section below. ==> Installation successful! ==> Homebrew has enabled anonymous aggregate formulae and cask analytics. Read the analytics documentation (and how to opt-out) here: https://docs.brew.sh/Analytics No analytics data has been sent yet (or will be during this `install` run). ==> Homebrew is run entirely by unpaid volunteers. Please consider donating: https://github.com/Homebrew/brew#donations ==> Next steps: - Run these two commands in your terminal to add Homebrew to your PATH: echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/admin/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)" - Run `brew help` to get started - Further documentation: https://docs.brew.sh %
Instalación en versiones de macOS 10.x en Intel
Ya con anterioridad he usado administradores de paquetes: de instalaciones de software o de control de versiones como es el caso, respectivamente de MacPorts
, pip
y Git
. Así también, ya sabía de la existencia de Homebrew aunque me había resistido un poco a instalarlo por causas que creo no importaban mucho (ya que no las recuerdo).
En varias ocasiones he leído sobre la conveniencia de tener esta utilería, pero no ha sido hasta ahora que me he animado a instalarla, principalmente por la necesidad de integrar el desarrollo de C++ y XCode.
La facilidad de uso que tanto se le ha alabado va de la mano con las instrucciones para su descarga e instalación. En la página de este proyecto simplemente se lee:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
para ser copiado y pegado en la aplicación Terminal. Tras ello la instalación a sido (actualizado a lo presentado en macOS 10.14):
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following directories will be made group writable:
/usr/local/bin
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/sbin
/usr/local/share
/usr/local/lib/pkgconfig
/usr/local/share/aclocal
/usr/local/share/doc
/usr/local/share/info
/usr/local/share/man
/usr/local/share/man/man1
/usr/local/share/man/man3
/usr/local/share/man/man5
/usr/local/share/man/man8
==> The following directories will have their group set to admin:
/usr/local/bin
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/sbin
/usr/local/share
/usr/local/lib/pkgconfig
/usr/local/share/aclocal
/usr/local/share/doc
/usr/local/share/info
/usr/local/share/man
/usr/local/share/man/man1
/usr/local/share/man/man3
/usr/local/share/man/man5
/usr/local/share/man/man8
==> The following new directories will be created:
/usr/local/var
/usr/local/opt
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var/homebrew
/usr/local/var/homebrew/linked
/usr/local/Cellar
/usr/local/Caskroom
/usr/local/Homebrew
/usr/local/Frameworks
Press RETURN to continue or any other key to abort
...
==> Installation successful!
==> Next steps
Run `brew help` to get started
$
Uso
Algunas recetas de uso y sus resultados. Esta sección se va adecuando conforme esta utilería es usada y lo mostrado aquí vuelve a repetirse en, idealmente, la última instalación descrita en esta página (que debe ser a la par de la mayor versión de macOS aquí indicada) pero no hay garantías de ello (no todas las salidas mostradas son actualizadas). Poner atención a las fechas o números de versión que se muestran en los ejemplos.
Dado que las instalaciones que aquí se muestran se han hecho empleando una cuenta con capacidades administrativas, todos los comandos que requieran la modificación de aquello que Homebrew guarda requerirán poder acceder a ello. Si bien el hacer uso de lo que obtenemos con Homebrew podremos hacerlo desde cuentas standards, para el mantenimiento de la instalación requerirá acceso administrativo.
Actualización
La actualización de Homebrew se efectúa como se muestra a continuación (los resultados en pantalla pueden variar según la instalación). Mientras que se listan las actualizaciones disponibles en general, una marca (✔) será mostrada para aquellas «fórmulas» que están instaladas.
Actualización de la utilería
$ brew update
Updated 2 taps (caskroom/cask, homebrew/core).
==> New Formulae
adr-tools ipython@5
akamai jhipster
allure jing-trang
ampl-mp jose
angular-cli jupyter
antlr4-cpp-runtime kubectx
apache-arrow libbitcoin
...
ipython
==> Updated Formulae
aalib libre
abcl librem
abcm2ps libressl
...
bochs miniupnpc
boost ✔ minizinc
boost-bcp mitmproxy
...
highlight swimat
hive syncthing ✔
hivemind syncthing-inotify
hledger syntaxerl
...
libraw zstd
librdkafka zurl
==> Renamed Formulae
gcc6 -> gcc@6 root6 -> root
gmt4 -> gmt@4 speedtest_cli -> speedtest-cli
grunt -> grunt-cli srtp@1.5 -> srtp@1.6
opencv3 -> opencv transfig -> fig2dev
osh -> etsh
==> Deleted Formulae
abi-compliance-checker kafka@0.80 phantomjs@1.92
autotrace kibana@4.1 phantomjs@1.98
blucat libgc snescom
dvtm libtess2 szl
gh mapnik@2 xplanetfx
go-gui node@0.10
jpeg@9 node@0.12
$
Tras la actualización del sistema operativo…
Después de una actualización mayor del sistema operativo, llega a ocurrir que Homebrew señale que se encuentra en una versión no soportada. Por ejemplo, sin importar la acción o argumento dado puede aparecer lo indicado abajo y debe procederse a actualizar la utilería.
$ brew algún-comando-o-parámetro ...
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Error: Could not create /usr/local/Cellar
Check you have permission to write to /usr/local
$
Forzando la actualización de Homebrew
$ brew update --force
Updated 1 tap (homebrew/core).
==> New Formulae
...
jless rcssserver
==> Migrating HOMEBREW_REPOSITORY (please wait)...
==> Migrated HOMEBREW_REPOSITORY to /usr/local/Homebrew!
Homebrew no longer needs to have ownership of /usr/local. If you wish you can return /usr/local to its default ownership with:
sudo chown root:wheel /usr/local
$ sudo chown root:wheel /usr/local
$ brew -v
Homebrew 1.1.10
Homebrew/homebrew-core (git revision b4e00; last commit 2017-02-27)
Utilización
Listando la version de Homebrew
$ brew -v
Homebrew 3.4.0
Homebrew/homebrew-core (git revision cf70211e591; last commit 2022-02-28))
$
Para listar las «fórmulas» que se tienen instaladas
$ brew list
boost syncthing
...
Formulas, Kegs, Bottles and Casks
Syncthing
Instalación
$ brew install syncthing
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/syncthing-0.14.23.sierra.bo
######################################################################## 100.0%
==> Pouring syncthing-0.14.23.sierra.bottle.tar.gz
==> Caveats
To have launchd start syncthing now and restart at login:
brew services start syncthing
Or, if you don't want/need a background service you can just run:
syncthing
==> Summary
🍺 /usr/local/Cellar/syncthing/0.14.23: 7 files, 12.7M
$
Actualización
$ brew upgrade syncthing
==> Upgrading 1 outdated package, with result:
syncthing 0.14.36
==> Upgrading syncthing
==> Downloading https://homebrew.bintray.com/bottles/syncthing-0.14.36.sierra.bo
######################################################################## 100.0%
==> Pouring syncthing-0.14.36.sierra.bottle.tar.gz
==> Caveats
To have launchd start syncthing now and restart at login:
brew services start syncthing
Or, if you don't want/need a background service you can just run:
syncthing
==> Summary
🍺 /usr/local/Cellar/syncthing/0.14.36: 23 files, 14.2MB
$
Folderify
Permite crear íconos de folders para macOS.
Instalación
% brew install folderify
...
==> Caveats A CA file has been bootstrapped using certificates from the system keychain. To add additional certificates, place .pem files in /opt/homebrew/etc/openssl@3/certs and run /opt/homebrew/opt/openssl@3/bin/c_rehash openssl@3 is keg-only, which means it was not symlinked into /opt/homebrew, because macOS provides LibreSSL. If you need to have openssl@3 first in your PATH, run: echo 'export PATH="/opt/homebrew/opt/openssl@3/bin:$PATH"' >> ~/.zshrc For compilers to find openssl@3 you may need to set: export LDFLAGS="-L/opt/homebrew/opt/openssl@3/lib" export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include" For pkg-config to find openssl@3 you may need to set: export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@3/lib/pkgconfig" ==> Summary 🍺 /opt/homebrew/Cellar/openssl@3/3.0.1: 6,420 files, 27.8MB ==> Running `brew cleanup openssl@3`... Removing: /opt/homebrew/Cellar/openssl@3/3.0.0_1... (6,415 files, 27.7MB) ==> Checking for dependents of upgraded formulae... ==> No broken dependents found! ==> Caveats ==> openssl@3 A CA file has been bootstrapped using certificates from the system keychain. To add additional certificates, place .pem files in /opt/homebrew/etc/openssl@3/certs and run /opt/homebrew/opt/openssl@3/bin/c_rehash openssl@3 is keg-only, which means it was not symlinked into /opt/homebrew, because macOS provides LibreSSL. If you need to have openssl@3 first in your PATH, run: echo 'export PATH="/opt/homebrew/opt/openssl@3/bin:$PATH"' >> ~/.zshrc For compilers to find openssl@3 you may need to set: export LDFLAGS="-L/opt/homebrew/opt/openssl@3/lib" export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include" For pkg-config to find openssl@3 you may need to set: export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@3/lib/pkgconfig" %
|
© Todos los derechos reservados. Dr. Eduardo René Rodríguez Avila |
Creación: 2015.04.12 Última actualización: 2022.02.28 |
|||
El contenido de este sitio puede ser copiado y reproducido libremente mientras no sea alterado y se cite su origen. Marcas y productos registrados son citados por referencia y sin fines de lucro o dolo. Todas las opiniones son a título personal del o los autores de éstas y, salvo sea expresado de otro modo, deben considerarse como registro y expresión de la experiencia de uso de aquello que es tratado. Para conocer más sobre la posición de privacidad y responsabilidad de lo que se presenta en este sitio web y como ha sido obtenido, consulte la declaración al respecto. |