HostOnNet Blog

updatedb high io usage

Looking for Linux Server Admin or WordPress Expert? We can help.

updatedb command is part of package mlocate, it is used to create list of files, so you can use locate command to find files faster.

On most servers this not not required as you don’t find files that often and no need to keep such a database ready. When you need to find some files, just use find command.

To see location of updatedb command, run which updatedb

[email protected] [~]# which updatedb
/usr/bin/updatedb
[email protected] [~]# 

To see which package provide this binary file, run command

[email protected] [~]# rpm -qf /usr/bin/updatedb
mlocate-0.22.2-6.el6.x86_64
[email protected] [~]# 

Now, lets remove it with yum remove

yum remove mlocate

[email protected] [~]# yum remove mlocate
Loaded plugins: fastestmirror, rhnplugin
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package mlocate.x86_64 0:0.22.2-6.el6 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================
 Package                                    Arch                                      Version                                           Repository                                                      Size
=============================================================================================================================================================================================================
Removing:
 mlocate                                    x86_64                                    0.22.2-6.el6                                      @cloudlinux-x86_64-server-6                                    279 k

Transaction Summary
=============================================================================================================================================================================================================
Remove        1 Package(s)

Installed size: 279 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing    : mlocate-0.22.2-6.el6.x86_64                                                                                                                                                               1/1 
  Verifying  : mlocate-0.22.2-6.el6.x86_64                                                                                                                                                               1/1 

Removed:
  mlocate.x86_64 0:0.22.2-6.el6                                                                                                                                                                              

Complete!
[email protected] [~]# 


Posted in CentOS

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.