atp-get など
atp-get は便利なのだが、このファイルがどのパッケージに含まれているかなどが取得できない。
apt-cache も同様。
こうゆう時は apt-file を使うらしい。
取ってきた後は、
$ apt-get install apt-file
と言われるので、ファイル情報の更新を行う。
The system-wide cache is empty. You may want to run 'apt-file update'
as root to update the cache. You can also run 'apt-file update' as
normal user to use a cache in the user's home directory.
と思ったら ubuntu が自動で聞いてくるので、それにしたがって更新を行った。
検索は以下のように行う。
$ apt-file search /usr/bin/ruby
libruby1.8-dbg: /usr/lib/debug/usr/bin/ruby1.8
libruby1.9.1-dbg: /usr/lib/debug/usr/bin/ruby1.9.1
ruby-prof: /usr/bin/ruby-prof
ruby-rubyforge: /usr/bin/rubyforge
ruby1.8: /usr/bin/ruby1.8
ruby1.9.1: /usr/bin/ruby1.9.1
sloccount: /usr/bin/ruby_count
apt-get, apt-cache に関しては以下が詳しい。
http://www.plustar.jp/lab/blog/?p=4039
http://www.plustar.jp/lab/blog/?p=4054
- 2012/07/04
保留になったパッケージが山ほどあった。
でアップデートする。
$ apt-get upgrade
http://d.hatena.ne.jp/con_mame/20080621