Introduction to xclock:

  • In Linux, the xclock package contains a simple clock application which is used in the default xinit configuration.
  • This package is not a part of the Xorg katamari and is provided only as a dependency to other packages or for testing the completed Xorg installation.
  • This package is known to build and work properly using an LFS-8.0 platform.

Installation of xclock:

  • Install xclock by running the following commands:
[pastacode lang=”bash” manual=”.%2Fconfigure%20%24XORG_CONFIG%20%26%26%0Amake%0A” message=”bash code” highlight=”” provider=”manual”/] [ad type=”banner”]
  • This package does not come with a test suite.

Now, as the root user:

[pastacode lang=”bash” manual=”%20make%20install%0A” message=”bash code” highlight=”” provider=”manual”/]

How to install xclock on Red Hat Linux:

  • To identify if xclock is installed and if it is not installed, how to install it on Red Hat Linux system.
  • If xclock is not installed, invoking xclock will return command not found message as seen below
[pastacode lang=”bash” manual=”%24%20xclock%0A-bash%3A%20xclock%3A%20command%20not%20found%0A” message=”bash code” highlight=”” provider=”manual”/]
  • xclock whereis, which and rpm –qa commands confirm that is not installed
[pastacode lang=”bash” manual=”%24%20whereis%20xclock%0Axclock%3A%0A” message=”bash code” highlight=”” provider=”manual”/] [ad type=”banner”] [pastacode lang=”bash” manual=”%24%20which%20xclock%0A%2Fusr%2Fbin%2Fwhich%3A%20no%20xclock%20in%20(%2Fusr%2Flib64%2Fqt-3.3%2Fbin%3A%2Fusr%2Flocal%2Fsbin%3A%2Fusr%2Flocal%2Fbin%3A%2Fsbin%3A%2Fbin%3A%2Fusr%2Fsbin%3A%2Fusr%2Fbin%3A%2Froot%2Fb%0A” message=”bash code” highlight=”” provider=”manual”/]
  • Use rpm –qa to find if the package xorg-x11-apps is installed.
[pastacode lang=”bash” manual=”%23%20rpm%20-qa%20%20%7C%20grep%20-i%20xorg-x11-apps%0A%23%0A” message=”bash code” highlight=”” provider=”manual”/]

The above command returns nothing. Which means that there is no rpm for xclock installed on the system. –qa stands for query all.

Categorized in: