You are not logged in.

#1 2015-12-13 08:53:21

maggie
Member
Registered: 2011-02-12
Posts: 255

My locale is en_US.UTF-8 so why does /var/cache/man contain many other

I looked at systemd-analyze blame and found that man-db.service takes 2 minutes. I looked in /var/cache/man and found:

total 2.7M
drwxr-sr-x 2 root root 4.0K Dec  8 09:54 cat1/
drwxr-sr-x 2 root root 4.0K Dec  8 09:54 cat3/
drwxr-sr-x 2 root root 4.0K Dec 13 00:02 de/
drwxr-sr-x 2 root root 4.0K Dec 13 00:02 es/
drwxr-sr-x 2 root root 4.0K Dec 13 00:02 fr/
drwxr-sr-x 2 root root 4.0K Dec 13 00:02 fr.ISO8859-1/
drwxr-sr-x 2 root root 4.0K Dec 13 00:02 fr.UTF-8/
drwxr-sr-x 2 root root 4.0K Dec 13 00:02 hu/
drwxr-sr-x 2 root root 4.0K Dec 13 00:02 it/
drwxr-sr-x 2 root root 4.0K Dec 13 00:02 it.ISO8859-1/
drwxr-sr-x 2 root root 4.0K Dec 13 00:02 it.UTF-8/
drwxr-sr-x 2 root root 4.0K Dec 13 00:02 ja/
drwxr-sr-x 2 root root 4.0K Dec 13 00:02 pl/
drwxr-sr-x 2 root root 4.0K Dec 13 00:02 pl.ISO8859-2/
drwxr-sr-x 2 root root 4.0K Dec 13 00:02 pl.UTF-8/
drwxr-sr-x 2 root root 4.0K Dec 13 00:02 ru.KOI8-R/
drwxr-sr-x 2 root root 4.0K Dec 13 00:02 ru.UTF-8/
drwxr-sr-x 2 root root 4.0K Dec 13 00:02 sl/
-rw-r--r-- 1 root root  190 Dec  8 09:54 CACHEDIR.TAG
-rw-r--r-- 1 root root 2.6M Dec 13 00:02 index.db

Why do I have entries for those other locales?

Offline

#2 2015-12-13 15:26:30

ukhippo
Member
From: Non-paged pool
Registered: 2014-02-21
Posts: 366

Re: My locale is en_US.UTF-8 so why does /var/cache/man contain many other

You have man pages for those specific locales. Some packages provide locale-specific man pages, just look in /usr/share/man

Offline

#3 2015-12-13 16:25:09

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

Re: My locale is en_US.UTF-8 so why does /var/cache/man contain many other

[eschwartz@arch ~]$ cat /etc/pacman.conf
...
NoExtract   = usr/share/help/* !usr/share/help/en*
NoExtract   = usr/share/locale/* !usr/share/locale/en*
NoExtract   = usr/share/man/* !usr/share/man/man*    # Don't ever install useless non-English manpages
NoExtract   = usr/share/vim/vim74/lang/* usr/share/licenses*
...

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

Offline

#4 2015-12-14 22:02:55

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: My locale is en_US.UTF-8 so why does /var/cache/man contain many other

Some distros (e.g. crux) don't use NLS: https://crux.nu/Main/About

Offline

#5 2015-12-18 16:25:51

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: My locale is en_US.UTF-8 so why does /var/cache/man contain many other

Eschwartz wrote:
[eschwartz@arch ~]$ cat /etc/pacman.conf
...
NoExtract   = usr/share/help/* !usr/share/help/en*
NoExtract   = usr/share/locale/* !usr/share/locale/en*
NoExtract   = usr/share/man/* !usr/share/man/man*    # Don't ever install useless non-English manpages
NoExtract   = usr/share/vim/vim74/lang/* usr/share/licenses*
...

This is an excellent tip.  Is it on the wiki?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2015-12-18 19:22:27

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

Re: My locale is en_US.UTF-8 so why does /var/cache/man contain many other

Ah, no I suppose.

I could add it, but I don't see any reference to e.g. localepurge in the Wiki (I use this as a low-maintenance alternative).

Maybe just on the pacman page, unless you have another suggestion?


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

Offline

#7 2015-12-20 01:30:37

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

Re: My locale is en_US.UTF-8 so why does /var/cache/man contain many other

https://wiki.archlinux.org/index.php?ti … did=409727

Yes it took me a while tongue not my fault, I don't have a lot of idle time on Erev Shabbos...


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

Offline

Board footer

Powered by FluxBB