You are not logged in.

#1 2020-12-17 11:18:49

archnoon
Member
Registered: 2020-05-06
Posts: 6

[Solved] command not found:mlocate even after reinstall

Hi folks! I wanted to try

mlocate

after executing

sudo updatedb

but according to zsh it is not found. Even after reinstalling mlocate:

xyz@xyz ~ sudo pacman -S mlocate  
[sudo] password for xyz: 
warning: mlocate-0.26.git.20170220-5 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) mlocate-0.26.git.20170220-5

Total Installed Size:  0,34 MiB
Net Upgrade Size:      0,00 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                     [#####################################################################] 100%
(1/1) checking package integrity                                                                                   [#####################################################################] 100%
(1/1) loading package files                                                                                        [#####################################################################] 100%
(1/1) checking for file conflicts                                                                                  [#####################################################################] 100%
(1/1) checking available disk space                                                                                [#####################################################################] 100%
:: Processing package changes...
(1/1) reinstalling mlocate                                                                                         [#####################################################################] 100%
:: Running post-transaction hooks...
(1/3) Creating system user accounts...
(2/3) Reloading system manager configuration...
(3/3) Arming ConditionNeedsUpdate...
xyz@xyz ~ which mlocate         
mlocate not found

What am i missing?

Last edited by archnoon (2020-12-17 12:55:44)

Offline

#2 2020-12-17 11:26:38

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: [Solved] command not found:mlocate even after reinstall

The command name is just "locate" without the "m".

You can browse file contents of a package like this:

pacman -Ql mlocate | less

The commands it installs are in the /usr/bin location:

$ pacman -Ql mlocate | grep /usr/bin
mlocate /usr/bin/
mlocate /usr/bin/locate
mlocate /usr/bin/slocate
mlocate /usr/bin/updatedb

Last edited by Ropid (2020-12-17 11:27:27)

Offline

Board footer

Powered by FluxBB