LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-14-2016, 01:29 PM   #1
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Rep: Reputation: Disabled
CentOS 7 : Why is man -k and apropos commands not working?


I have just installed CentOS as VM on KVM.
Why is man -k and apropos commands not working?

Quote:

[user1@localhost ~]$ locate apropos
/usr/bin/apropos
/usr/share/man/es/man1/apropos.1.gz
/usr/share/man/it/man1/apropos.1.gz
/usr/share/man/man1/apropos.1.gz

[user1@localhost ~]$ $PATH
bash: /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/user1/.local/bin:/home/user1/bin: No such file or directory

# Not working!
[user1@localhost ~]$ man -k apropos
apropos: nothing appropriate.

# Not working!
[user1@localhost ~]$ apropos man
man: nothing appropriate.
Addendum: man without -k option works, e.g. man man.


Thank you.

Last edited by fanoflq; 08-14-2016 at 01:38 PM.
 
Old 08-14-2016, 03:26 PM   #2
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Original Poster
Rep: Reputation: Disabled
Problem solved with:
Quote:
> yum update
 
Old 08-16-2016, 09:05 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Usually this is because the index file hasn't been created. See "man mandb".

Usually the index gets created when man pages are installed, but it may depend on the packages being installed need the mandb utility installed as well. It may also depend on the order they are installed in as well - doing everything in one go usually gets the order correct.

Last edited by jpollard; 08-16-2016 at 09:11 AM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS man -k not working Donquixote Linux - Server 5 09-11-2015 11:09 AM
man finds it, but man -k or apropos doesn't: why? mcswell Linux - Software 3 02-16-2012 05:16 PM
Please Help Me Use The Man/Info/Apropos Pages abcool92 Linux - General 10 03-28-2010 04:59 AM
apropos, man -k, man -f? krishvij Linux - Newbie 5 06-06-2005 01:42 PM
'apropos' and 'whatis' not returning info when 'man' does docbrazen Slackware 2 11-15-2003 11:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration