Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Is there some command for Redhat Linux that can tell me whether the Arabic Language is installed on Redhat 5.6 Server.

share|improve this question

4 Answers 4

You can also try:

$ ls -lah /usr/share/locale/

On my system, Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.35-2 x86_64 GNU/Linux ,it's

...
drwxr-xr-x   3 root root 4.0K Dec 23 15:22 en_US
...
lrwxrwxrwx   1 root root   17 Dec 30 17:45 locale.alias -> /etc/locale.alias
...

And you can try to grep the language you're interested in.

share|improve this answer
4  
Please try expanding on your answer. What would the expected output be? Can you provide an example? If the Arabic Language isn't installed per your suggested check, how can it be installed? –  uther Jan 14 '13 at 15:01

Since the language come as a meta package,

You could first verify the package name with yum grouplist, then check if that is installed with yum list installed | grep XXX

Another stupid way to check this,

%> export LANG=XXX; export LANGUAGE=$LANG;
%> ls some_file_does_not_exist

And you gonna receive an error message in the desired language, if the language pack is installed.

share|improve this answer

It's not 100% reliable, but:

$ rpm -q fonts-arabic

The hole here is that you could have the fonts installed, but not everything else you need to make Arabic text work in programs. You could also check for the fribidi package to improve the chance of your guess being correct.

If you want to do this in a shell script, I'd modify it slightly:

if rpm -q --quiet fonts-arabic ; then ...

That way you don't have to redirect noise out to /dev/null.

share|improve this answer

add, remove and change supported languages using the Package Manager. The Package Manager can be accessed from the system menu by clicking Applications => Add/Remove Software.

In the first tab you can view the application categories among which is Languages from which you can select the languages you wish to support.

language that is installed will be already checked and if you want to install it check the box. Please select only the languages you wish to use as this can save you a significant amount of disk space. The language selection feature in the Package Manager is illustrated below. Some languages have optional packages which you can select and install. enter image description here

share|improve this answer
1  
Well im using ssh and I have not installed vnc and this server is on remote site. –  OmiPenguin Jan 14 '13 at 12:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.