📜  ubuntu install brew - Shell-Bash (1)

📅  最后修改于: 2023-12-03 14:48:06.514000             🧑  作者: Mango

Ubuntu Install Brew - Shell-Bash

Introduction

Brew is a popular package manager for macOS. However, it is now available for Linux users as well. This guide will walk you through the process of installing brew on Ubuntu using Shell-Bash.

Prerequisites
  • Ubuntu 16.04 or higher
  • Basic knowledge of the command line
Installation
  1. Open up the terminal on your Ubuntu machine.

  2. Update your system by running the following command:

sudo apt update && sudo apt upgrade
  1. Install the required dependencies by running the following commands:
sudo apt install build-essential curl file git
  1. Install brew by running the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Follow the prompts on the screen to complete the installation process.

  2. Test your installation by running the following command:

brew --version

If brew is installed correctly, you will get the version number of brew.

Conclusion

In this guide, we have gone through the process of installing brew on Ubuntu using Shell-Bash. You can now use brew to install and manage packages on your Ubuntu machine.