Homebrew mac os delete

Содержание
  1. Как удалить доморощенный с Mac OS 2021
  2. WWDC 2020 Special Event Keynote — Apple
  3. Как удалить и удалить Homebrew в Mac OS
  4. Вариант 2. Удаление Homebrew вручную с помощью сценария удаления
  5. Как удалить Homebrew из Mac OS
  6. Как удалить и удалить Homebrew в Mac OS
  7. Вариант 2. Удаление Homebrew с помощью сценария удаления вручную
  8. Homebrew: менеджер пакетов для macOS
  9. Установка Homebrew
  10. Примеры использования
  11. Удаление Homebrew
  12. Полезные ссылки
  13. How can I completely uninstall Homebrew and uninstall everything it has done? #48792
  14. Comments
  15. corysimmons commented Feb 3, 2016
  16. DomT4 commented Feb 3, 2016
  17. corysimmons commented Feb 3, 2016
  18. DomT4 commented Feb 3, 2016
  19. corysimmons commented Feb 3, 2016
  20. DomT4 commented Feb 3, 2016
  21. corysimmons commented Feb 3, 2016
  22. MikeMcQuaid commented Feb 3, 2016
  23. Homebrew Documentation
  24. Is there a glossary of terms around?
  25. How do I update my local packages?
  26. How do I stop certain formulae from being updated?
  27. How do I uninstall Homebrew?
  28. How can I keep old versions of a formula when upgrading?
  29. Why does brew upgrade or brew install also upgrade a bunch of other stuff?
  30. Where does stuff get downloaded?
  31. My Mac .app s don’t find Homebrew utilities!
  32. How do I contribute to Homebrew?
  33. Why do you compile everything?
  34. How do I get a formula from someone else’s branch?
  35. Why should I install Homebrew in the default location?
  36. Why is the default installation prefix /opt/homebrew on Apple Silicon?
  37. Why is the default installation prefix /home/linuxbrew/.linuxbrew on Linux?
  38. Why does Homebrew say sudo is bad?
  39. Why isn’t a particular command documented?
  40. Why haven’t you merged my pull request?
  41. Can I edit formulae myself?
  42. Can I make new formulae?
  43. Why was a formula deleted or disabled?
  44. Homebrew is a poor name, it’s too generic, why was it chosen?
  45. What does “keg-only” mean?
  46. How can I specify different configure arguments for a formula?
  47. The app can’t be opened because it is from an unidentified developer
  48. Why some apps aren’t included in upgrade

Как удалить доморощенный с Mac OS 2021

WWDC 2020 Special Event Keynote — Apple

  • WWDC 2020 Special Event Keynote — Apple

    Если вы ранее установили Homebrew на Mac и решили, что вам больше не нужен или нужен менеджер пакетов командной строки, вы можете удалить Homebrew из MacOS и полностью удалить Homebrew и все установленные пакеты и формулы с Mac.

    Из этого туториала Вы узнаете, как полностью удалить Homebrew с Mac. Это означает, что он удалит весь менеджер пакетов вместе с удалением команд brew и cask, а также различных пакетов программного обеспечения, которые могли быть установлены. Примечательно, что это полностью отличается от простого удаления отдельных пакетов с помощью Homebrew, то есть, как вы бы удалили конкретную формулу из менеджера пакетов.

    Как удалить и удалить Homebrew в Mac OS

    Есть несколько способов удалить Homebrew и удалить его с Mac. Возможно, самый простой способ — использовать одну командную строку, введенную в Терминал, так же, как вы запускаете команду ruby ​​и curl в командной строке для установки Homebrew, вы также запускаете команду ruby ​​и curl для удаления Homebrew с Mac.

    Единственная команда для удаления Homebrew выглядит следующим образом:

    ruby -e «$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)»

    Он использует ruby ​​для запуска сценария удаления Homebrew, который загружается из github с помощью команды curl. При правильном выполнении сценарий удаления будет запущен на Mac и полностью удалит Homebrew.

    Вариант 2. Удаление Homebrew вручную с помощью сценария удаления

    Если вам не нравится идея выполнения скрипта, загруженного из Интернета, с помощью curl (что понятно для тех, кто заботится о безопасности), то вы также можете заранее просмотреть, загрузить и просмотреть скрипт деинсталляции, а затем выполнить его вручную на компьютер, с которого вы хотите удалить Homebrew.

    Скрипт удаления Homebrew находится по следующему URL:

    Сохраните этот файл в виде текстового документа, помеченного как «удалить» или «удалить домохозяйство», или как хотите, чтобы он назывался, а затем выполните команду как обычно. В качестве альтернативы вы можете запустить скрипт удаления с флагом –help, чтобы получить более подробную информацию и параметры:

    Независимо от того, используете ли вы какой-либо из методов, описанных выше, Homebrew будет удален. Это также удалит все пакеты с ним, но если вы хотите удалить только формулу и пакеты, а не Homebrew полностью, вам следует вместо этого сосредоточиться на этих инструкциях.

    Последний вариант, который мы не будем здесь рассматривать из-за сложности и изменчивости конфигурации каждого пользователя и установленных пакетов, состоит в том, чтобы вручную удалить все каталоги, зависимости, формулу и все связанные файлы Homebrew из широкого диапазона. Расположение директории Homebrew, включая удаление каждого отдельного элемента в папке установленного пакета Homebrew на Mac. Это гораздо более длительный процесс, и вы будете копаться в различных каталогах системного уровня. Этот метод не подходит для подавляющего большинства пользователей — как продвинутых, так и других — и поэтому не распространяется на него. Но если вам интересно, используйте команды find, locate и mdfind, чтобы найти все данные, относящиеся к Homebrew, brew, cask и Cellar на Mac.

    Вот и все, если вы запустили сценарии удаления Homebrew, процесс довольно прост и удаление завершено. Конечно, если вам нужен Homebrew и вы используете его, нет причин его деинсталлировать, но если вы случайно установили Homebrew и обнаружили, что он вам не нужен, возможно, имеет смысл удалить его с вашего Mac.

    Источник

    Как удалить Homebrew из Mac OS

    Если вы ранее установили Homebrew на Mac и теперь решили, что вам больше не нужен или не нужен диспетчер пакетов командной строки, вы можете удалить Homebrew из MacOS и полностью удалить Homebrew и все установленные пакеты и формулы с Mac.

    В этом руководстве будет рассмотрено, как полностью удалить Homebrew с Mac, что означает удаление всего самого диспетчера пакетов, а также удаление команд brew и cask, а также различных пакетов программного обеспечения, которые могли быть установлены. Примечательно, что это полностью отличается от простого удаления отдельных пакетов с помощью Homebrew, когда вы удаляете определенную формулу из диспетчера пакетов.

    Как удалить и удалить Homebrew в Mac OS

    Есть несколько способов удалить Homebrew и удалить его с Mac. Возможно, самый простой метод — использовать одну командную строку, введенную в Терминал, точно так же, как вы запускаете команду ruby ​​и curl в командной строке для установки Homebrew, вы также запускаете команду ruby ​​и curl для удаления Homebrew с Mac.

    Читайте также:  Лицензия диск для пк microsoft windows 10 pro 64 bit rus dvd oem fqc 08909

    Единственная команда для удаления Homebrew выглядит следующим образом, в зависимости от вашей версии MacOS:

    Для удаления Homebrew в MacOS Catalina, macOS Big Sur и MacOS Mojave:
    /bin/bash -c «$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)»

    Для удаления Homebrew из MacOS High Sierra, Sierra, El Capitan и более ранних версий:
    ruby -e «$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)»

    Он использует ruby ​​для выполнения сценария удаления Homebrew, который загружается с github с помощью команды curl. При правильном выполнении сценарий удаления запустится на Mac и полностью удалит Homebrew.

    Вариант 2. Удаление Homebrew с помощью сценария удаления вручную

    Если вам не нравится идея выполнения сценария, загруженного из Интернета с помощью curl (что понятно для людей, заботящихся о безопасности), вы также можете предварительно просмотреть, загрузить и просмотреть сценарий удаления, а затем выполнить его вручную на компьютер, с которого вы хотите удалить Homebrew.

    Скрипт удаления Homebrew находится по следующему URL-адресу:

    Сохраните этот файл как текстовый документ с пометкой «удалить» или «деинсталлировать homebrew» или как вы хотите это назвать, а затем выполните команду как обычно. Кроме того, вы можете запустить сценарий удаления с флагом –help, чтобы получить дополнительные сведения и параметры:

    Независимо от того, используете ли вы любой из описанных выше методов, Homebrew будет удален. Это также приведет к удалению всех пакетов с ним, но если вы хотите удалить только определенную формулу и пакеты, а не полностью Homebrew, вам следует вместо этого сосредоточиться на этих инструкциях.

    Последний вариант, который мы не собираемся здесь рассматривать из-за сложности и изменчивости конфигурации каждого пользователя и установленных пакетов, — это вручную удалить все каталоги Homebrew, зависимости, формулы и все связанные файлы из широкого диапазона Расположение каталогов Homebrew, включая удаление каждого отдельного элемента в расположении установленного пакета Homebrew на Mac. Это гораздо более трудоемкий процесс, и вы будете копаться в различных каталогах системного уровня. Этот метод не подходит для подавляющего большинства пользователей — опытных или нет — и поэтому не будет рассмотрен. Но если вам интересно, используйте команды find, locate и mdfind, чтобы обнаружить все данные, связанные с Homebrew, brew, cask и Cellar на Mac.

    Вот и все, если вы запустили сценарии удаления Homebrew, процесс довольно прост, и удаление завершено. Конечно, если вам нужно и вы используете Homebrew, нет причин для его удаления, но если вы установили Homebrew и позже обнаружили, что он вам не нужен, возможно, имеет смысл удалить его с вашего Mac.

    Источник

    Homebrew: менеджер пакетов для macOS

    Homebrew (дословно означает домашнее пиво или любую самоделку) — консольный менеджер пакетов для macOS. Нужен для установки программ, не доступных (в большинстве случаев) в магазине Apple.

    Это аналог yum и apt в Linux. С его помощью можно устанавливать программы прямо из консоли, не открывая ни App Store, ни браузер.

    В отличии от некогда популярных MacPorts и Fink , Homebrew предельно прост в обращении. Он скачает нужные пакеты, соберет их и разрешит зависимости. Для установки приложения достаточно одной команды, и больше никаких ./configure && make && make install.

    Установка Homebrew

    Если у вас не установлен Command Line Tools для Xcode (или Xcode ), он будет инсталлирован во время установки Homebrew. Или вы можете поставить его самостоятельно.

    Чтобы установить Homebrew, откройте терминал и выполните команду:

    Перед выполнением скрипт объяснит, что он собирается сделать.

    У пользователей Linux уже есть встроенные в систему менеджеры пакетов (в CentOS — это yum, в Ubuntu — apt). Но если очень хочется, можно поставить Homebrew и на Linux .

    Примеры использования

    Чтобы установить консольную программу, выполните:

    Например, если в консоли вам не хватает файлового менеджера, можно установить Midnight Commander.

    А так в macOS можно вернуть утилиту telnet.

    Программы с графическим интерфейсом устанавливаются через расширение cask.

    Например, можно установить терминал iTerm2.

    Чтобы установить несколько приложений, напишите их через пробел.

    Для поиска утилит и программ в репозитории используйте команду search. Так, например, можно выполнить поиск программ по ключевому слову «office».

    Для удаления программы используется команда uninstall.

    И еще несколько полезных команд.

    Удаление Homebrew

    Если нужно удалить Homebrew, воспользуйтесь командой ниже.

    Однако не представляю, зачем это может понадобиться.

    Полезные ссылки

    На этом всё. Но вы можете поддержать проект. Даже небольшая сумма поможет нам писать больше полезных статей.

    Если статья помогла или понравилась, пожалуйста поделитесь ей в соцсетях.

    Источник

    How can I completely uninstall Homebrew and uninstall everything it has done? #48792

    Comments

    corysimmons commented Feb 3, 2016

    It’s a cool tool, it just doesn’t mesh with me. What are the steps to uninstall every package/dependency it has every installed and the uninstall Homebrew completely from my system?

    The text was updated successfully, but these errors were encountered:

    DomT4 commented Feb 3, 2016

    corysimmons commented Feb 3, 2016

    Well that’s an oddly named repo.

    Will this uninstaller uninstall everything Homebrew has ever installed and all their dependencies, or is Homebrew going to leave a ton of stuff on my system?

    DomT4 commented Feb 3, 2016

    The uninstall script was added much later than the install script, by which point links across the internet were telling people to go find Homebrew’s install repo.

    Will this uninstaller uninstall everything Homebrew has ever installed and all their dependencies

    Yes. If you run it with —dry-run it should tell you what is being removed, without actually doing any removing.

    corysimmons commented Feb 3, 2016

    I might just uninstall everything, then reinstall a clean version of Homebrew. I think my problem was going crazy installing tons of packages, now it just feels insane to maintain.

    DomT4 commented Feb 3, 2016

    If you want to remove all the packages you’ve installed but keep Homebrew around you could also do something like:

    Читайте также:  Google chrome windows 10 indir gezginler

    corysimmons commented Feb 3, 2016

    The more I think about it, the more I probably just need to do a factory restore. This laptop is full of so much junk.

    MikeMcQuaid commented Feb 3, 2016

    @DomT4 I’d recommend brew bundle dump for that, just FYI.

    You can’t perform that action at this time.

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

    Источник

    Homebrew Documentation

    Is there a glossary of terms around?

    All your terminology needs can be found here.

    How do I update my local packages?

    First update the formulae and Homebrew itself:

    You can now find out what is outdated with:

    Upgrade everything with:

    Or upgrade a specific formula with:

    How do I stop certain formulae from being updated?

    To stop something from being updated/upgraded:

    To allow that formulae to update again:

    Note that pinned, outdated formulae that another formula depends on need to be upgraded when required, as we do not allow formulae to be built against outdated versions. If this is not desired, you can instead brew extract to maintain your own copy of the formula in a tap.

    How do I uninstall Homebrew?

    How can I keep old versions of a formula when upgrading?

    Homebrew automatically uninstalls old versions of a formula after that formula is upgraded with brew upgrade , and periodically performs additional cleanup every 30 days.

    To disable automatic brew cleanup :

    When automatic brew cleanup is disabled, if you uninstall a formula, it will only remove the latest version you have installed. It will not remove all versions of the formula that you may have installed in the past. Homebrew will continue to attempt to install the newest version it knows about when you run brew upgrade . This can be surprising.

    In this case, to remove a formula entirely, you may run brew uninstall —force . Be careful as this is a destructive operation.

    Why does brew upgrade or brew install also upgrade a bunch of other stuff?

    Homebrew doesn’t support arbitrary mixing and matching of formula versions, so everything a formula depends on, and everything that depends on it in turn, needs to be upgraded to the latest version as that’s the only combination of formulae we test. As a consequence any given upgrade or install command can upgrade many other (seemingly unrelated) formulae, if something important like python or openssl also needed an upgrade.

    Where does stuff get downloaded?

    Which is usually:

    My Mac .app s don’t find Homebrew utilities!

    GUI apps on macOS don’t have Homebrew’s prefix in their PATH by default. If you’re on Mountain Lion or later, you can fix this by running sudo launchctl config user path «$(brew —prefix)/bin:$» and then rebooting, as documented in man launchctl . Note that this sets the launchctl PATH for all users. For earlier versions of macOS, see this page.

    How do I contribute to Homebrew?

    Why do you compile everything?

    Homebrew provides pre-compiled versions for many formulae. These pre-compiled versions are referred to as bottles and are available at https://github.com/Homebrew/homebrew-core/packages.

    If available, bottled binaries will be used by default except under the following conditions:

    • Options were passed to the install command, i.e. brew install will use a bottled version of the formula, but brew install —enable-bar will trigger a source build.
    • The —build-from-source option is invoked.
    • The machine is not running a supported version of macOS as all bottled builds are generated only for supported macOS versions.
    • Homebrew is installed to a prefix other than the default (although some bottles support this).

    We aim to bottle everything.

    How do I get a formula from someone else’s branch?

    Why should I install Homebrew in the default location?

    Homebrew’s pre-built binary packages (known as bottles) of many packages can only be used if you install in the default installation prefix, otherwise they have to be built from source. Building from source takes a long time, is prone to fail, and is not supported. Do yourself a favour and install to the default prefix so that you can use our pre-built binary packages. The default prefix is /usr/local for macOS on Intel, /opt/homebrew for macOS on Apple Silicon/ARM, and /home/linuxbrew/.linuxbrew for Linux. Pick another prefix at your peril!

    Why is the default installation prefix /opt/homebrew on Apple Silicon?

    The prefix /opt/homebrew was chosen to allow installations in /opt/homebrew for Apple Silicon and /usr/local for Rosetta 2 to coexist and use bottles.

    Why is the default installation prefix /home/linuxbrew/.linuxbrew on Linux?

    The prefix /home/linuxbrew/.linuxbrew was chosen so that users without admin access can ask an admin to create a linuxbrew role account and still benefit from precompiled binaries. If you do not yourself have admin privileges, consider asking your admin staff to create a linuxbrew role account for you with home directory /home/linuxbrew .

    Why does Homebrew say sudo is bad?

    tl;dr Sudo is dangerous, and you installed TextMate.app without sudo anyway.

    Homebrew refuses to work using sudo.

    You should only ever sudo a tool you trust. Of course, you can trust Homebrew 😉 But do you trust the multi-megabyte Makefile that Homebrew runs? Developers often understand C++ far better than they understand make syntax. It’s too high a risk to sudo such stuff. It could modify (or upload) any files on your system. And indeed, we’ve seen some build scripts try to modify /usr even when the prefix was specified as something else entirely.

    We use the macOS sandbox to stop this but this doesn’t work when run as the root user (which also has read and write access to almost everything on the system).

    Did you chown root /Applications/TextMate.app ? Probably not. So is it that important to chown root wget ?

    If you need to run Homebrew in a multi-user environment, consider creating a separate user account especially for use of Homebrew.

    Читайте также:  Windows замирает при загрузке

    Why isn’t a particular command documented?

    If it’s not in man brew , it’s probably an external command. These are documented here.

    Why haven’t you merged my pull request?

    If it’s been a while, bump it with a “bump” comment. Sometimes we miss requests and there are plenty of them. Maybe we were thinking on something. It will encourage consideration. In the meantime if you could rebase the pull request so that it can be cherry-picked more easily we will love you for a long time.

    Can I edit formulae myself?

    Yes! It’s easy! Just brew edit . You don’t have to submit modifications back to homebrew/core , just edit the formula as you personally need it and brew install . As a bonus brew update will merge your changes with upstream so you can still keep the formula up-to-date with your personal modifications!

    Can I make new formulae?

    Yes! It’s easy! Just brew create URL . Homebrew will then open the formula in EDITOR so you can edit it, but it probably already installs; try it: brew install . If you encounter any issues, run the command with the —debug switch like so: brew install —debug , which drops you into a debugging shell.

    If you want your new formula to be part of homebrew/core or want to learn more about writing formulae, then please read the Formula Cookbook.

    Why was a formula deleted or disabled?

    Use brew log to find out! Likely because it had unresolved issues and/or our analytics identified it was not widely used.

    For disabled and deprecated formulae, running brew info will also provide an explanation.

    Homebrew is a poor name, it’s too generic, why was it chosen?

    Homebrew’s creator @mxcl was too concerned with the beer theme and didn’t consider that the project may actually prove popular. By the time Max realised that it was popular, it was too late. However, today, the first Google hit for “homebrew” is not beer related 😉

    What does “keg-only” mean?

    It means the formula is installed only into the Cellar and is not linked into the default prefix. This means most tools will not find it. You can see why a formula was installed as keg-only, and instructions to include it in your PATH , by running brew info .

    You can still link in the formula if you need to with brew link , though this can cause unexpected behaviour if you are shadowing macOS software.

    How can I specify different configure arguments for a formula?

    brew edit and edit the formula. Currently there is no other way to do this.

    The app can’t be opened because it is from an unidentified developer

    Chances are that certain apps will give you a popup message like this:

    This is a security feature from Apple. The single most important thing to know is that you can allow individual apps to be exempt from that feature. This allows the app to run while the rest of the system remains under protection.

    Always leave system-wide protection enabled, and disable it only for specific apps as needed.

    If you are sure you want to trust the app, you can disable protection for that app by right-clicking its icon and choosing Open :

    Finally, click the Open button if you want macOS to permanently allow the app to run on this Mac. Don’t do this unless you’re sure you trust the app.

    Alternatively, you may provide the —no-quarantine flag at install time to not add this feature to a specific app.

    Why some apps aren’t included in upgrade

    After running brew upgrade , you may notice some casks you think should be upgrading, aren’t.

    As you’re likely aware, a lot of macOS software can upgrade itself:

    That could cause conflicts when used in tandem with Homebrew Cask’s upgrade mechanism.

    If you upgrade software through it’s built-in mechanism, that happens without Homebrew Cask’s knowledge so both versions get out of sync. If you then upgraded through Homebrew Cask and we have a lower version on the software on record, you’d get a downgrade.

    There are a few ideas to fix this problem:

    • Try to prevent the software’s automated updates. That won’t be a universal solution and may cause it to break. Most software on Homebrew Cask is closed-source, so we’d be guessing. This is also why pinning casks to a version isn’t available.
    • Try to extract the installed software’s version and compare it to the cask, deciding what to do at that time. That’s a complicated solution that breaks other parts of our methodology, such as using versions to interpolate in url s (a definite win for maintainability). That solution also isn’t universal, as many software developers are inconsistent in their versioning schemes (and app bundles are meant to have two version strings) and it doesn’t work for all types of software we support.

    So we let software be. Installing it with Homebrew Cask should make it behave the same as if you had installed it manually. But we also want to support software that does not auto-upgrade, so we add auto_updates true to casks of software that can do it, which excludes them from brew upgrade .

    Casks which use version :latest are also excluded, because we have no way to track the version they’re in. It helps to ask the developers of such software to provide versioned releases (i.e. have the version in the path of the download url ).

    If you still want to force software to be upgraded via Homebrew Cask, you can:

    • Reference it specifically in the upgrade command: brew upgrade .
    • Use the —greedy flag: brew upgrade —greedy .

    Refer to the upgrade section of the brew manual page by running man -P ‘less —pattern «^ <3>upgrade»‘ brew .

    Источник

  • Оцените статью