What Linux Package Install Clear, Install Clear On CentOS Linux

Recently I wrote an article about how to install clear via Cygwin on Windows however I used the Yellowdog Updater on CentOS Linux to first figure out what package installs clear. Below I describe how to use yum to figure out what Linux package installs a specific application followed by installing clear or verifying the package that provides clear is already installed.

Find Out What Linux Package Installs clear Using Yum:

You can use the “yum whatprovides” command as shown in the below example output to figure out what Linux package includes the clear application. Typically when searching for an application you want to add bin/ or sbin/ in front of the application name so you minimize the results output.

bash

  1. [root@dev ~]# yum whatprovides *bin/clear*
  2. Loaded plugins: fastestmirror
  3. Loading mirror speeds from cached hostfile
  4.  * addons: mirrors.tummy.com
  5.  * atomic: www4.atomicorp.com
  6.  * base: mirrors.gigenet.com
  7.  * epel: fedora-epel.mirror.lstn.net
  8.  * extras: centos.mirror.lstn.net
  9.  * rpmforge: fr2.rpmfind.net
  10.  * updates: mirrors.tummy.com
  11. ossec-hids-server-2.5.1-1.el5.art.i386 : The OSSEC HIDS Server
  12. Repo        : atomic
  13. Matched from:
  14. Filename    : /var/ossec/bin/clear_stats
  15.  
  16. ncurses-5.5-24.20060715.i386 : A terminal handling library
  17. Repo        : base
  18. Matched from:
  19. Filename    : /usr/bin/clear
  20.  
  21. mindi-busybox-1.7.2-1.el5.rf.i386 : Busybox version suited for Mindi
  22. Repo        : rpmforge
  23. Matched from:
  24. Filename    : /usr/lib/mindi/rootfs/usr/bin/clear
  25.  
  26. mindi-busybox-1.7.3-1.el5.rf.i386 : Busybox version suited for Mindi
  27. Repo        : rpmforge
  28. Matched from:
  29. Filename    : /usr/lib/mindi/rootfs/usr/bin/clear
  30.  
  31. perl-ClearCase-Wrapper-1.14-1.el5.rf.noarch : General-purpose wrapper for
  32.                                             : cleartool
  33. Repo        : rpmforge
  34. Matched from:
  35. Filename    : /usr/bin/cleartool.plx
  36.  
  37. perl-ClearCase-Wrapper-1.15-1.el5.rf.noarch : General-purpose wrapper for
  38.                                             : cleartool
  39. Repo        : rpmforge
  40. Matched from:
  41. Filename    : /usr/bin/cleartool.plx
  42.  
  43. ncurses-5.5-24.20060715.i386 : A terminal handling library
  44. Repo        : installed
  45. Matched from:
  46. Filename    : /usr/bin/clear
  47.  
  48. [root@dev ~]#

As you can see there are a bunch of results in the output above but the second one titled ncurses-5.5-24.20060715.i386, describes the package as a terminal handling library, and that installs clear in /usr/bin looks to be the Linux application we are interested in. Now because I was technically searching for clear to install using Cygwin on Windows now I would take the above information and search for ncurses in Cygwin however to make the article complete you can use the information below to make sure the ncurses package is installed on CentOS Linux using the information below.

Install clear On CentOS Linux By Installing The ncurses Linux Package:

bash

  1. [root@dev ~]# yum install ncurses
  2. Loaded plugins: fastestmirror
  3. Loading mirror speeds from cached hostfile
  4.  * addons: mirrors.tummy.com
  5.  * atomic: www4.atomicorp.com
  6.  * base: mirrors.gigenet.com
  7.  * epel: fedora-epel.mirror.lstn.net
  8.  * extras: centos.mirror.lstn.net
  9.  * rpmforge: fr2.rpmfind.net
  10.  * updates: mirrors.tummy.com
  11. Setting up Install Process
  12. Package ncurses-5.5-24.20060715.i386 already installed and latest version
  13. Nothing to do
  14. [root@dev ~]#

As you can see above the ncruses package is already installed on the CentOS Linux server being used in the example and is already the latest version. If ncurses is not installed you will be asked to verify you want to install it by typing “y” and clicking enter to proceed.

 

Thats it you now have the ability to type clear from a terminal window and reset all of the output.

The Definitive Guide to CentOS (Books for Professionals by Professionals) (Paperback)


List Price: $39.99 USD
New From: $24.06 USD In Stock
Used from: $0.54 USD In Stock

The Accidental Administrator: Linux Server Step-by-Step Configuration Guide (Paperback)


List Price: $40.00 USD
New From: $30.68 USD In Stock
Used from: $29.14 USD In Stock

Share