Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find the url for a brew tap?

Tags:

homebrew

I added a homebrew repository a long time ago with brew tap. I forgot the URL I used. brew tap doesn't list the URL:

$ brew tap
homebrew/core
shyiko/ktlint
foo/bar

How do I find the URL?

like image 460
Heath Borders Avatar asked Nov 15 '18 21:11

Heath Borders


People also ask

How do you set up a Homebrew tap?

Here's how you set up a new Tap: Create a new GitHub repo. Add directories called Formula and Casks . Into each of these you add Ruby files which contain all the information Brew needs to download, authenticate and install the Tap's apps.

What is Homebrew tap?

Taps (Third-Party Repositories) The brew tap command adds more repositories to the list of formulae that Homebrew tracks, updates, and installs from. By default, tap assumes that the repositories come from GitHub, but the command isn't limited to any one location.

How do I remove a tap from my Homebrew?

brew untap user/repo [user/repo user/repo ...] removes the given taps. The repositories are deleted and brew will no longer be aware of their formulae. brew untap can handle multiple removals at once.

What does brew Tap Homebrew cask versions do?

Homebrew-Cask extends Homebrew and allows you to install large binary files via a command-line tool. You can for example install applications like Google Chrome, Dropbox, VLC and Spectacle.


2 Answers

You can get the repository url by running:

brew tap-info foo/bar
like image 83
Fhl Avatar answered Oct 08 '22 00:10

Fhl


If you have a tap user/repo, which is not on github, you can get the associated URL in two steps:

1) Go to the location of the tap.

cd /usr/local/Homebrew/Library/Taps/[user]/homebrew-[repo]

2) Use git to check the remote repository

git remote -v

If the tap is on github you can simply make a substitution to get the URL:

https://github.com/[user]/homebrew-[repo]
like image 39
Ortomala Lokni Avatar answered Oct 07 '22 23:10

Ortomala Lokni