LoginSignup
18

More than 5 years have passed since last update.

特定のファイルが含まれるパッケージを探す

Posted at
  • Q: 某所から持ってきた tarball 展開して make したら何か X11/Intrinsic.h が無いって怒られた……どのパッケージにあるかわかんないよーうわーん
  • A1: Ubuntu パッケージ検索 の「パッケージの内容を検索」を使うんだ
  • A2: apt-file をインストールしてみ、捗るぞ
$ sudo apt-get update
$ sudo apt-get install apt-file
$ sudo apt-file update
$ apt-file search X11/Intrinsic.h
libxt-dev: /usr/include/X11/Intrinsic.h
tendra: /usr/lib/TenDRA/lib/include/x5/t.api/X11/Intrinsic.h

参照:Ubuntu Weekly Recipe:第16回 パッケージの使いこなし:必要なファイルの含まれるパッケージの探し方, Debianパッケージの流用|gihyo.jp … 技術評論社
参照:特定のコマンドやファイルがどのパッケージに含まれているかを検索できる"apt-file" - RX-7乗りの適当な日々

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18