{"id":29960768,"url":"https://github.com/techstackspace/developers-setting","last_synced_at":"2026-04-05T08:33:56.341Z","repository":{"id":286035645,"uuid":"960126684","full_name":"techstackspace/developers-setting","owner":"techstackspace","description":"Homebrew Instalation and Usage Guide","archived":false,"fork":false,"pushed_at":"2026-04-01T11:23:23.000Z","size":87,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-01T13:21:57.619Z","etag":null,"topics":["cli","dependencies","git","gui","homebrew","linux","mac","macos","packages","software"],"latest_commit_sha":null,"homepage":"https://dev.to/bello/homebrew-installation-and-usage-guide-5b6j","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techstackspace.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["techstackspace"],"patreon":"techstackmedia","ko_fi":"techstackmedia","buy_me_a_coffee":"techstackmedia","custom":["https://dashboard.flutterwave.com/donate/tm2wng7djkuv"]}},"created_at":"2025-04-03T22:47:20.000Z","updated_at":"2026-02-20T09:47:38.000Z","dependencies_parsed_at":"2025-04-19T02:19:44.893Z","dependency_job_id":"2a9d4387-fb3a-455d-a531-21f6e318cabc","html_url":"https://github.com/techstackspace/developers-setting","commit_stats":null,"previous_names":["techstackspace/developers-setting"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/techstackspace/developers-setting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techstackspace%2Fdevelopers-setting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techstackspace%2Fdevelopers-setting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techstackspace%2Fdevelopers-setting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techstackspace%2Fdevelopers-setting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techstackspace","download_url":"https://codeload.github.com/techstackspace/developers-setting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techstackspace%2Fdevelopers-setting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31430009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T08:13:15.228Z","status":"ssl_error","status_checked_at":"2026-04-05T08:13:11.839Z","response_time":75,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","dependencies","git","gui","homebrew","linux","mac","macos","packages","software"],"created_at":"2025-08-03T23:01:17.382Z","updated_at":"2026-04-05T08:33:56.293Z","avatar_url":"https://github.com/techstackspace.png","language":"Ruby","funding_links":["https://github.com/sponsors/techstackspace","https://patreon.com/techstackmedia","https://ko-fi.com/techstackmedia","https://buymeacoffee.com/techstackmedia","https://dashboard.flutterwave.com/donate/tm2wng7djkuv"],"categories":[],"sub_categories":[],"readme":"# Homebrew Installation and Usage Guide\n\n[![Cover Image](https://res.cloudinary.com/dv6yqup4h/image/upload/v1752424054/TechstackSpace/Blog%20Covers/GitHub_Cover_Image_mah8xt.png)](https://youtu.be/rCSUX_YiMpY?si=O9Bi0Z4WLnQoLmBq)\n\n## What is Homebrew?\n\nHomebrew (often called brew) is a package manager for macOS and Linux that allows users to easily install, update, and manage software applications and command-line tools.\n\n## Checking Your Default Shell\n\nBefore installing Homebrew, it's essential to verify which shell you are using. Run:\n\n```sh\necho $SHELL  # or\necho $0\n```\n\nIf you're using Zsh (which is the default on modern macOS versions), you may need to configure certain environment variables differently than in Bash.\n\n### (Optional) Switch to Zsh\n\nIf your default shell is not Zsh, you can switch using:\n\n```sh\ncat /etc/shells  # List available shells\nchsh -s /bin/zsh  # Change default shell to Zsh\n```\n\nClose the terminal and reopen it for changes to take effect.\n\n---\n\n## Prerequisites\n\nBefore you start installing and using Homebrew to manage packages, make sure you have the **Command Line Tools (CTL)** installed by running the following command:\n\n- Check if CTL is installed:\n\n```sh\nxcode-select -p\n```\n\nIf it does not return a valid installation path or shows an error like \"command not found\", install CTL using:\n\n```sh\nxcode-select --install\n```\n\nThis will prompt a macOS dialog to install the necessary tools. Follow the instructions and wait for the installation to complete.\n\n## Installing Homebrew\n\n### Step 1: Open the Homebrew Website\n\nRun:\n\n```sh\nxdg-open https://brew.sh  # Linux\nopen https://brew.sh  # macOS\n```\n\nOr visit [Homebrew](https://brew.sh) manually.\n\n### Step 2: Copy and Run the Installation Command\n\nCopy the installation script from the website and run it in your terminal:\n\n```sh\n/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"\n```\n\n- You may need to enter your password to allow `sudo` access.\n- Follow interactive instructions to add Homebrew to your `PATH`.\n- To **uninstall** Homebrew, replace `/install.sh/` with `/uninstall.sh/` in the command.\n- Before uninstalling Homebrew, first remove all installed packages to avoid orphaned files.\n\n### Step 3: Configure Environment Variables\n\nSince `zprofile` loads once per login session, set the Homebrew path there:\n\n```sh\ncat ~/.zprofile  # View existing configurations\n```\n\nTo modify it, use:\n\n```sh\nvim ~/.zprofile  # or\nnano ~/.zprofile\n```\n\nIf Homebrew is uninstalled, ensure you remove its path from `.zprofile` or `.zshrc` to prevent errors.\n\n### Step 4: Verify Installation\n\nRun:\n\n```sh\nbrew --prefix  # Confirm Homebrew’s location\nbrew -v  # Check installed version\n```\n\n---\n\n## Installing Git Using Homebrew\n\nEven though Git is preinstalled on macOS and Linux, installing it via Homebrew ensures easier updates.\n\n```sh\nbrew search git  # Search for Git\nbrew install git  # Install Git\nbrew install --formula git  # Explicitly install as a formula\n```\n\nDuring installation, dependencies like `gettext`, `pcre2`, and `libunistring` may also be installed.\n\n### Verify Installation\n\n```sh\ngit --version  # Check Git version\nwhich git  # Locate Git installation\n```\n\n---\n\n## Understanding Homebrew Package Types\n\nHomebrew has two main package types:\n\n- **Formulae** (command-line tools, e.g., `git`)\n- **Casks** (GUI applications, e.g., `Arc Browser`)\n\nTo install a cask package:\n\n```sh\nbrew search arc  # Search for Arc Browser\nbrew install --cask arc  # Install Arc Browser\n```\n\nGood practice: Always use `--cask` when installing GUI apps.\n\n### Listing Installed Packages\n\n```sh\nbrew list  # List installed packages\nbrew list | grep git  # Filter results using `grep`\n```\n\n### Managing Homebrew Packages\n\nBefore upgrading or removing Homebrew packages, ensure Terminal has necessary permissions:\n\n- Go to **Apple icon → Privacy \u0026 Security → App Management**\n- Toggle the button for **Terminal**\n\n#### Upgrade Packages\n\n```sh\nbrew upgrade --cask arc  # Upgrade a specific package\nbrew upgrade --greedy  # Upgrade all dependencies\n```\n\n#### Uninstall Packages\n\n```sh\nbrew uninstall --formula \u003cpackage-name\u003e  # Remove a formula package\nbrew uninstall --cask \u003cpackage-name\u003e  # Remove a cask package\nbrew uninstall --zap --cask \u003cpackage-name\u003e  # Extra cleanup for GUI apps\n```\n\n\u003e The `--zap` flag in `brew uninstall` should only be used for cask packages (GUI applications)\n\n#### Cleanup Unused Packages\n\n```sh\nbrew cleanup  # Free up space by removing old versions\nbrew autoremove  # Remove orphaned dependencies\n```\n\n---\n\n## Exploring Homebrew Commands\n\n```sh\nbrew help  # View basic commands\nbrew info \u003cpackage-name\u003e  # Get details about a package\nman brew  # View all available commands\nbrew home  # Open Homebrew homepage\nbrew docs  # Open Homebrew documentation\n```\n\nFor searching packages manually, visit [Homebrew Formulae](https://formulae.brew.sh).\n\n---\n\n## User-Specific Settings: Opening Websites from Terminal\n\nTo avoid typing `https://` every time, add this function to your `~/.zshrc` (for Zsh) or `~/.bashrc` (for Bash):\n\n### macOS (Uses `open`)\n\n```sh\noh() {\n  local input=\"$*\"\n  if [[ \"$input\" =~ ^[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$ \u0026\u0026 ! \"$input\" =~ \\  ]]; then\n    open \"https://$input\"\n  else\n    open \"https://www.google.com/search?q=$(echo \"$input\" | tr ' ' '+')\"\n  fi\n}\n```\n\n### Linux (Uses `xdg-open`)\n\n```sh\noh() {\n  local input=\"$*\"\n  if [[ \"$input\" =~ ^[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$ \u0026\u0026 ! \"$input\" =~ [[:space:]] ]]; then\n    xdg-open \"https://$input\"\n  else\n    xdg-open \"https://www.google.com/search?q=$(echo \"$input\" | tr ' ' '+')\"\n  fi\n}\n```\n\nSource the file to apply changes:\n\n```sh\nsource ~/.zshrc  # or source ~/.bashrc\n```\n\nNow, simply typing `brew.sh` will open the Homebrew website!\n\n---\n\nThis guide ensures a smooth Homebrew installation and management experience. 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechstackspace%2Fdevelopers-setting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechstackspace%2Fdevelopers-setting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechstackspace%2Fdevelopers-setting/lists"}