How To Install perl-CPAN-Meta on CentOS 8

perl-CPAN-Meta is Distribution metadata for a CPAN dist

Introduction

In this tutorial we learn how to install perl-CPAN-Meta on CentOS 8.

What is perl-CPAN-Meta

Software distributions released to the CPAN include a META.json or, for older distributions, META.yml, which describes the distribution, its contents, and the requirements for building and installing the distribution. The data structure stored in the META.json file is described in CPAN

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

Install perl-CPAN-Meta 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 perl-CPAN-Meta using dnf by running the following command:

sudo dnf -y install perl-CPAN-Meta

Install perl-CPAN-Meta 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 perl-CPAN-Meta using yum by running the following command:

sudo yum -y install perl-CPAN-Meta

How To Uninstall perl-CPAN-Meta on CentOS 8

To uninstall only the perl-CPAN-Meta package we can use the following command:

sudo dnf remove perl-CPAN-Meta

perl-CPAN-Meta Package Contents on CentOS 8

/usr/share/doc/perl-CPAN-Meta
/usr/share/doc/perl-CPAN-Meta/CONTRIBUTING.mkdn
/usr/share/doc/perl-CPAN-Meta/Changes
/usr/share/doc/perl-CPAN-Meta/README
/usr/share/doc/perl-CPAN-Meta/Todo
/usr/share/doc/perl-CPAN-Meta/history
/usr/share/doc/perl-CPAN-Meta/history/META-spec-1_0.html
/usr/share/doc/perl-CPAN-Meta/history/META-spec-1_1.html
/usr/share/doc/perl-CPAN-Meta/history/META-spec-1_2.pod
/usr/share/doc/perl-CPAN-Meta/history/META-spec-1_3.pod
/usr/share/doc/perl-CPAN-Meta/history/META-spec-1_4.pod
/usr/share/doc/perl-CPAN-Meta/t
/usr/share/doc/perl-CPAN-Meta/t/00-report-prereqs.dd
/usr/share/doc/perl-CPAN-Meta/t/00-report-prereqs.t
/usr/share/doc/perl-CPAN-Meta/t/README-data.txt
/usr/share/doc/perl-CPAN-Meta/t/converter-bad.t
/usr/share/doc/perl-CPAN-Meta/t/converter-fail.t
/usr/share/doc/perl-CPAN-Meta/t/converter-fragments.t
/usr/share/doc/perl-CPAN-Meta/t/converter.t
/usr/share/doc/perl-CPAN-Meta/t/data-fail
/usr/share/doc/perl-CPAN-Meta/t/data-fail/META-1_0.yml
/usr/share/doc/perl-CPAN-Meta/t/data-fail/META-1_1.yml
/usr/share/doc/perl-CPAN-Meta/t/data-fail/META-1_2.yml
/usr/share/doc/perl-CPAN-Meta/t/data-fail/META-1_3.yml
/usr/share/doc/perl-CPAN-Meta/t/data-fail/META-1_4.yml
/usr/share/doc/perl-CPAN-Meta/t/data-fail/META-2.json
/usr/share/doc/perl-CPAN-Meta/t/data-fixable
/usr/share/doc/perl-CPAN-Meta/t/data-fixable/107650337-META.yml
/usr/share/doc/perl-CPAN-Meta/t/data-fixable/1598804075-META.yml
/usr/share/doc/perl-CPAN-Meta/t/data-fixable/1927486199-META.yml
/usr/share/doc/perl-CPAN-Meta/t/data-fixable/1985980974-META.yml
/usr/share/doc/perl-CPAN-Meta/t/data-fixable/2031017050-META.yml
/usr/share/doc/perl-CPAN-Meta/t/data-fixable/284247103-META.yml
/usr/share/doc/perl-CPAN-Meta/t/data-fixable/344981821-META.yml
/usr/share/doc/perl-CPAN-Meta/t/data-fixable/35478989-META.yml
/usr/share/doc/perl-CPAN-Meta/t/data-fixable/98042513-META.yml
/usr/share/doc/perl-CPAN-Meta/t/data-fixable/META-1_2.yml
/usr/share/doc/perl-CPAN-Meta/t/data-fixable/META-1_3.yml
/usr/share/doc/perl-CPAN-Meta/t/data-fixable/META-1_4.yml
/usr/share/doc/perl-CPAN-Meta/t/data-fixable/META-2.json
/usr/share/doc/perl-CPAN-Meta/t/data-fixable/invalid-meta-spec-version.json
/usr/share/doc/perl-CPAN-Meta/t/data-fixable/invalid-meta-spec-version.yml
/usr/share/doc/perl-CPAN-Meta/t/data-fixable/meta-spec-version-trailing-zeros.json
/usr/share/doc/perl-CPAN-Meta/t/data-fixable/meta-spec-version-trailing-zeros.yml
/usr/share/doc/perl-CPAN-Meta/t/data-fixable/restrictive-2.json
/usr/share/doc/perl-CPAN-Meta/t/data-fixable/version-ranges-2.json
/usr/share/doc/perl-CPAN-Meta/t/data-test
/usr/share/doc/perl-CPAN-Meta/t/data-test/META-1_0.yml
/usr/share/doc/perl-CPAN-Meta/t/data-test/META-1_1.yml
/usr/share/doc/perl-CPAN-Meta/t/data-test/META-1_2.yml
/usr/share/doc/perl-CPAN-Meta/t/data-test/META-1_3.yml
/usr/share/doc/perl-CPAN-Meta/t/data-test/META-1_4.yml
/usr/share/doc/perl-CPAN-Meta/t/data-test/META-2.json
/usr/share/doc/perl-CPAN-Meta/t/data-test/META-2.meta
/usr/share/doc/perl-CPAN-Meta/t/data-test/gpl-1_4.yml
/usr/share/doc/perl-CPAN-Meta/t/data-test/preserve-release-status.yml
/usr/share/doc/perl-CPAN-Meta/t/data-test/provides-version-missing.json
/usr/share/doc/perl-CPAN-Meta/t/data-test/resources.yml
/usr/share/doc/perl-CPAN-Meta/t/data-test/restricted-2.json
/usr/share/doc/perl-CPAN-Meta/t/data-test/restrictive-1_4.yml
/usr/share/doc/perl-CPAN-Meta/t/data-test/unicode.yml
/usr/share/doc/perl-CPAN-Meta/t/data-test/version-not-normal.json
/usr/share/doc/perl-CPAN-Meta/t/data-test/version-ranges-1_4.yml
/usr/share/doc/perl-CPAN-Meta/t/data-test/version-ranges-2.json
/usr/share/doc/perl-CPAN-Meta/t/data-test/x_deprecated-META.json
/usr/share/doc/perl-CPAN-Meta/t/data-valid
/usr/share/doc/perl-CPAN-Meta/t/data-valid/1122575719-META.yml
/usr/share/doc/perl-CPAN-Meta/t/data-valid/1206545041-META.yml
/usr/share/doc/perl-CPAN-Meta/t/data-valid/1985684504-META.yml
/usr/share/doc/perl-CPAN-Meta/t/data-valid/476602558-META.yml
/usr/share/doc/perl-CPAN-Meta/t/data-valid/META-1_0.yml
/usr/share/doc/perl-CPAN-Meta/t/data-valid/META-1_1.yml
/usr/share/doc/perl-CPAN-Meta/t/data-valid/META-1_4.yml
/usr/share/doc/perl-CPAN-Meta/t/data-valid/META-2.json
/usr/share/doc/perl-CPAN-Meta/t/data-valid/scalar-meta-spec.yml
/usr/share/doc/perl-CPAN-Meta/t/data-valid/x_deprecated-META.yml
/usr/share/doc/perl-CPAN-Meta/t/lib
/usr/share/doc/perl-CPAN-Meta/t/lib/Parse
/usr/share/doc/perl-CPAN-Meta/t/lib/Parse/CPAN
/usr/share/doc/perl-CPAN-Meta/t/lib/Parse/CPAN/Meta
/usr/share/doc/perl-CPAN-Meta/t/lib/Parse/CPAN/Meta/Test.pm
/usr/share/doc/perl-CPAN-Meta/t/load-bad.t
/usr/share/doc/perl-CPAN-Meta/t/merge.t
/usr/share/doc/perl-CPAN-Meta/t/meta-obj.t
/usr/share/doc/perl-CPAN-Meta/t/no-index.t
/usr/share/doc/perl-CPAN-Meta/t/optional_feature-merge.t
/usr/share/doc/perl-CPAN-Meta/t/parse-cpan-meta
/usr/share/doc/perl-CPAN-Meta/t/parse-cpan-meta/02_api.t
/usr/share/doc/perl-CPAN-Meta/t/parse-cpan-meta/03_functions.t
/usr/share/doc/perl-CPAN-Meta/t/parse-cpan-meta/04_export.t
/usr/share/doc/perl-CPAN-Meta/t/parse-cpan-meta/05_errors.t
/usr/share/doc/perl-CPAN-Meta/t/prereqs-finalize.t
/usr/share/doc/perl-CPAN-Meta/t/prereqs-merge.t
/usr/share/doc/perl-CPAN-Meta/t/prereqs.t
/usr/share/doc/perl-CPAN-Meta/t/repository.t
/usr/share/doc/perl-CPAN-Meta/t/save-load.t
/usr/share/doc/perl-CPAN-Meta/t/validator.t
/usr/share/licenses/perl-CPAN-Meta
/usr/share/licenses/perl-CPAN-Meta/LICENSE
/usr/share/man/man3/CPAN::Meta.3pm.gz
/usr/share/man/man3/CPAN::Meta::Converter.3pm.gz
/usr/share/man/man3/CPAN::Meta::Feature.3pm.gz
/usr/share/man/man3/CPAN::Meta::History.3pm.gz
/usr/share/man/man3/CPAN::Meta::History::Meta_1_0.3pm.gz
/usr/share/man/man3/CPAN::Meta::History::Meta_1_1.3pm.gz
/usr/share/man/man3/CPAN::Meta::History::Meta_1_2.3pm.gz
/usr/share/man/man3/CPAN::Meta::History::Meta_1_3.3pm.gz
/usr/share/man/man3/CPAN::Meta::History::Meta_1_4.3pm.gz
/usr/share/man/man3/CPAN::Meta::Merge.3pm.gz
/usr/share/man/man3/CPAN::Meta::Prereqs.3pm.gz
/usr/share/man/man3/CPAN::Meta::Spec.3pm.gz
/usr/share/man/man3/CPAN::Meta::Validator.3pm.gz
/usr/share/man/man3/Parse::CPAN::Meta.3pm.gz
/usr/share/perl5/vendor_perl/CPAN
/usr/share/perl5/vendor_perl/CPAN/Meta
/usr/share/perl5/vendor_perl/CPAN/Meta.pm
/usr/share/perl5/vendor_perl/CPAN/Meta/Converter.pm
/usr/share/perl5/vendor_perl/CPAN/Meta/Feature.pm
/usr/share/perl5/vendor_perl/CPAN/Meta/History
/usr/share/perl5/vendor_perl/CPAN/Meta/History.pm
/usr/share/perl5/vendor_perl/CPAN/Meta/History/Meta_1_0.pod
/usr/share/perl5/vendor_perl/CPAN/Meta/History/Meta_1_1.pod
/usr/share/perl5/vendor_perl/CPAN/Meta/History/Meta_1_2.pod
/usr/share/perl5/vendor_perl/CPAN/Meta/History/Meta_1_3.pod
/usr/share/perl5/vendor_perl/CPAN/Meta/History/Meta_1_4.pod
/usr/share/perl5/vendor_perl/CPAN/Meta/Merge.pm
/usr/share/perl5/vendor_perl/CPAN/Meta/Prereqs.pm
/usr/share/perl5/vendor_perl/CPAN/Meta/Spec.pm
/usr/share/perl5/vendor_perl/CPAN/Meta/Validator.pm
/usr/share/perl5/vendor_perl/Parse
/usr/share/perl5/vendor_perl/Parse/CPAN
/usr/share/perl5/vendor_perl/Parse/CPAN/Meta.pm

References

Summary

In this tutorial we learn how to install perl-CPAN-Meta on CentOS 8 using yum and dnf.