Tuesday, March 6, 2018

What should I install to get my utility in UNIX

I am trying to access xclock and getting error that is is not found !!! I want to know that what should I install so that I can get this utility

[root@wa01 ~]# xclock
-bash: xclock: command not found
[root@wa01 ~]# 

Simplest way is run the command below and it will give you name of application which has this util


# yum whatprovides xclock


[root@wa01 ~]# yum whatprovides xclock
Loaded plugins: refresh-packagekit, ulninfo
xorg-x11-apps-7.7-6.el6.x86_64 : X.Org X11 applications
Repo        : public_ol6_latest
Matched from:
Other       : xclock



xorg-x11-apps-7.6-6.el6.x86_64 : X.Org X11 applications
Repo        : public_ol6_latest
Matched from:
Other       : xclock



xorg-x11-apps-7.4-10.el6.x86_64 : X.Org X11 applications
Repo        : public_ol6_latest
Matched from:
Other       : xclock



[root@wa01 ~]# 


The installation will be done as

[root@wa01 ~]# yum install xorg-x11-apps

After the install, now utility is avaialble

[root@wa01 ~]# which xclock
/usr/bin/xclock
[root@wa01 ~]# 




No comments: