・RedHat系
名前と説明、両方を検索 $ yum search vim lusterfs-vim.i686 : Vim syntax file protobuf-vim.i686 : Vim syntax highlighting for Google Protocol Buffers descriptions vim-X11.i686 : The VIM version of the vi editor for the X Window System vim-clustershell.noarch : VIM files for ClusterShell vim-common.i686 : The common files needed by any version of the VIM editor vim-enhanced.i686 : A version of the VIM editor which includes recent enhancements vim-minimal.i686 : A minimal version of the VIM editor vile-common.i686 : The common files needed by any version of the VIM editor vim-halibut.noarch : Syntax file for the halibut manual tool 名前だけを検索 $ yum list '*vim*' (ワイルドカードが使える) Installed Packages vim-common.i686 2:7.2.411-1.8.el6 @base/$releasever vim-enhanced.i686 2:7.2.411-1.8.el6 @base/$releasever vim-minimal.i686 2:7.2.411-1.8.el6 @base/$releasever Available Packages glusterfs-vim.i686 3.2.7-1.el6 epel protobuf-vim.i686 2.3.0-7.el6 epel vim-X11.i686 2:7.2.411-1.8.el6 base vim-clustershell.noarch 1.6-1.el6 epel vim-halibut.noarch 1.0-2.20100504svn8934.el6 epel パッケージの詳細も表示 $ yum info '*vim*' 以下略
・Debian系
名前と説明、両方を検索 $ apt-cache search vim (正規表現が使える) kdesdk-scripts - scripts and data files for development linuxdoc-tools - convert LinuxDoc SGML source into other formats tmux - terminal multiplexer vim-gnome - Vi IMproved - enhanced vi editor - with GNOME2 GUI 名前だけを対象にしたいなら、-n(--names-only)を付ける $ apt-cache -n search vim vim-gnome - Vi IMproved - enhanced vi editor - with GNOME2 GUI vim-gui-common - Vi IMproved - Common GUI files vim - Vi IMproved - 強化版 vim エディタ vim-common - Vi IMproved - Common files なぜか全然違う名前を表示することがある? $ apt-cache -n search '^a' | grep -v '^a' gawk - GNU awk - パターン検索 & 処理言語 mawk - パターン走査およびテキスト処理言語 Providesの値も調べるっぽい $ apt-cache show gawk Provides: awk
【関連】
・ファイルがどのパッケージに含まれているかをyum/aptで調べる方法
10:43 pm | コメントする |