LoginSignup
2
4

More than 5 years have passed since last update.

yum でコマンド名からインストール可能なパッケージを探す (CentOS)

Posted at

yum でコマンド名からインストール可能なパッケージを探す (CentOS)

たまーにさわると、すっかり忘れている私向け備忘録。

たとえば、CentOS 7 を minimal インストールしたら locate が入っていない場合に locate が入っているパッケージを探す。

provides

[root@localhost ~]# yum provides locate
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.iij.ad.jp
 * extras: ftp.iij.ad.jp
 * updates: ftp.iij.ad.jp
mlocate-0.26-6.el7.x86_64 : An utility for finding files by name
リポジトリー        : base
一致          :
ファイル名    : /usr/bin/locate

search all

[root@localhost ~]# yum search all locate
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.iij.ad.jp
 * extras: ftp.iij.ad.jp
 * updates: ftp.iij.ad.jp
===================================================== 一致: locate =====================================================
mlocate.x86_64 : An utility for finding files by name
booth.x86_64 : Ticket Manager for Multi-site Clusters
ctags.x86_64 : A C programming language indexing and/or cross-reference tool
dnsmasq.x86_64 : A lightweight DHCP/caching DNS server
findutils.x86_64 : The GNU versions of find utilities (find and xargs)
fontconfig.i686 : Font configuration and customization library
fontconfig.x86_64 : Font configuration and customization library
ledmon.x86_64 : Enclosure LED Utilities
libXcursor.i686 : Cursor management library
libXcursor.x86_64 : Cursor management library
libguestfs-tools.noarch : System administration tools for virtual machines
memkind.x86_64 : User Extensible Heap Manager
perl-Email-Address.noarch : RFC 2822 Address Parsing and Creation
perl-File-ShareDir.noarch : Locate per-dist and per-module shared files
perl-local-lib.noarch : Create and use a local lib/ for perl modules
postgresql.i686 : PostgreSQL client programs
postgresql.x86_64 : PostgreSQL client programs
targetd.noarch : Service to make storage remotely configurable
which.x86_64 : Displays where a particular program in your path is located
wvdial.x86_64 : A heuristic autodialer for PPP connections
xinetd.x86_64 : A secure replacement for inetd

インストールする

[root@localhost ~]# yum install mlocate

確認した環境

OS: Linux localhost.localdomain 3.10.0-514.21.2.el7.x86_64 #1 SMP Tue Jun 20 12:24:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux (CentOS 7)

2
4
0

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
2
4