You are not logged in.

#1 2020-04-24 11:08:18

JimDeadlock
Member
From: London
Registered: 2019-03-20
Posts: 83

[SOLVED] Missing Manpages

Many of my manpages are missing, including a lot of core packages. For example:

$ man grep
No manual entry for grep
$ man man
No manual entry for man

My manpage directory is /usr/share/man and I've noticed that some of the numbered subdirectories are empty (eg. man2, man6). Below are some things I've tried without success.

$ sudo pacman -S grep


$ manpath
/usr/local/man:/usr/local/share/man:/usr/share/man:/usr/lib/jvm/default/man
$ manpath -g
/usr/man:/usr/share/man:/usr/local/man:/usr/local/share/man:/usr/X11R6/man:/opt/man:/var/lib/snapd/snap/man


$ sudo mandb
............. [snip]
Processing manual pages under /usr/share/man/nl...
Purging old database entries in /usr/share/man/zh_CN...
Processing manual pages under /usr/share/man/zh_CN...
Purging old database entries in /usr/share/man/de...
Processing manual pages under /usr/share/man/de...
Processing manual pages under /usr/local/man...
0 man subdirectories contained newer manual pages.
0 manual pages were added.
0 stray cats were added.
0 old database entries were purged.


$ sudo mandb -c
............. [snip]
Checking for stray cats under /var/cache/man/es...
Processing manual pages under /usr/share/man/nl...
Updating index cache for path `/usr/share/man/nl/man8'. Wait...done.
Checking for stray cats under /usr/share/man/nl...
Checking for stray cats under /var/cache/man/nl...
Processing manual pages under /usr/share/man/zh_CN...
Updating index cache for path `/usr/share/man/zh_CN/man8'. Wait...done.
Checking for stray cats under /usr/share/man/zh_CN...
Checking for stray cats under /var/cache/man/zh_CN...
Processing manual pages under /usr/share/man/de...
Updating index cache for path `/usr/share/man/de/man8'. Wait...done.
Checking for stray cats under /usr/share/man/de...
Checking for stray cats under /var/cache/man/de...
Processing manual pages under /usr/local/man...
80 man subdirectories contained newer manual pages.
863 manual pages were added.
0 stray cats were added.

Last edited by JimDeadlock (2020-04-24 11:36:38)

Offline

#2 2020-04-24 11:10:36

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,653
Website

Re: [SOLVED] Missing Manpages

Do you have the man-pages package installed?

https://wiki.archlinux.org/index.php/Ma … stallation


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2020-04-24 11:13:23

JimDeadlock
Member
From: London
Registered: 2019-03-20
Posts: 83

Re: [SOLVED] Missing Manpages

Yes, man-db and man-pages are both installed and up to date.

Offline

#4 2020-04-24 11:20:32

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Missing Manpages

Output of...

pacman-conf

No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2020-04-24 11:23:01

JimDeadlock
Member
From: London
Registered: 2019-03-20
Posts: 83

Re: [SOLVED] Missing Manpages

$ pacman-conf
[options]
RootDir = /
DBPath = /var/lib/pacman/
CacheDir = /var/cache/pacman/pkg/
HookDir = /etc/pacman.d/hooks/
GPGDir = /etc/pacman.d/gnupg/
LogFile = /var/log/pacman.log
HoldPkg = pacman
HoldPkg = glibc
NoExtract = usr/share/man/*
NoExtract = usr/share/locale/*
NoExtract = !usr/share/locale/locale.alias
NoExtract = !usr/share/locale/en/*
NoExtract = !usr/share/locale/en_GB/*
NoExtract = !usr/share/locale/en_US/*
Architecture = x86_64
CheckSpace
CleanMethod = KeepInstalled
SigLevel = PackageRequired
SigLevel = PackageTrustedOnly
SigLevel = DatabaseOptional
SigLevel = DatabaseTrustedOnly
LocalFileSigLevel = PackageOptional
LocalFileSigLevel = PackageTrustedOnly
[core]
Usage = All
Server = http://mirror.netweaver.uk/archlinux/core/os/x86_64
Server = http://archlinux.uk.mirror.allworldit.com/archlinux/core/os/x86_64
Server = http://www.mirrorservice.org/sites/ftp.archlinux.org/core/os/x86_64
Server = http://mirrors.ukfast.co.uk/sites/archlinux.org/core/os/x86_64
Server = http://arch.serverspace.co.uk/arch/core/os/x86_64
Server = http://mirror.bytemark.co.uk/archlinux/core/os/x86_64
Server = https://archlinux.uk.mirror.allworldit.com/archlinux/core/os/x86_64
Server = https://mirror.netweaver.uk/archlinux/core/os/x86_64
Server = https://www.mirrorservice.org/sites/ftp.archlinux.org/core/os/x86_64
Server = http://lon.mirror.rackspace.com/archlinux/core/os/x86_64
Server = https://lon.mirror.rackspace.com/archlinux/core/os/x86_64
Server = https://mirror.bytemark.co.uk/archlinux/core/os/x86_64
Server = https://mirrors.ukfast.co.uk/sites/archlinux.org/core/os/x86_64
Server = http://mirrors.manchester.m247.com/arch-linux/core/os/x86_64
Server = http://archlinux.mirrors.uk2.net/core/os/x86_64
[extra]
Usage = All
Server = http://mirror.netweaver.uk/archlinux/extra/os/x86_64
Server = http://archlinux.uk.mirror.allworldit.com/archlinux/extra/os/x86_64
Server = http://www.mirrorservice.org/sites/ftp.archlinux.org/extra/os/x86_64
Server = http://mirrors.ukfast.co.uk/sites/archlinux.org/extra/os/x86_64
Server = http://arch.serverspace.co.uk/arch/extra/os/x86_64
Server = http://mirror.bytemark.co.uk/archlinux/extra/os/x86_64
Server = https://archlinux.uk.mirror.allworldit.com/archlinux/extra/os/x86_64
Server = https://mirror.netweaver.uk/archlinux/extra/os/x86_64
Server = https://www.mirrorservice.org/sites/ftp.archlinux.org/extra/os/x86_64
Server = http://lon.mirror.rackspace.com/archlinux/extra/os/x86_64
Server = https://lon.mirror.rackspace.com/archlinux/extra/os/x86_64
Server = https://mirror.bytemark.co.uk/archlinux/extra/os/x86_64
Server = https://mirrors.ukfast.co.uk/sites/archlinux.org/extra/os/x86_64
Server = http://mirrors.manchester.m247.com/arch-linux/extra/os/x86_64
Server = http://archlinux.mirrors.uk2.net/extra/os/x86_64
[community]
Usage = All
Server = http://mirror.netweaver.uk/archlinux/community/os/x86_64
Server = http://archlinux.uk.mirror.allworldit.com/archlinux/community/os/x86_64
Server = http://www.mirrorservice.org/sites/ftp.archlinux.org/community/os/x86_64
Server = http://mirrors.ukfast.co.uk/sites/archlinux.org/community/os/x86_64
Server = http://arch.serverspace.co.uk/arch/community/os/x86_64
Server = http://mirror.bytemark.co.uk/archlinux/community/os/x86_64
Server = https://archlinux.uk.mirror.allworldit.com/archlinux/community/os/x86_64
Server = https://mirror.netweaver.uk/archlinux/community/os/x86_64
Server = https://www.mirrorservice.org/sites/ftp.archlinux.org/community/os/x86_64
Server = http://lon.mirror.rackspace.com/archlinux/community/os/x86_64
Server = https://lon.mirror.rackspace.com/archlinux/community/os/x86_64
Server = https://mirror.bytemark.co.uk/archlinux/community/os/x86_64
Server = https://mirrors.ukfast.co.uk/sites/archlinux.org/community/os/x86_64
Server = http://mirrors.manchester.m247.com/arch-linux/community/os/x86_64
Server = http://archlinux.mirrors.uk2.net/community/os/x86_64
[multilib]
Usage = All
Server = http://mirror.netweaver.uk/archlinux/multilib/os/x86_64
Server = http://archlinux.uk.mirror.allworldit.com/archlinux/multilib/os/x86_64
Server = http://www.mirrorservice.org/sites/ftp.archlinux.org/multilib/os/x86_64
Server = http://mirrors.ukfast.co.uk/sites/archlinux.org/multilib/os/x86_64
Server = http://arch.serverspace.co.uk/arch/multilib/os/x86_64
Server = http://mirror.bytemark.co.uk/archlinux/multilib/os/x86_64
Server = https://archlinux.uk.mirror.allworldit.com/archlinux/multilib/os/x86_64
Server = https://mirror.netweaver.uk/archlinux/multilib/os/x86_64
Server = https://www.mirrorservice.org/sites/ftp.archlinux.org/multilib/os/x86_64
Server = http://lon.mirror.rackspace.com/archlinux/multilib/os/x86_64
Server = https://lon.mirror.rackspace.com/archlinux/multilib/os/x86_64
Server = https://mirror.bytemark.co.uk/archlinux/multilib/os/x86_64
Server = https://mirrors.ukfast.co.uk/sites/archlinux.org/multilib/os/x86_64
Server = http://mirrors.manchester.m247.com/arch-linux/multilib/os/x86_64
Server = http://archlinux.mirrors.uk2.net/multilib/os/x86_64

Offline

#6 2020-04-24 11:28:00

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,407

Re: [SOLVED] Missing Manpages

NoExtract = usr/share/man/*

If you want man pages you should remove or comment that line .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2020-04-24 11:32:24

JimDeadlock
Member
From: London
Registered: 2019-03-20
Posts: 83

Re: [SOLVED] Missing Manpages

Thanks! Now, is there a way to get all my manpages back without reinstalling all the packages?

Offline

#8 2020-04-24 11:33:12

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Missing Manpages

No.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#9 2020-04-24 11:49:32

loqs
Member
Registered: 2014-03-06
Posts: 19,077

Re: [SOLVED] Missing Manpages

You could reduce the re-installation to only those files that use /usr/share/man/

pacman -Fy
pacman -S $(pacman -Qq $(pacman -Fq /usr/share/man/ | cut -d/ -f2) 2> /dev/null)

Offline

#10 2020-04-24 13:24:50

JimDeadlock
Member
From: London
Registered: 2019-03-20
Posts: 83

Re: [SOLVED] Missing Manpages

That's very useful thanks!

Offline

#11 2020-04-24 13:40:02

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,519
Website

Re: [SOLVED] Missing Manpages

That could be a lot simpler - there's no reason to scan the repos for ownership, just local:

pacman -Qqo /usr/share/man | pacman -S -

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#12 2020-04-24 17:10:30

loqs
Member
Registered: 2014-03-06
Posts: 19,077

Re: [SOLVED] Missing Manpages

Trilby wrote:

That could be a lot simpler - there's no reason to scan the repos for ownership, just local:

pacman -Qqo /usr/share/man | pacman -S -

I thought the pacman database does not contain files it did not install due to noextract.

Offline

#13 2020-04-24 17:23:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,519
Website

Re: [SOLVED] Missing Manpages

True, but /usr/share/man does not match the noextract rule.  The contents of that directory would not be extracted, but the directory is still there and owned by every package that would have had files in it.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#14 2020-04-24 20:50:25

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Missing Manpages

loqs wrote:
Trilby wrote:

That could be a lot simpler - there's no reason to scan the repos for ownership, just local:

pacman -Qqo /usr/share/man | pacman -S -

I thought the pacman database does not contain files it did not install due to noextract.

$ pacman -Qo /usr/share/man/pl/man1/rview.1.gz
/usr/share/man/pl/man1/rview.1.gz is owned by gvim 8.2.0510-1
$ ls /usr/share/man/pl/man1/rview.1.gz
ls: cannot access '/usr/share/man/pl/man1/rview.1.gz': No such file or directory

Why doesn't it exist? Because of the following contents of pacman.conf, with all non-English manpages NoExtracted:

# poor man's localepurge
# See: https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks#Installing_only_content_in_required_languages
NoExtract = usr/share/help/* !usr/share/help/en*
NoExtract = usr/share/gtk-doc/html/*
NoExtract = usr/share/locale/* usr/share/X11/locale/* usr/share/i18n/* opt/google/chrome/locales/* !usr/share/X11/locale/C/*
NoExtract = !*locale*/en*/* !usr/share/i18n/charmaps/UTF-8.gz !usr/share/*locale*/locale.*
NoExtract = !usr/share/*locales/en_?? !usr/share/*locales/i18n* !usr/share/*locales/iso*
NoExtract = !usr/share/*locales/trans*
NoExtract = usr/share/qt4/translations/*
NoExtract = usr/share/man/* !usr/share/man/man*
NoExtract = usr/share/vim/vim*/lang/*
NoExtract = usr/lib/libreoffice/help/en-US/*

Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB