Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] No manual entry for java-config
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3421

PostPosted: Sun Mar 01, 2020 10:52 am    Post subject: [SOLVED] No manual entry for java-config Reply with quote

Trying to display java-config man page:
Code:
$ qlist java-config | grep man
/usr/share/man/man1/java-config-2.1.bz
Code:
$ man java-config
No manual entry for java-config

Any idea?


Last edited by charles17 on Sun Mar 01, 2020 10:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
ff11
Guru
Guru


Joined: 10 Mar 2014
Posts: 503

PostPosted: Sun Mar 01, 2020 11:07 am    Post subject: Re: No manual entry for java-config Reply with quote

charles17 wrote:
Trying to display java-config man page:
Code:
$ qlist java-config | grep man
/usr/share/man/man1/java-config-2.1.bz
Code:
$ man java-config
No manual entry for java-config

Any idea?

Just do:
Code:
$ man -u java-config

To rebuild the database for java-config.
_________________
| Proverbs 26:12 |
| There is more hope for a fool than for a wise man that are wise in his own eyes. |
* AlphaGo - The Movie - Full Documentary
"I want to apologize for being so powerless" - Lee
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24326
Location: here

PostPosted: Sun Mar 01, 2020 11:53 am    Post subject: Reply with quote

Because name is java-config-2
Code:
$ man java-config-2

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3421

PostPosted: Sun Mar 01, 2020 3:09 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Because name is java-config-2
Code:
$ man java-config-2

You are right, that's it.
But how to find out if you don't know? Is there kind of command listing the available man pages?
Back to top
View user's profile Send private message
ff11
Guru
Guru


Joined: 10 Mar 2014
Posts: 503

PostPosted: Sun Mar 01, 2020 3:12 pm    Post subject: Reply with quote

charles17 wrote:
fedeliallalinea wrote:
Because name is java-config-2
Code:
$ man java-config-2

You are right, that's it.
But how to find out if you don't know? Is there kind of command listing the available man pages?

You can use the "apropos" to find, like:
Code:
$ apropos java


By the way: my "$ man java-config" still works fine.
_________________
| Proverbs 26:12 |
| There is more hope for a fool than for a wise man that are wise in his own eyes. |
* AlphaGo - The Movie - Full Documentary
"I want to apologize for being so powerless" - Lee
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24326
Location: here

PostPosted: Sun Mar 01, 2020 3:25 pm    Post subject: Reply with quote

charles17 wrote:
You are right, that's it.
But how to find out if you don't know? Is there kind of command listing the available man pages?

As ff11 say you can use apropos . or man -k .
In my case I use bash-completion (or zsh-completion) so when I write man and double <tab> the list is showed
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3421

PostPosted: Sun Mar 01, 2020 3:39 pm    Post subject: Reply with quote

ff11 wrote:
Just do:
Code:
$ man -u java-config

To rebuild the database for java-config.

No luck
Code:
$ man -u java-config
No manual entry for java-config


ff11 wrote:

You can use the "apropos" to find, like:
Code:
$ apropos java
Also no luck:
Code:
$ apropos java

java: nothing appropriate.


ff11 wrote:
By the way: my "$ man java-config" still works fine.

But why not here?
Back to top
View user's profile Send private message
ff11
Guru
Guru


Joined: 10 Mar 2014
Posts: 503

PostPosted: Sun Mar 01, 2020 3:43 pm    Post subject: Reply with quote

charles17 wrote:

But why not here?


Then try to rebuild all the database first:
Code:
$ sudo mandb

_________________
| Proverbs 26:12 |
| There is more hope for a fool than for a wise man that are wise in his own eyes. |
* AlphaGo - The Movie - Full Documentary
"I want to apologize for being so powerless" - Lee
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3421

PostPosted: Sun Mar 01, 2020 4:00 pm    Post subject: Reply with quote

ff11 wrote:
Then try to rebuild all the database first:
Code:
$ sudo mandb

No sudo here, but
Code:
$ su -c mandb
Password:

Processing manual pages under /usr/share/man...
Checking for stray cats under /usr/share/man...
Checking for stray cats under /var/cache/man...
Processing manual pages under /usr/share/man/fr.UTF-8...
Checking for stray cats under /usr/share/man/fr.UTF-8...
Checking for stray cats under /var/cache/man/fr.UTF-8...
Processing manual pages under /usr/share/man/da.UTF-8...
Checking for stray cats under /usr/share/man/da.UTF-8...
Checking for stray cats under /var/cache/man/da.UTF-8...
Processing manual pages under /usr/share/man/it.UTF-8...
Checking for stray cats under /usr/share/man/it.UTF-8...
Checking for stray cats under /var/cache/man/it.UTF-8...
Processing manual pages under /usr/share/man/ru.KOI8-R...
Checking for stray cats under /usr/share/man/ru.KOI8-R...
Checking for stray cats under /var/cache/man/ru.KOI8-R...
Processing manual pages under /usr/share/man/de.ISO8859-1...
Checking for stray cats under /usr/share/man/de.ISO8859-1...
Checking for stray cats under /var/cache/man/de.ISO8859-1...
Processing manual pages under /usr/share/man/da...
Checking for stray cats under /usr/share/man/da...
Checking for stray cats under /var/cache/man/da...
Processing manual pages under /usr/share/man/de.UTF-8...
Checking for stray cats under /usr/share/man/de.UTF-8...
Checking for stray cats under /var/cache/man/de.UTF-8...
Processing manual pages under /usr/share/man/ru...
Checking for stray cats under /usr/share/man/ru...
Checking for stray cats under /var/cache/man/ru...
Processing manual pages under /usr/share/man/it.ISO8859-1...
Checking for stray cats under /usr/share/man/it.ISO8859-1...
Checking for stray cats under /var/cache/man/it.ISO8859-1...
Processing manual pages under /usr/share/man/hr...
Checking for stray cats under /usr/share/man/hr...
Checking for stray cats under /var/cache/man/hr...
Processing manual pages under /usr/share/man/jp...
Checking for stray cats under /usr/share/man/jp...
Checking for stray cats under /var/cache/man/jp...
Processing manual pages under /usr/share/man/ja...
Checking for stray cats under /usr/share/man/ja...
Checking for stray cats under /var/cache/man/ja...
Processing manual pages under /usr/share/man/pl...
Checking for stray cats under /usr/share/man/pl...
Checking for stray cats under /var/cache/man/pl...
Processing manual pages under /usr/share/man/it...
Checking for stray cats under /usr/share/man/it...
Checking for stray cats under /var/cache/man/it...
Processing manual pages under /usr/share/man/ru.UTF-8...
Checking for stray cats under /usr/share/man/ru.UTF-8...
Checking for stray cats under /var/cache/man/ru.UTF-8...
Processing manual pages under /usr/share/man/de...
Checking for stray cats under /usr/share/man/de...
Checking for stray cats under /var/cache/man/de...
Processing manual pages under /usr/share/man/da.ISO8859-1...
Checking for stray cats under /usr/share/man/da.ISO8859-1...
Checking for stray cats under /var/cache/man/da.ISO8859-1...
Processing manual pages under /usr/share/man/es...
Checking for stray cats under /usr/share/man/es...
Checking for stray cats under /var/cache/man/es...
Processing manual pages under /usr/share/man/pl.ISO8859-2...
Checking for stray cats under /usr/share/man/pl.ISO8859-2...
Checking for stray cats under /var/cache/man/pl.ISO8859-2...
Processing manual pages under /usr/share/man/fr...
Checking for stray cats under /usr/share/man/fr...
Checking for stray cats under /var/cache/man/fr...
Processing manual pages under /usr/share/man/pl.UTF-8...
Checking for stray cats under /usr/share/man/pl.UTF-8...
Checking for stray cats under /var/cache/man/pl.UTF-8...
Processing manual pages under /usr/share/man/hu...
Checking for stray cats under /usr/share/man/hu...
Checking for stray cats under /var/cache/man/hu...
Processing manual pages under /usr/share/man/fr.ISO8859-1...
Checking for stray cats under /usr/share/man/fr.ISO8859-1...
Checking for stray cats under /var/cache/man/fr.ISO8859-1...
35 man subdirectories contained newer manual pages.
17571 manual pages were added.
0 stray cats were added.
0 old database entries were purged.


