View previous topic :: View next topic |
Author |
Message |
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Sun Mar 01, 2020 10:52 am Post subject: [SOLVED] No manual entry for java-config |
|
|
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 |
|
|
ff11 l33t
Joined: 10 Mar 2014 Posts: 664
|
Posted: Sun Mar 01, 2020 11:07 am Post subject: Re: No manual entry for java-config |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30894 Location: here
|
Posted: Sun Mar 01, 2020 11:53 am Post subject: |
|
|
Because name is java-config-2
Code: | $ man java-config-2 |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Sun Mar 01, 2020 3:09 pm Post subject: |
|
|
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 |
|
|
ff11 l33t
Joined: 10 Mar 2014 Posts: 664
|
Posted: Sun Mar 01, 2020 3:12 pm Post subject: |
|
|
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:
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30894 Location: here
|
Posted: Sun Mar 01, 2020 3:25 pm Post subject: |
|
|
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 |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Sun Mar 01, 2020 3:39 pm Post subject: |
|
|
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:
| 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 |
|
|
ff11 l33t
Joined: 10 Mar 2014 Posts: 664
|
Posted: Sun Mar 01, 2020 3:43 pm Post subject: |
|
|
charles17 wrote: |
But why not here? |
Then try to rebuild all the database first:
_________________ | 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 |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Sun Mar 01, 2020 4:00 pm Post subject: |
|
|
ff11 wrote: | Then try to rebuild all the database first:
|
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 |
|
|
ff11 l33t
Joined: 10 Mar 2014 Posts: 664
|
Posted: Sun Mar 01, 2020 4:08 pm Post subject: |
|
|
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 |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Sun Mar 01, 2020 4:24 pm Post subject: |
|
|
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 |
|
|
ff11 l33t
Joined: 10 Mar 2014 Posts: 664
|
Posted: Sun Mar 01, 2020 4:32 pm Post subject: |
|
|
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 |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Sun Mar 01, 2020 4:39 pm Post subject: |
|
|
I don't see this mentioned on the wiki article |
|
Back to top |
|
|
ff11 l33t
Joined: 10 Mar 2014 Posts: 664
|
Posted: Sun Mar 01, 2020 4:49 pm Post subject: |
|
|
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 |
|
|
|