On a previous install of Ubuntu 20.04, man
would also search in the XDG_
home folder location in addition to the normal paths, e.g. /home/naftuli/.local/share/man/man?/*
. For instance, I often installed Rust man pages via:
rsync -av ~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/man/man1/ \
~/.local/share/man/man1/
I'm now on Ubuntu 22.04 (elementary OS 7.0), I've done the same thing, yet man
can't seem to find them:
$ man cargo
No manual entry for cargo
I have uploaded my /etc/manpath.config
for both 20.04 and 22.04 to this Gist, and the diff does not seem significant:
diff --git a/manpath.config-20.04 b/etc/manpath.config
index a3e2255..e1747a2 100644
--- a/manpath.config-20.04
+++ b/etc/manpath.config
@@ -109,7 +109,7 @@ MANDB_MAP /snap/man /var/cache/man/snap
# particular order. Sections with extensions should usually be adjacent to
# their main section (e.g. "1 1mh 8 ...").
#
-SECTION 1 n l 8 3 2 3posix 3pm 3perl 3am 5 4 9 6 7
+SECTION 1 n l 8 3 0 2 3posix 3pm 3perl 3am 5 4 9 6 7
#
#---------------------------------------------------------
# Range of terminal widths permitted when displaying cat pages. If the
@@ -129,4 +129,4 @@ SECTION 1 n l 8 3 2 3posix 3pm 3perl 3am 5 4 9 6 7
#---------------------------------------------------------
# Flags.
# NOCACHE keeps man from creating cat pages.
-#NOCACHE
\ No newline at end of file
+#NOCACHE
Is there other configuration I might be missing? I did not have to do anything special on 20.04 to have it find man
pages in ~/.local/share/man
.