Page 1 of 1

cannot access /etc/locale.conf: No such file or directory

Posted: 2017/09/14 14:20:54
by lin26b2b
Hi all:

on my centos machine, I failed to find the locale.conf file.

[root@wuserver locale]# ls -cl /etc/locale.conf
ls: cannot access /etc/locale.conf: No such file or directory

my machine was: Linux version 2.6.32-642.1.1.el6.x86_64 , CentOS release 6.8 (Final)

Is it nothing unexpected ?
otherwise, how to fix this problem ?

Many many thanks!

Re: cannot access /etc/locale.conf: No such file or directory

Posted: 2017/09/14 14:49:52
by TrevorH
It's expected as /etc/locale.conf belongs to systemd which is el7 only, not el6.

Oh, and you need to yum update to get up to date - 6.9 has been out for about 6 months now.

Re: cannot access /etc/locale.conf: No such file or directory

Posted: 2017/09/15 02:04:20
by lin26b2b
Thank you TrevorH!
What file on el6 worked as etc/locale.conf on el7 ?

Best,