How to install man pages on centos?
Note: This applies to Centos 7. If you are looking for a Debian answer, see this question. Those answers will not be duplicated here.
After an install of centos 7, I can't access man pages :
# man ls
-bash: man: command not found
I tried to install it via yum
# yum install man-pages
... ok
But again:
# man ls
-bash: man: command not found
Why?
centos man
add a comment |
Note: This applies to Centos 7. If you are looking for a Debian answer, see this question. Those answers will not be duplicated here.
After an install of centos 7, I can't access man pages :
# man ls
-bash: man: command not found
I tried to install it via yum
# yum install man-pages
... ok
But again:
# man ls
-bash: man: command not found
Why?
centos man
1
This is extremely weird, asman(1)
is a very fundamental piece of the system. You could try to reinstall, i.e., goyum reinstall /usr/bin/man
.
– vonbrand
Dec 31 '15 at 23:01
add a comment |
Note: This applies to Centos 7. If you are looking for a Debian answer, see this question. Those answers will not be duplicated here.
After an install of centos 7, I can't access man pages :
# man ls
-bash: man: command not found
I tried to install it via yum
# yum install man-pages
... ok
But again:
# man ls
-bash: man: command not found
Why?
centos man
Note: This applies to Centos 7. If you are looking for a Debian answer, see this question. Those answers will not be duplicated here.
After an install of centos 7, I can't access man pages :
# man ls
-bash: man: command not found
I tried to install it via yum
# yum install man-pages
... ok
But again:
# man ls
-bash: man: command not found
Why?
centos man
centos man
edited Aug 16 '18 at 20:51
msp9011
3,82843963
3,82843963
asked Dec 31 '15 at 16:47
Rémi B.Rémi B.
4302515
4302515
1
This is extremely weird, asman(1)
is a very fundamental piece of the system. You could try to reinstall, i.e., goyum reinstall /usr/bin/man
.
– vonbrand
Dec 31 '15 at 23:01
add a comment |
1
This is extremely weird, asman(1)
is a very fundamental piece of the system. You could try to reinstall, i.e., goyum reinstall /usr/bin/man
.
– vonbrand
Dec 31 '15 at 23:01
1
1
This is extremely weird, as
man(1)
is a very fundamental piece of the system. You could try to reinstall, i.e., go yum reinstall /usr/bin/man
.– vonbrand
Dec 31 '15 at 23:01
This is extremely weird, as
man(1)
is a very fundamental piece of the system. You could try to reinstall, i.e., go yum reinstall /usr/bin/man
.– vonbrand
Dec 31 '15 at 23:01
add a comment |
3 Answers
3
active
oldest
votes
In order to use the man command, you must also install the man
package before or after the man-pages
one
# yum install man-pages
... ok
# yum install man
... ok
Now man
is installed
# man ls
NAME
ls - list directory contents
SYNOPSIS
ls [OPTION]... [FILE]...
DESCRIPTION
List information about the FILEs (the current directory by default). Sort entries alphabetically if none of -cftuvSUX nor --sort.
Mandatory arguments to long options are mandatory for short options too. ...
2
Apparently this doesn't work on centOS inside a docker container. I know I've gotten this to work in a centOS VM, but unsure why its not working in the container.
– jersey bean
Jan 10 '18 at 21:07
8
Ok, I just found my answer. Docker centos images are prebuild with tsflags=nodocs set in /etc/yum.conf. See hub.docker.com/_/centos
– jersey bean
Jan 10 '18 at 22:26
Yes you're right! +1 for the complement. Thanks!
– Rémi B.
Jan 11 '18 at 13:34
add a comment |
The syntax on CentOS 7:
# yum install man-pages man-db man
The syntax on CentOS 6:
$ sudo yum install man man-pages
Source
add a comment |
I had the same problem in my docker container and solved it by commenting out the tsflags=nodocs in /etc/yum.conf file, then I removed the man-pages and man-db and reinstall them again. It works fine this way.
$ vi /etc/yum.conf
Search for tsflags into the file and add a comment (#) in front of it:
#tsflags=nodocs
Now remove the man-db and the man-pages if it's already installed on your system:
$ yum remove man-pages man-db
Then install them again:
$ yum install man-pages man-db
Sorted!
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f252530%2fhow-to-install-man-pages-on-centos%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
In order to use the man command, you must also install the man
package before or after the man-pages
one
# yum install man-pages
... ok
# yum install man
... ok
Now man
is installed
# man ls
NAME
ls - list directory contents
SYNOPSIS
ls [OPTION]... [FILE]...
DESCRIPTION
List information about the FILEs (the current directory by default). Sort entries alphabetically if none of -cftuvSUX nor --sort.
Mandatory arguments to long options are mandatory for short options too. ...
2
Apparently this doesn't work on centOS inside a docker container. I know I've gotten this to work in a centOS VM, but unsure why its not working in the container.
– jersey bean
Jan 10 '18 at 21:07
8
Ok, I just found my answer. Docker centos images are prebuild with tsflags=nodocs set in /etc/yum.conf. See hub.docker.com/_/centos
– jersey bean
Jan 10 '18 at 22:26
Yes you're right! +1 for the complement. Thanks!
– Rémi B.
Jan 11 '18 at 13:34
add a comment |
In order to use the man command, you must also install the man
package before or after the man-pages
one
# yum install man-pages
... ok
# yum install man
... ok
Now man
is installed
# man ls
NAME
ls - list directory contents
SYNOPSIS
ls [OPTION]... [FILE]...
DESCRIPTION
List information about the FILEs (the current directory by default). Sort entries alphabetically if none of -cftuvSUX nor --sort.
Mandatory arguments to long options are mandatory for short options too. ...
2
Apparently this doesn't work on centOS inside a docker container. I know I've gotten this to work in a centOS VM, but unsure why its not working in the container.
– jersey bean
Jan 10 '18 at 21:07
8
Ok, I just found my answer. Docker centos images are prebuild with tsflags=nodocs set in /etc/yum.conf. See hub.docker.com/_/centos
– jersey bean
Jan 10 '18 at 22:26
Yes you're right! +1 for the complement. Thanks!
– Rémi B.
Jan 11 '18 at 13:34
add a comment |
In order to use the man command, you must also install the man
package before or after the man-pages
one
# yum install man-pages
... ok
# yum install man
... ok
Now man
is installed
# man ls
NAME
ls - list directory contents
SYNOPSIS
ls [OPTION]... [FILE]...
DESCRIPTION
List information about the FILEs (the current directory by default). Sort entries alphabetically if none of -cftuvSUX nor --sort.
Mandatory arguments to long options are mandatory for short options too. ...
In order to use the man command, you must also install the man
package before or after the man-pages
one
# yum install man-pages
... ok
# yum install man
... ok
Now man
is installed
# man ls
NAME
ls - list directory contents
SYNOPSIS
ls [OPTION]... [FILE]...
DESCRIPTION
List information about the FILEs (the current directory by default). Sort entries alphabetically if none of -cftuvSUX nor --sort.
Mandatory arguments to long options are mandatory for short options too. ...
edited May 14 '17 at 5:08
Stephen C
331316
331316
answered Dec 31 '15 at 16:47
Rémi B.Rémi B.
4302515
4302515
2
Apparently this doesn't work on centOS inside a docker container. I know I've gotten this to work in a centOS VM, but unsure why its not working in the container.
– jersey bean
Jan 10 '18 at 21:07
8
Ok, I just found my answer. Docker centos images are prebuild with tsflags=nodocs set in /etc/yum.conf. See hub.docker.com/_/centos
– jersey bean
Jan 10 '18 at 22:26
Yes you're right! +1 for the complement. Thanks!
– Rémi B.
Jan 11 '18 at 13:34
add a comment |
2
Apparently this doesn't work on centOS inside a docker container. I know I've gotten this to work in a centOS VM, but unsure why its not working in the container.
– jersey bean
Jan 10 '18 at 21:07
8
Ok, I just found my answer. Docker centos images are prebuild with tsflags=nodocs set in /etc/yum.conf. See hub.docker.com/_/centos
– jersey bean
Jan 10 '18 at 22:26
Yes you're right! +1 for the complement. Thanks!
– Rémi B.
Jan 11 '18 at 13:34
2
2
Apparently this doesn't work on centOS inside a docker container. I know I've gotten this to work in a centOS VM, but unsure why its not working in the container.
– jersey bean
Jan 10 '18 at 21:07
Apparently this doesn't work on centOS inside a docker container. I know I've gotten this to work in a centOS VM, but unsure why its not working in the container.
– jersey bean
Jan 10 '18 at 21:07
8
8
Ok, I just found my answer. Docker centos images are prebuild with tsflags=nodocs set in /etc/yum.conf. See hub.docker.com/_/centos
– jersey bean
Jan 10 '18 at 22:26
Ok, I just found my answer. Docker centos images are prebuild with tsflags=nodocs set in /etc/yum.conf. See hub.docker.com/_/centos
– jersey bean
Jan 10 '18 at 22:26
Yes you're right! +1 for the complement. Thanks!
– Rémi B.
Jan 11 '18 at 13:34
Yes you're right! +1 for the complement. Thanks!
– Rémi B.
Jan 11 '18 at 13:34
add a comment |
The syntax on CentOS 7:
# yum install man-pages man-db man
The syntax on CentOS 6:
$ sudo yum install man man-pages
Source
add a comment |
The syntax on CentOS 7:
# yum install man-pages man-db man
The syntax on CentOS 6:
$ sudo yum install man man-pages
Source
add a comment |
The syntax on CentOS 7:
# yum install man-pages man-db man
The syntax on CentOS 6:
$ sudo yum install man man-pages
Source
The syntax on CentOS 7:
# yum install man-pages man-db man
The syntax on CentOS 6:
$ sudo yum install man man-pages
Source
answered Oct 12 '18 at 9:49
simhumilecosimhumileco
1529
1529
add a comment |
add a comment |
I had the same problem in my docker container and solved it by commenting out the tsflags=nodocs in /etc/yum.conf file, then I removed the man-pages and man-db and reinstall them again. It works fine this way.
$ vi /etc/yum.conf
Search for tsflags into the file and add a comment (#) in front of it:
#tsflags=nodocs
Now remove the man-db and the man-pages if it's already installed on your system:
$ yum remove man-pages man-db
Then install them again:
$ yum install man-pages man-db
Sorted!
add a comment |
I had the same problem in my docker container and solved it by commenting out the tsflags=nodocs in /etc/yum.conf file, then I removed the man-pages and man-db and reinstall them again. It works fine this way.
$ vi /etc/yum.conf
Search for tsflags into the file and add a comment (#) in front of it:
#tsflags=nodocs
Now remove the man-db and the man-pages if it's already installed on your system:
$ yum remove man-pages man-db
Then install them again:
$ yum install man-pages man-db
Sorted!
add a comment |
I had the same problem in my docker container and solved it by commenting out the tsflags=nodocs in /etc/yum.conf file, then I removed the man-pages and man-db and reinstall them again. It works fine this way.
$ vi /etc/yum.conf
Search for tsflags into the file and add a comment (#) in front of it:
#tsflags=nodocs
Now remove the man-db and the man-pages if it's already installed on your system:
$ yum remove man-pages man-db
Then install them again:
$ yum install man-pages man-db
Sorted!
I had the same problem in my docker container and solved it by commenting out the tsflags=nodocs in /etc/yum.conf file, then I removed the man-pages and man-db and reinstall them again. It works fine this way.
$ vi /etc/yum.conf
Search for tsflags into the file and add a comment (#) in front of it:
#tsflags=nodocs
Now remove the man-db and the man-pages if it's already installed on your system:
$ yum remove man-pages man-db
Then install them again:
$ yum install man-pages man-db
Sorted!
edited Jan 10 at 10:45
answered Jan 9 at 16:33
R. SR. S
12
12
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f252530%2fhow-to-install-man-pages-on-centos%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
This is extremely weird, as
man(1)
is a very fundamental piece of the system. You could try to reinstall, i.e., goyum reinstall /usr/bin/man
.– vonbrand
Dec 31 '15 at 23:01