And then finally:
Code:
$ apropos java
java-config-2 (1)    - The Java configuration tool for Gentoo
node (1)             - server-side JavaScript runtime
npm (1)              - javascript package manager
npm-README (1)       - a JavaScript package manager
registry (7)         - The JavaScript Package Registry

And also man java-config without trailing number works here (again).
Thanks for your help
Back to top
View user's profile Send private message
ff11
Guru
Guru


Joined: 10 Mar 2014
Posts: 503

PostPosted: Sun Mar 01, 2020 4:08 pm    Post subject: Reply with quote

Good to know. But I have to inform you about something:

The normal user get the man database updates from cron daily tasks (https://wiki.gentoo.org/wiki/Cron) in "/etc/cron.daily/man-db".
Then, if you aren't running it, you will need to do manual updates from time to time (if you need updates, of couse).
_________________
| Proverbs 26:12 |
| There is more hope for a fool than for a wise man that are wise in his own eyes. |
* AlphaGo - The Movie - Full Documentary
"I want to apologize for being so powerless" - Lee
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3421

PostPosted: Sun Mar 01, 2020 4:24 pm    Post subject: Reply with quote

ff11 wrote:
Good to know. But I have to inform you about something:

The normal user get the man database updates from cron daily tasks (https://wiki.gentoo.org/wiki/Cron) in "/etc/cron.daily/man-db".
Then, if you aren't running it, you will need to do manual updates from time to time (if you need updates, of couse).

No cron here. I was expecting the man stuff to be updated by @world updates. What's wrong with it?
Back to top
View user's profile Send private message
ff11
Guru
Guru


Joined: 10 Mar 2014
Posts: 503

PostPosted: Sun Mar 01, 2020 4:32 pm    Post subject: Reply with quote

charles17 wrote:
ff11 wrote:
Good to know. But I have to inform you about something:

The normal user get the man database updates from cron daily tasks (https://wiki.gentoo.org/wiki/Cron) in "/etc/cron.daily/man-db".
Then, if you aren't running it, you will need to do manual updates from time to time (if you need updates, of couse).

No cron here. I was expecting the man stuff to be updated by @world updates. What's wrong with it?

Because it take forever for each package that need it. The pacman on ArchLinux do this, but a lot of users don't like it. The Gentoo (and ubuntu...) do using "nice" background cron daily tasks (the normal users feel less pain that way).
I myself, just update it when I need it, I don't use man pages everyday, and I only need updates like one per year.
_________________
| Proverbs 26:12 |
| There is more hope for a fool than for a wise man that are wise in his own eyes. |
* AlphaGo - The Movie - Full Documentary
"I want to apologize for being so powerless" - Lee
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3421

PostPosted: Sun Mar 01, 2020 4:39 pm    Post subject: Reply with quote

I don't see this mentioned on the wiki article :-(
Back to top
View user's profile Send private message
ff11
Guru
Guru


Joined: 10 Mar 2014
Posts: 503

PostPosted: Sun Mar 01, 2020 4:49 pm    Post subject: Reply with quote

charles17 wrote:
I don't see this mentioned on the wiki article :-(

Because the normal working linux installation use cron, and "sys-apps/man-db" install the task "/etc/cron.daily/man-db", then the users don't need to do nothing for it to work.
The users that don't want that task, will just remove it (but taking note of why).
But if you don't use cron, then you have to know everything that need to be running, not only mandb, but others things like logrotate (or someday you will have problems with "/var/log/" size)
Again, I myself have "sys-process/cronie" installed, but not running. And I just take a look on the tasks (/etc/cron*), that I make one manual run when I need it.
_________________
| Proverbs 26:12 |
| There is more hope for a fool than for a wise man that are wise in his own eyes. |
* AlphaGo - The Movie - Full Documentary
"I want to apologize for being so powerless" - Lee
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum