質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
grep

grepはコマンドライン上でテキスト検索を可能にするユーティリティーです。元はUnixのために用意されたものです。

MacOS(OSX)

MacOSとは、Appleの開発していたGUI(グラフィカルユーザーインターフェース)を採用したオペレーションシステム(OS)です。Macintoshと共に、市場に出てGUIの普及に大きく貢献しました。

Q&A

解決済

1回答

1821閲覧

GNU 版の grep をインストールしたいがhomebrew/dupes was deprecated

taro373

総合スコア189

grep

grepはコマンドライン上でテキスト検索を可能にするユーティリティーです。元はUnixのために用意されたものです。

MacOS(OSX)

MacOSとは、Appleの開発していたGUI(グラフィカルユーザーインターフェース)を採用したオペレーションシステム(OS)です。Macintoshと共に、市場に出てGUIの普及に大きく貢献しました。

0グッド

0クリップ

投稿2018/12/20 04:43

GNU 版の grep をインストールしたたいのですが、
Homebrew でインストールするために、下記を実行すると
エラーになりました。

~$ brew tap homebrew/dupes Error: homebrew/dupes was deprecated. This tap is now empty as all its formulae were migrated. $ brew install homebrew/dupes/grep Error: homebrew/dupes was deprecated. This tap is now empty as all its formulae were migrated. ~$ brew update Already up-to-date.

deprecatedを解消するには、と考えてuntapを実行してみましたが
untapも実行できませんでした。

$ brew untap homebrew/dupes Error: No available tap homebrew/dupes.

現在のgrepがlinux上のgrepと比べて遅いので、
GNU 版インストールしたいのですがどうすればインストールできるのでしょうか。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

bash

1$ brew info grep 2grep: stable 3.1 (bottled) 3GNU grep, egrep and fgrep 4https://www.gnu.org/software/grep/ 5Not installed 6From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/grep.rb 7==> Dependencies 8Build: pkg-config ✘ 9Required: pcre ✘ 10==> Options 11--with-default-names 12 Do not prepend 'g' to the binary 13==> Caveats 14The command has been installed with the prefix "g". 15If you do not want the prefix, install using the "with-default-names" 16option.

Homebrew/dupes (deprecated)

These formulae were those that duplicated software provided by macOS.

All formulae were migrated to Homebrew/homebrew-core or deleted.

GitHub - Homebrew/homebrew-dupes: Homebrew/dupes (deprecated)

投稿2018/12/20 04:53

編集2018/12/20 07:29
izkn

総合スコア1698

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

taro373

2018/12/20 07:00

おかげさまで、インストールできました。 ># grepのインストール >$ brew install homebrew/dupes/grep とあったのはなんだったのでしょう。 リポジトリの登録が `deprecated` だったようだと理解しましたが どのリポジトリかは指定せず、 単にこれ↓でよかったのですね。 ~$ brew install grep ==> Downloading https://homebrew.bintray.com/bottles/grep-3.1.sierra.bottle.1.tar.gz ######################################################################## 100.0% ==> Pouring grep-3.1.sierra.bottle.1.tar.gz ==> Caveats The command has been installed with the prefix "g". If you do not want the prefix, install using the "with-default-names" option. If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc like: PATH="/usr/local/opt/grep/libexec/gnubin:$PATH" Additionally, you can access their man pages with normal names if you add the "gnuman" directory to your MANPATH from your bashrc as well: MANPATH="/usr/local/opt/grep/libexec/gnuman:$MANPATH" ==> Summary ???? /usr/local/Cellar/grep/3.1: 21 files, 861.6KB
izkn

2018/12/20 07:35

参考にされたサイトの情報が古かったということでしょう。versions 等 多くの tap は使われなくなり、本家に組み込まれました。
taro373

2018/12/20 08:05

ありがとうございました
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問