Saya bekerja dalam gambar Docker Centos 6.6 . Saya pikir saya menginstal semuanya untuk mendapatkan akses ke halaman manual, tetapi ternyata tidak ...
$ yum install -y man man-pages man-pages-overrides
[...]
Complete!
$ which man
/usr/bin/man
$ man man
No manual entry for man
Apa yang saya lewatkan?
Mengenai pertanyaan dalam komentar (terima kasih atas bantuan Anda semuanya):
$ echo $MANPATH
# empty
$ man 1 man
No entry for man in section 1 of the manual
$ man 7 man
No entry for man in section 7 of the manual
$ ll /usr/share/man/man1/
total 8
drwxr-xr-x 2 root root 4096 Sep 23 2011 ./
drwxr-xr-x 61 root root 4096 Jan 31 01:55 ../
$ yum search man | grep db
ModemManager.x86_64 : Mobile broadband modem management service
hsqldb-manual.noarch : Manual for hsqldb
db4-utils.x86_64 : Command line tools for managing Berkeley DB (version 4)
foomatic-db-ppds.noarch : PPDs from printer manufacturers
ldb-tools.x86_64 : Tools to manage LDB files
$ rpm -q -l man | grep man.1
/usr/share/doc/man-1.6f
/usr/share/doc/man-1.6f/COPYING
/usr/share/doc/man-1.6f/README
/usr/share/man/bg/man1/man.1.gz
/usr/share/man/cs/man1/man.1.gz
/usr/share/man/da/man1/man.1.gz
/usr/share/man/de/man1/man.1.gz
/usr/share/man/el/man1/man.1.gz
/usr/share/man/en/man1/man.1.gz
/usr/share/man/es/man1/man.1.gz
/usr/share/man/fi/man1/man.1.gz
/usr/share/man/fr/man1/man.1.gz
/usr/share/man/hr/man1/man.1.gz
/usr/share/man/it/man1/man.1.gz
/usr/share/man/ja/man1/man.1.gz
/usr/share/man/ko/man1/man.1.gz
/usr/share/man/man1/man.1.gz
/usr/share/man/nl/man1/man.1.gz
/usr/share/man/pl/man1/man.1.gz
/usr/share/man/pt/man1/man.1.gz
/usr/share/man/ro/man1/man.1.gz
/usr/share/man/sl/man1/man.1.gz
MANPATH
variabel lingkungan ditimpa? Juga, coba ini:man -M /usr/share/man man
man 1 man
danman 7 man
, tolong?man-db
. Tentu saja, CentOS dapat diatur secara berbeda./usr/share/man/man1/man.1.gz
?Jawaban:
Lihat komentar re: menghapus
tsflags=nodocs
dari/etc/yum.conf
, meletakkan di sana sebagai konsekuensi dari kebijakan pembuatan image docker dasar:https://groups.google.com/forum/#!topic/docker-user/fuW0e9xlqQE
Saya baru saja menguji ini pada wadah CentOS 6.7 dan itu berhasil.
sumber
Jika
echo $MANPATH
kosong, Anda perlu mengatur jalur.echo "MANPATH=/usr/share/man" >> ~/.bashrc
Login lagi.
sumber
man
pernah saya gunakan.