[Linux] nkfをインストールしたときの覚書

nkf: コマンドが見つかりません

#インストールする方法

以下を無心で叩く

$ sudo yum install nkf

#ログ

# sudo yum install nkf
Loaded plugins: fastestmirror
Determining fastest mirrors
epel/metalink                                            | 3.7 kB     00:00
 * base: www.ftp.ne.jp
 * epel: ftp.kddilabs.jp
 * extras: www.ftp.ne.jp
 * remi: remi.kazukioishi.net
 * updates: www.ftp.ne.jp
base                                                     | 3.7 kB     00:00
epel                                                     | 4.4 kB     00:00
epel/primary_db                                          | 6.1 MB     00:00
extras                                                   | 3.4 kB     00:00
remi                                                     | 2.9 kB     00:00
remi/primary_db                                          | 689 kB     00:00
updates                                                  | 3.4 kB     00:00
updates/primary_db                                       | 3.1 MB     00:00
zabbix                                                   |  951 B     00:00
zabbix-non-supported                                     |  951 B     00:00
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package nkf.x86_64 1:2.0.8b-6.2.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package       Arch             Version                    Repository      Size
================================================================================
Installing:
 nkf           x86_64           1:2.0.8b-6.2.el6           base           110 k

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 110 k
Installed size: 241 k
Is this ok [y/N]: y
Downloading Packages:
nkf-2.0.8b-6.2.el6.x86_64.rpm                            | 110 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:nkf-2.0.8b-6.2.el6.x86_64                                  1/1
  Verifying  : 1:nkf-2.0.8b-6.2.el6.x86_64                                  1/1

Installed:
  nkf.x86_64 1:2.0.8b-6.2.el6

Complete!

これでnkfが使える。

$ # rpm -qa | grep nkf
nkf-2.0.8b-6.2.el6.x86_64
$ nkf -g test.csv
ASCII (LF)