Ask Your Question
0

Where can I find locale command source code?

asked 2016-07-09 03:10:20 -0500

Galvotas gravatar image

it seems that command locale is not part of gnu coreutils, and google doesn't seems to be helpful. So maybe someone knows where can I find linux locale command source code?

edit retag flag offensive close merge delete

Comments

If I am not wrong, this is the source for locale https://sourceware.org/git/?p=glibc.g...

thejranjan gravatar imagethejranjan ( 2016-07-09 08:00:53 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2016-07-09 08:19:02 -0500

sergiomb gravatar image

updated 2016-07-09 22:34:43 -0500

All steps:

which locate

/usr/bin/locate

rpm -qf /usr/bin/locate

mlocate-0.26-13.fc23.x86_64

dnf download --source mlocate

blabla mlocate-0.26-13.fc23.src.rpm

ark -ba mlocate-0.26-13.fc23.src.rpm

cd mlocate-0.26-13.fc23.src/
ls -l

and you got there : mlocate-0.26.tar.xz

Also you may check upstream URL , for example :

rpm -qf /usr/bin/locate -i

(...)
URL : https://fedorahosted.org/mlocate/
(...)

For locale instead locate

rpm -qf /usr/bin/locale

glibc-common-2.22-17.fc23.x86_64

so is download with src.rpm with:

dnf download --source glibc-common
edit flag offensive delete link more

Comments

The OP says locale.

skytux gravatar imageskytux ( 2016-07-09 12:10:14 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2016-07-09 03:10:20 -0500

Seen: 469 times

Last updated: Jul 09 '16