What Linux Package Install Clear, Install Clear On CentOS Linux
Posted by alex in Insights at 3:05 AMRecently 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.
[root@dev ~]# yum whatprovides *bin/clear*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.tummy.com
* atomic: www4.atomicorp.com
* base: mirrors.gigenet.com
* epel: fedora-epel.mirror.lstn.net
* extras: centos.mirror.lstn.net
* rpmforge: fr2.rpmfind.net
* updates: mirrors.tummy.com
ossec-hids-server-2.5.1-1.el5.art.i386 : The OSSEC HIDS Server
Repo : atomic
Matched from:
Filename : /var/ossec/bin/clear_stats
ncurses-5.5-24.20060715.i386 : A terminal handling library
Repo : base
Matched from:
Filename : /usr/bin/clear
mindi-busybox-1.7.2-1.el5.rf.i386 : Busybox version suited for Mindi
Repo : rpmforge
Matched from:
Filename : /usr/lib/mindi/rootfs/usr/bin/clear
mindi-busybox-1.7.3-1.el5.rf.i386 : Busybox version suited for Mindi
Repo : rpmforge
Matched from:
Filename : /usr/lib/mindi/rootfs/usr/bin/clear
perl-ClearCase-Wrapper-1.14-1.el5.rf.noarch : General-purpose wrapper for
: cleartool
Repo : rpmforge
Matched from:
Filename : /usr/bin/cleartool.plx
perl-ClearCase-Wrapper-1.15-1.el5.rf.noarch : General-purpose wrapper for
: cleartool
Repo : rpmforge
Matched from:
Filename : /usr/bin/cleartool.plx
ncurses-5.5-24.20060715.i386 : A terminal handling library
Repo : installed
Matched from:
Filename : /usr/bin/clear
[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:
[root@dev ~]# yum install ncurses Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirrors.tummy.com * atomic: www4.atomicorp.com * base: mirrors.gigenet.com * epel: fedora-epel.mirror.lstn.net * extras: centos.mirror.lstn.net * rpmforge: fr2.rpmfind.net * updates: mirrors.tummy.com Setting up Install Process Package ncurses-5.5-24.20060715.i386 already installed and latest version Nothing to do [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.
|
|
|
|




Entries (RSS)