tkuchikiの日記

新ブログ https://blog.tkuchiki.net

Amazon EC2 (Amazon Linux AMI) にnkf をインストールする手順

Amazon Linux AMI は、yum が使えるが、

$ yum install nkf
Loaded plugins: priorities, security, update-motd, upgrade-helper
1 packages excluded due to repository priority protections
Setting up Install Process
No package nkf available.
Error: Nothing to do

package がないと言われてしまう。。。

yum がだめなので、RPM を使う。

http://pkgs.org/centos-6-rhel-6/centos-rhel-x86_64/nkf-2.0.8b-6.2.el6.x86_64.rpm/download/

からRPMを取得。
あとは、

$ rpm -ivh nkf-2.0.8b-6.2.el6.x86_64.rpm

でOK。