apropos

General support questions including new installations
borgward512
Posts: 28
Joined: 2015/11/09 20:15:42

apropos

Post by borgward512 » 2016/05/30 04:33:26

apropos and man -k both return "nothing appropriate" Is there something I need to do to make them work? Is there another method for finding appropriate commands for a subject in CentOs?

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: apropos

Post by aks » 2016/05/30 08:32:01

What are you trying to search for?
(Example: apropos ls returns results, but apropos why_did_i_not_win_the_lottery doesn't)

borgward512
Posts: 28
Joined: 2015/11/09 20:15:42

Re: apropos

Post by borgward512 » 2016/05/30 13:40:03

For example apropos printer

On a computer not running CentOs:

~ $ apropos printer
cups-browsed (8) - A daemon for browsing the Bonjour broadcasts of shared, remote CUPS printers
cups-calibrate (8) - ESP CUPS Printer Calibration Tool
cups-lpd (8) - receive print jobs and report printer status to lpd clients
cupsaddsmb (8) - export printers to samba for windows clients
cupsdisable (8) - stop/start printers and classes
cupsenable (8) - stop/start .........................
.......... and so on.

~ $ apropos network
interfaces (5) - network interface configuration for ifup and ifdown
aseqnet (1) - ALSA sequencer connectors over network
avahi-autoipd (8) - IPv4LL network address configuration daemon
byteorder (3) - convert values between host and network byte order
.............................................
.........................................................
tcpdump (8) - dump traffic on a network
tracepath (8) - traces path to a network host discovering MTU along this path
tracepath6 (8) - traces path to a network host discovering MTU along this path
traceroute6 (8) - traces path to a network host
traceroute6.iputils (8) - traces path to a network host
wget (1) - The non-interactive network downloader.
X (7) - a portable, network-transparent window system
~ $

In CentOs I get:

apropos printer - nothing appropriate

apropos network - nothing appropriate

Same results with man -k

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: apropos

Post by TrevorH » 2016/05/30 14:50:40

Both need makewhatis to run before they will work. On an install of CentOS it puts an entry into /etc/cron.daily to run this (/etc/cron/daily/makewhatis.cron) but that entry will not run until about 04:00 the day after the install is completed. Until then neither apropos nor man -k will work. You can run the makewhatis entry manually if you want to speed this up.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

borgward512
Posts: 28
Joined: 2015/11/09 20:15:42

Re: apropos

Post by borgward512 » 2016/05/30 15:41:25

CentOs was installed on May 11 2017.

$ makewhatis
bash: makewhatis: command not found

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: apropos

Post by gerald_clark » 2016/05/30 16:17:26

Install it next year along with the EOL CentOS 5.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: apropos

Post by TrevorH » 2016/05/30 16:23:09

Code: Select all

$ rpm -qf /etc/cron.daily/makewhatis.cron
man-1.6d-3.el5
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

borgward512
Posts: 28
Joined: 2015/11/09 20:15:42

Re: apropos

Post by borgward512 » 2016/05/30 22:15:41

$ rpm -qf /etc/cron.daily/makewhatis.cron
man-1.6d-3.el5
$ man-1.6d-3.el5
bash: man-1.6d-3.el5: command not found

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: apropos

Post by TrevorH » 2016/05/30 22:35:09

The rpm -qf command tells you what package owns a particular file. You can't a package name but you could try running /etc/cron.daily/makewhatis.cron instead.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

borgward512
Posts: 28
Joined: 2015/11/09 20:15:42

Re: apropos

Post by borgward512 » 2016/05/31 04:57:34

My Bad. I installed from CentOs 5.7 i386 bin DVD 1 of 2. I thought I checked it's md5sum, etc, but must have checked that of 2 of 2. Checksum of 1 of 2 does not match. The install did not require 2 of 2.

Looking to download 1 of 2 see 1 of 8 thru 8 of 8, they look like CD's. I see no 1 of 2 and 2 of 2. DVD's at http://archive.kernel.org/centos-vault/5.7/isos/i386/ I see CentOS-5.7-i386-bin-DVD.torrent 13-Sep-2011 00:49 319K What do I do with that?

Post Reply