作爲一個linux菜鳥,今日在vmware workstaion下安裝了Linux後準備通過yum安裝中文包時,提示This system is not registered with RHN。在百度上查了查,參看http://blog.163.com/lin_jianying/blog/static/13093558620121395921609/結果爲:
因爲redhat內沒有註冊RHN,所以解決辦法爲:
假定已經安裝yum,且網絡暢通)更改yum的源,即更換/etc/yum.repos.d /rhel-debuginfo.repo 這個文件。進入/etc/yum.repos.d/目錄,終端中輸入wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo即可在此目錄下得到CentOS- Base.repo文件,這是centos的源文件,只需將其重命名爲rhel-debuginfo.repo即可,以前的文件做個備份。
安裝中文包:
yum install fonts-chinese.noarch
yum install m17n-db-common-cjk
yum install m17n-db-chinese