2011-06-26
apt-cacheで指定パッケージに依存しているパッケージを探す
ググると
whatdepends コマンドと書かれていることが多い!?
$ apt-cache whatdepends HOGE
こんな感じで。しかーし、これはエラーになってしまう。
$ apt-cache whatdepends HOGE E: Invalid operation whatdepends
ヘルプを見てみる
$ apt-cache --help | grep 'dependency' depends - Show raw dependency information for a package rdepends - Show reverse dependency information for a package
rdepends コマンドを使えばいいみたい
$ apt-cache rdepends HOGE HOGE Reverse Depends: ... ...
ちなみに
apt のバージョンは
$ apt-cache --help apt 0.7.25.3ubuntu9.5 for i386 compiled on May 30 2011 05:38:30 ...
トラックバック - http://d.hatena.ne.jp/ino46/20110626/1309063947
リンク元
- 16 http://pipes.yahoo.com/pipes/pipe.info?_id=tDfBdGWF3RGl9XNm1L3fcQ
- 6 http://pipes.yahoo.com/pipes/pipe.info?_id=12e453e301454b799b3ac6642aa089b5
- 3 http://j.mp/lM5BgZ
- 3 http://t.co/MSuZpJnf
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=apt-cache rdepends&source=web&cd=5&ved=0CEIQFjAE&url=http://d.hatena.ne.jp/ino46/20110626/1309063947&ei=xA7BTri8Loj_mAXFk92ZBA&usg=AFQjCNERPYWFI1WchXFcQSEOVpOKZOecpA&sig2=OrMaT2WTFzV7KwLU4yOYzw
- 1 http://blog.search.yahoo.co.jp/search?fr=top_ga1&ei=UTF-8&p=ubuntu
- 1 http://blog.search.yahoo.co.jp/search?p=ubuntu&type=article
- 1 http://mobile.twitter.com/
- 1 http://search.yahoo.co.jp/search?p=APT+0,7&search.x=1&fr=top_ga1_sa&tid=top_ga1_sa&ei=UTF-8&aq=&oq=
- 1 http://search.yahoo.co.jp/search?p=apt-cache&aq=-1&ei=UTF-8&pstart=1&fr=top_ga1_sa&b=11