Linux / CentOS install basic command line functions

I'm fairly new to linux I have ubuntu installed on a machine at home and now have a remote server with CentOS but certain commands not working like I'd expect.

whois, locate always return - -bash: locate: command not found

Trying to install it.


yum install locate
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
addons | 951 B 00:00
base | 2.1 kB 00:00
c5-testing | 1.9 kB 00:00
extras | 1.1 kB 00:00
updates | 1.9 kB 00:00
Setting up Install Process
No package locate available.
Nothing to do

same for whois

What should I install to get these or similar functions?

No votes yet

Replies

Try yum search

Try yum search when looking for what exactly to install to get the functionality you are looking for.

A quick example to search for what to install for locate

yum search locate
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
================================================================================ Matched: locate =================================================================================
findutils.x86_64 : The GNU versions of find utilities (find and xargs).
xinetd.x86_64 : A secure replacement for inetd.
classpathx-jaf.x86_64 : GNU JavaBeans(tm) Activation Framework
ctags.x86_64 : A C programming language indexing and/or cross-reference tool.
dnsmasq.x86_64 : A lightweight DHCP/caching DNS server
fontconfig.i386 : Font configuration and customization library
fontconfig.x86_64 : Font configuration and customization library
<strong>mlocate.x86_64</strong> : An utility for finding files by name
planner.x86_64 : A graphical project management tool.
postgresql.x86_64 : PostgreSQL client programs and libraries.
which.x86_64 : Displays where a particular program in your path is located.
wvdial.x86_64 : A heuristic autodialer for PPP connections.

mlocate is what you are looking for.

yum install mlocate

For whois

yum search whois
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
================================================================================= Matched: whois =================================================================================
gnome-nettool.x86_64 : A GNOME interface for various networking tools
jwhois.x86_64 : Internet whois/nicname client.

for the whois
yum install jwhois

Your rating: None

Post new comment

 
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><code>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.