How To Install help2man on CentOS 8

help2man is Create simple man pages from –help output

Introduction

In this tutorial we learn how to install help2man on CentOS 8.

What is help2man

help2man is a script to create simple man pages from the –help and –version output of programs. Since most GNU documentation is now in info format, this provides a way to generate a placeholder man page pointing to that resource while still providing some useful information.

We can use yum or dnf to install help2man on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install help2man.

Install help2man on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install help2man using dnf by running the following command:

sudo dnf -y install help2man

Install help2man on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install help2man using yum by running the following command:

sudo yum -y install help2man

How To Uninstall help2man on CentOS 8

To uninstall only the help2man package we can use the following command:

sudo dnf remove help2man

help2man Package Contents on CentOS 8

/usr/bin/help2man
/usr/share/doc/help2man
/usr/share/doc/help2man/NEWS
/usr/share/doc/help2man/README
/usr/share/doc/help2man/THANKS
/usr/share/info/help2man-de.info.gz
/usr/share/info/help2man-es.info.gz
/usr/share/info/help2man-fr.info.gz
/usr/share/info/help2man-pl.info.gz
/usr/share/info/help2man-pt_BR.info.gz
/usr/share/info/help2man-uk.info.gz
/usr/share/info/help2man-zh_CN.info.gz
/usr/share/info/help2man.info.gz
/usr/share/licenses/help2man
/usr/share/licenses/help2man/COPYING
/usr/share/locale/da/LC_MESSAGES/help2man.mo
/usr/share/locale/de/LC_MESSAGES/help2man.mo
/usr/share/locale/el/LC_MESSAGES/help2man.mo
/usr/share/locale/eo/LC_MESSAGES/help2man.mo
/usr/share/locale/es/LC_MESSAGES/help2man.mo
/usr/share/locale/fi/LC_MESSAGES/help2man.mo
/usr/share/locale/fr/LC_MESSAGES/help2man.mo
/usr/share/locale/hr/LC_MESSAGES/help2man.mo
/usr/share/locale/hu/LC_MESSAGES/help2man.mo
/usr/share/locale/it/LC_MESSAGES/help2man.mo
/usr/share/locale/ja/LC_MESSAGES/help2man.mo
/usr/share/locale/nb/LC_MESSAGES/help2man.mo
/usr/share/locale/pl/LC_MESSAGES/help2man.mo
/usr/share/locale/pt_BR/LC_MESSAGES/help2man.mo
/usr/share/locale/ru/LC_MESSAGES/help2man.mo
/usr/share/locale/sr/LC_MESSAGES/help2man.mo
/usr/share/locale/sv/LC_MESSAGES/help2man.mo
/usr/share/locale/uk/LC_MESSAGES/help2man.mo
/usr/share/locale/vi/LC_MESSAGES/help2man.mo
/usr/share/locale/zh_CN/LC_MESSAGES/help2man.mo
/usr/share/man/da/man1/help2man.1.gz
/usr/share/man/de/man1/help2man.1.gz
/usr/share/man/el/man1/help2man.1.gz
/usr/share/man/eo/man1/help2man.1.gz
/usr/share/man/es/man1/help2man.1.gz
/usr/share/man/fi/man1/help2man.1.gz
/usr/share/man/fr/man1/help2man.1.gz
/usr/share/man/hr/man1/help2man.1.gz
/usr/share/man/hu/man1/help2man.1.gz
/usr/share/man/it/man1/help2man.1.gz
/usr/share/man/ja/man1/help2man.1.gz
/usr/share/man/man1/help2man.1.gz
/usr/share/man/nb/man1/help2man.1.gz
/usr/share/man/pl/man1/help2man.1.gz
/usr/share/man/pt_BR/man1/help2man.1.gz
/usr/share/man/ru/man1/help2man.1.gz
/usr/share/man/sr/man1/help2man.1.gz
/usr/share/man/sv/man1/help2man.1.gz
/usr/share/man/uk/man1/help2man.1.gz
/usr/share/man/vi/man1/help2man.1.gz
/usr/share/man/zh_CN/man1/help2man.1.gz

References

Summary

In this tutorial we learn how to install help2man on CentOS 8 using yum and dnf.