How To Install opencc.x86_64 on Amazon Linux 2

In this tutorial we learn how to install opencc.x86_64 in Amazon Linux 2. opencc.x86_64 is Libraries for Simplified-Traditional Chinese Conversion

Introduction

In this tutorial we learn how to install opencc.x86_64 on Amazon Linux 2.

What is opencc.x86_64

OpenCC is a library for converting characters and phrases between Traditional Chinese and Simplified Chinese.

We can use yum to install opencc.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install opencc.x86_64.

Install opencc.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install opencc.x86_64 using yum by running the following command:

sudo yum -y install opencc.x86_64

How To Uninstall opencc.x86_64 on Amazon Linux 2

To uninstall only the opencc.x86_64 package we can use the following command:

sudo yum remove opencc.x86_64

opencc.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libopencc.so.1
/usr/lib64/libopencc.so.1.0.0
/usr/share/doc/opencc-0.4.3
/usr/share/doc/opencc-0.4.3/AUTHORS
/usr/share/doc/opencc-0.4.3/LICENSE
/usr/share/doc/opencc-0.4.3/README.md
/usr/share/locale/zh_CN/LC_MESSAGES/opencc.mo
/usr/share/locale/zh_HK/LC_MESSAGES/opencc.mo
/usr/share/locale/zh_TW/LC_MESSAGES/opencc.mo
/usr/share/opencc
/usr/share/opencc/from_tw_phrases.txt
/usr/share/opencc/from_tw_variants.txt
/usr/share/opencc/mix2zhs.ini
/usr/share/opencc/mix2zht.ini
/usr/share/opencc/simp_to_trad_characters.ocd
/usr/share/opencc/simp_to_trad_phrases.ocd
/usr/share/opencc/to_cn_phrases.txt
/usr/share/opencc/to_tw_phrases.txt
/usr/share/opencc/to_tw_variants.txt
/usr/share/opencc/trad_to_simp_characters.ocd
/usr/share/opencc/trad_to_simp_phrases.ocd
/usr/share/opencc/zhs2zht.ini
/usr/share/opencc/zhs2zhtw_p.ini
/usr/share/opencc/zhs2zhtw_v.ini
/usr/share/opencc/zhs2zhtw_vp.ini
/usr/share/opencc/zht2zhs.ini
/usr/share/opencc/zht2zhtw_p.ini
/usr/share/opencc/zht2zhtw_v.ini
/usr/share/opencc/zht2zhtw_vp.ini
/usr/share/opencc/zhtw2zhcn_s.ini
/usr/share/opencc/zhtw2zhcn_t.ini
/usr/share/opencc/zhtw2zhs.ini
/usr/share/opencc/zhtw2zht.ini

References

Summary

In this tutorial we learn how to install opencc.x86_64 on Amazon Linux 2 using yum.