码迷,mamicode.com
首页 > 其他好文 > 详细

In container,I can't use man

时间:2019-11-04 11:36:42      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:disco   out   this   page   nta   contain   ase   add   move   

in container,I can‘t use man in ubuntu image ,by search i find this link to slove the problem

cp /etc/dpkg/dpkg.cfg.d/excludes /etc/dpkg/dpkg.cfg.d/excludes.bak
apt update && apt-get install -y man manpages-posix
 

how to use man in centos image? I find this link

remove "tsflags=nodocs" from "/etc/yum.conf"

yum install -y man man-pages

this link explanation it:

Package documentation

By default, the CentOS containers are built using yum‘s nodocs option, which helps reduce the size of the image. If you install a package and discover files missing, please comment out the line tsflags=nodocs in /etc/yum.conf and reinstall your package.

In container,I can't use man

标签:disco   out   this   page   nta   contain   ase   add   move   

原文地址:https://www.cnblogs.com/anyux/p/11791016.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!