More

    How to install Ubuntu Linux Man Pages

    http://31.220.61.170/wp-content/uploads/2020/04/Install-LXD-on-Ubuntu-20.04-LTS-using-apt.jpg

    I have installed a minimum Ubuntu Linux 20.04 LTS cloud server and now the man pages are missing in my image. How to install the man pages on the Ubuntu Linux LTS 16.04/18.04/20.04

    Normally Ubuntu command management pages are not installed on a minimal cloud server or container-based images. To save disk space and reduce the time to recover the image from the container, the hand pages are not installed. But don’t worry, this page explains how to install the man pages on Ubuntu Linux version 16.04/18.04/20.04 LTS with the apt/apt-get command.

     

    How to install the man pages under Ubuntu Linux

    If the man command and associated files are not installed in Ubuntu, you will see an error like this:
    man
    man useradd
    -bash: man: the command is not found
    First you must run the following commands as root user with the sudo or su command. For example,
    sudo -i
    ## or ##
    su –

    UbuntuFind manual pages

    Use one of the following commands: apt search manpagesapt search manpages | moreapt-cache search manpages | grep -i dbWe can filter the results with grep /egrep command:apt-cache search manpages | erep ‘manpages-(dev|posix)’.

    manpages-dev – GNU/Linux manpages for development pages – POSIX system manpages for development pages – POSIX system manpages for development pages – POSIX system manpages for development pages

    Let’s see what these pages do:
    apt info manpages-posix
    apt info manpages-dev
    apt info man-db

    Package: man-db version
    : 2.9.1-1
    Priority : Standard
    Section: doc
    Origin : Ubuntu containers : Colin Watson <[email protected]>
    Error: https://bugs.launchpad.net/ubuntu/+File
    Error record size: 2884 kB
    Returns: male,
    Depends on: dpkg (>=1.16.1~)
    Depends on: bsdmainutils, debconf (>= 1.2.0) | debconf-2.0, coarse base (>= 1.18.1.1-15), libc6 (>= 2.28), libgdbm6 (>= 1.16), libpipeline1 (>= 1.5.0), libseccomp2 (>= 2.1.0), zlib1g (>= 1:1).1.4)
    suggestions: apparmor, groff, less, www-browser
    conflicts: man
    pauses: man pages-tr (<<< 1.0.5.1-3), man pages-zh (<<< 1.5.2-1).1)
    Replacements: man, man pages-zh (<<< 0.5-4), man pages-zh (<<< 1.0.5.1-3), man pages-zh (<<< 1.5.2-1.1), nlsutils
    Homepage: https://nongnu.org/man-db/
    Task : Standard
    Download format: 1112 kB
    APT sources: http://archive.ubuntu.com/ubuntu focal/main amd64 packages
    Description : Tools for reading
    help pages This package provides the man command, the main way to learn
    help files (help pages). Other utilities are the commands
    whatis and apropos to search for man pages in the database,
    manpath to determine the search path for man pages and
    mandb, catman and zsoelim. man-db uses the program groff
    , which is set to format and display man pages.

    Package: man-db
    Version: 2.9.1-1
    Priority: standard
    Section: doc
    Origin: Ubuntu
    Maintainer: Colin Watson <[email protected]>
    Bugs: https://bugs.launchpad.net/ubuntu/+filebug
    Installed-Size: 2884 kB
    Provides: man, man-browser
    Pre-Depends: dpkg (>= 1.16.1~)
    Depends: bsdmainutils, debconf (>= 1.2.0) | debconf-2.0, groff-base (>= 1.18.1.1-15), libc6 (>= 2.28), libgdbm6 (>= 1.16), libpipeline1 (>= 1.5.0), libseccomp2 (>= 2.1.0), zlib1g (>= 1:1.1.4)
    Suggests: apparmor, groff, less, www-browser
    Conflicts: man
    Breaks: manpages-tr (<< 1.0.5.1-3), manpages-zh (<< 1.5.2-1.1)
    Replaces: man, manpages-de (<< 0.5-4), manpages-tr (<< 1.0.5.1-3), manpages-zh (<< 1.5.2-1.1), nlsutils
    Homepage: https://nongnu.org/man-db/
    Task: standard
    Download-Size: 1112 kB
    APT-Sources: http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
    Description: tools for reading manual pages
    This package provides the man command, the primary way of examining the
    system help files (manual pages). Other utilities provided include the
    whatis and apropos commands for searching the manual page database, the
    manpath utility for determining the manual page search path, and the
    maintenance utilities mandb, catman and zsoelim. man-db uses the groff
    suite of programs to format and display the manual pages.

    Installing the manual pages on a Linux server or desktop

    First install the service pack index and then the manpages-posix package for all skipped commands:
    sudo apt update
    sudo apt install man-db manpages-posix
    Install the man pages in Ubuntu Linux with the command apt-get.

    Installing the software development manual pages

    Carry out the following command:
    sudo apt install manpages-dev manpages-posix-dev
    Example output :

    Read the packing lists… Ready
    Build Dependency Tree
    Ready
    New packages installed:
    manpages-dev manpages-posix-dev
    0 updated, 2 newly installed, 0 deleted and 0 not updated.
    We need 4059 kB of archives.
    After this operation, 6260 kB of extra disk space will be used.
    Get:1 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 manpages-posix-dev all 2013a-2 [1794 kB]
    Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 manpages-dev all 5.05-1 [2266 kB]
    Retrieves 4059 kB in 1s (3352 kB/s)
    Selects manpages-posix-dev packages not previously selected.
    (Read the database … 18489 files and folders currently installed)
    Preparing to decompress …/man pages-posix-dev_2013a-2_all.deb …
    Unpacking man pages-posix-dev (2013a-2) …
    Select the manpage-dev pack that has not been previously selected.
    Preparations for unpacking …/management-pages-dev_5.05-1_all.deb …
    Unpacking the pages of man pages-dev (5.05-1) …
    Installation of the man pages DVD (5.05-1) …
    Creation of man pages-posix-dev (2013a-2) …
    Triggering the treatment for man-db (2.9.1-1)…

    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    The following NEW packages will be installed:
    manpages-dev manpages-posix-dev
    0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
    Need to get 4059 kB of archives.
    After this operation, 6260 kB of additional disk space will be used.
    Get:1 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 manpages-posix-dev all 2013a-2 [1794 kB]
    Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 manpages-dev all 5.05-1 [2266 kB]
    Fetched 4059 kB in 1s (3352 kB/s)
    Selecting previously unselected package manpages-posix-dev.
    (Reading database … 18489 files and directories currently installed.)
    Preparing to unpack …/manpages-posix-dev_2013a-2_all.deb …
    Unpacking manpages-posix-dev (2013a-2) …
    Selecting previously unselected package manpages-dev.
    Preparing to unpack …/manpages-dev_5.05-1_all.deb …
    Unpacking manpages-dev (5.05-1) …
    Setting up manpages-dev (5.05-1) …
    Setting up manpages-posix-dev (2013a-2) …
    Processing triggers for man-db (2.9.1-1) …

    How to read the manual page for each team?

    Syntax:
    man Command
    man [Section] Command
    To read the man page of the ls command, for example:
    man ls
    man 8 passwd
    man 5 passwd
    man 5 passwd
    The section number of the man pages is :

    Section Description Examples
    1 Executable programs or shell commands s Team
    man Date
    2 System calls (functions provided by the kernel) Person 2 Sender
    3 Calls to libraries (functions within program libraries) male 3 Abortion
    4 Special folders (usually in /dev) man 4 intel
    man 4 amdgpu
    5 File formats and conventions such as /etc/passwd Man 5 Shadow
    6 Games man 6 GTIman 6 sleds
    7 Miscellaneous (including macro packets and conventions) such as man(7), coarse(7). 7-millimeter man
    8 System administration commands (usually only for the root) 8 ip-person
    9 Core routines [non-standard] 9 vmxnet-Person

    Conclusion

    In this tutorial you learned how to install the man-db and man-pages-posix packages for Ubuntu Linux with the apt command. You can find more information on the man command page here or by typing in the next man command:
    Person
    Person 7 Person

    RECOMMENDATIONS

    Published: Vivek gears

    The author is the creator of nixCraft and an experienced system administrator, DevOps engineer and Linux/Unix shell script trainer. Receive the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly by email.how to install man command in linux,ubuntu man pages,apt-get install without man pages,linux add man page,man page in linux,no man pages found in package,no manual entry for syscall,man linux

    Recent Articles

    X-rated ads on the derelict corner of the accountants’ website • Register

    A forgotten subdomain on PricewaterhouseCoopers’ dotcom has been hacked to promote pornographic sites and applications, which clearly shows why DNS records should not be...

    CERT-GIB records upsurge of phishing resource blockages as duration of attacks growsSecurity Affairs

    Group-B, a Singapour-based cyber security company, has noted an increase in the life expectancy of phishing attacks in the second half of 2019. This trend,...

    GSP COVID-19 App-The Peak of Neoliberal Paternalism or National Benevolence?

    There is no doubt that technology made life more bearable during the global pandemic. From the use of unmanned aircraft to deliver medicines and...

    Getting Zoom Security Right-8 Family and Friends Tips

    If you have read the newspaper or seen the news in recent weeks, you will notice a general topic discussed by all the major...

    Nemty Ransomware-Teaching by Doing

    Brief summary The 20th. In August 2019, McAfee’s Advanced Threat Research Group (ATR) discovered a new family of repayable programs called Nemti. This is a time...

    Related Stories