Linux install perl dbi

How To Install perl-DBI on CentOS 8

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

What is perl-DBI

DBI is a database access Application Programming Interface (API) for the Perl Language. The DBI API Specification defines a set of functions, variables and conventions that provide a consistent database interface independent of the actual database being used.

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

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

sudo dnf -y install perl-DBI 

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

sudo yum -y install perl-DBI 

How To Uninstall perl-DBI on CentOS 8

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

Читайте также:  Linux default java home

perl-DBI Package Contents on CentOS 8

/usr/bin/dbilogstrip /usr/bin/dbiprof /usr/lib/.build-id /usr/lib/.build-id/86 /usr/lib/.build-id/86/bc35cc8ddd9a32a187f35b1195406932eb54ee /usr/lib64/perl5/vendor_perl/DBD /usr/lib64/perl5/vendor_perl/DBD/DBM.pm /usr/lib64/perl5/vendor_perl/DBD/ExampleP.pm /usr/lib64/perl5/vendor_perl/DBD/File /usr/lib64/perl5/vendor_perl/DBD/File.pm /usr/lib64/perl5/vendor_perl/DBD/File/Developers.pod /usr/lib64/perl5/vendor_perl/DBD/File/HowTo.pod /usr/lib64/perl5/vendor_perl/DBD/File/Roadmap.pod /usr/lib64/perl5/vendor_perl/DBD/Gofer /usr/lib64/perl5/vendor_perl/DBD/Gofer.pm /usr/lib64/perl5/vendor_perl/DBD/Gofer/Policy /usr/lib64/perl5/vendor_perl/DBD/Gofer/Policy/Base.pm /usr/lib64/perl5/vendor_perl/DBD/Gofer/Policy/classic.pm /usr/lib64/perl5/vendor_perl/DBD/Gofer/Policy/pedantic.pm /usr/lib64/perl5/vendor_perl/DBD/Gofer/Policy/rush.pm /usr/lib64/perl5/vendor_perl/DBD/Gofer/Transport /usr/lib64/perl5/vendor_perl/DBD/Gofer/Transport/Base.pm /usr/lib64/perl5/vendor_perl/DBD/Gofer/Transport/null.pm /usr/lib64/perl5/vendor_perl/DBD/Gofer/Transport/pipeone.pm /usr/lib64/perl5/vendor_perl/DBD/Gofer/Transport/stream.pm /usr/lib64/perl5/vendor_perl/DBD/Mem.pm /usr/lib64/perl5/vendor_perl/DBD/NullP.pm /usr/lib64/perl5/vendor_perl/DBD/Sponge.pm /usr/lib64/perl5/vendor_perl/DBI /usr/lib64/perl5/vendor_perl/DBI.pm /usr/lib64/perl5/vendor_perl/DBI/Changes.pm /usr/lib64/perl5/vendor_perl/DBI/Const /usr/lib64/perl5/vendor_perl/DBI/Const/GetInfo /usr/lib64/perl5/vendor_perl/DBI/Const/GetInfo/ANSI.pm /usr/lib64/perl5/vendor_perl/DBI/Const/GetInfo/ODBC.pm /usr/lib64/perl5/vendor_perl/DBI/Const/GetInfoReturn.pm /usr/lib64/perl5/vendor_perl/DBI/Const/GetInfoType.pm /usr/lib64/perl5/vendor_perl/DBI/DBD /usr/lib64/perl5/vendor_perl/DBI/DBD.pm /usr/lib64/perl5/vendor_perl/DBI/DBD/Metadata.pm /usr/lib64/perl5/vendor_perl/DBI/DBD/SqlEngine /usr/lib64/perl5/vendor_perl/DBI/DBD/SqlEngine.pm /usr/lib64/perl5/vendor_perl/DBI/DBD/SqlEngine/Developers.pod /usr/lib64/perl5/vendor_perl/DBI/DBD/SqlEngine/HowTo.pod /usr/lib64/perl5/vendor_perl/DBI/Gofer /usr/lib64/perl5/vendor_perl/DBI/Gofer/Execute.pm /usr/lib64/perl5/vendor_perl/DBI/Gofer/Request.pm /usr/lib64/perl5/vendor_perl/DBI/Gofer/Response.pm /usr/lib64/perl5/vendor_perl/DBI/Gofer/Serializer /usr/lib64/perl5/vendor_perl/DBI/Gofer/Serializer/Base.pm /usr/lib64/perl5/vendor_perl/DBI/Gofer/Serializer/DataDumper.pm /usr/lib64/perl5/vendor_perl/DBI/Gofer/Serializer/Storable.pm /usr/lib64/perl5/vendor_perl/DBI/Gofer/Transport /usr/lib64/perl5/vendor_perl/DBI/Gofer/Transport/Base.pm /usr/lib64/perl5/vendor_perl/DBI/Gofer/Transport/pipeone.pm /usr/lib64/perl5/vendor_perl/DBI/Gofer/Transport/stream.pm /usr/lib64/perl5/vendor_perl/DBI/Profile.pm /usr/lib64/perl5/vendor_perl/DBI/ProfileData.pm /usr/lib64/perl5/vendor_perl/DBI/ProfileDumper /usr/lib64/perl5/vendor_perl/DBI/ProfileDumper.pm /usr/lib64/perl5/vendor_perl/DBI/ProfileDumper/Apache.pm /usr/lib64/perl5/vendor_perl/DBI/ProfileSubs.pm /usr/lib64/perl5/vendor_perl/DBI/PurePerl.pm /usr/lib64/perl5/vendor_perl/DBI/SQL /usr/lib64/perl5/vendor_perl/DBI/SQL/Nano.pm /usr/lib64/perl5/vendor_perl/DBI/Util /usr/lib64/perl5/vendor_perl/DBI/Util/CacheMemory.pm /usr/lib64/perl5/vendor_perl/DBI/Util/_accessor.pm /usr/lib64/perl5/vendor_perl/auto/DBI /usr/lib64/perl5/vendor_perl/auto/DBI/DBI.so /usr/lib64/perl5/vendor_perl/auto/DBI/DBIXS.h /usr/lib64/perl5/vendor_perl/auto/DBI/Driver.xst /usr/lib64/perl5/vendor_perl/auto/DBI/Driver_xst.h /usr/lib64/perl5/vendor_perl/auto/DBI/dbd_xsh.h /usr/lib64/perl5/vendor_perl/auto/DBI/dbi_sql.h /usr/lib64/perl5/vendor_perl/auto/DBI/dbipport.h /usr/lib64/perl5/vendor_perl/auto/DBI/dbivport.h /usr/lib64/perl5/vendor_perl/auto/DBI/dbixs_rev.h /usr/lib64/perl5/vendor_perl/dbixs_rev.pl /usr/share/doc/perl-DBI /usr/share/doc/perl-DBI/README.md /usr/share/doc/perl-DBI/perl_dbi_nulls_test.pl /usr/share/doc/perl-DBI/profile.pl /usr/share/man/man1/dbilogstrip.1.gz /usr/share/man/man1/dbiprof.1.gz /usr/share/man/man3/DBD::DBM.3pm.gz /usr/share/man/man3/DBD::File.3pm.gz /usr/share/man/man3/DBD::File::Developers.3pm.gz /usr/share/man/man3/DBD::File::HowTo.3pm.gz /usr/share/man/man3/DBD::File::Roadmap.3pm.gz /usr/share/man/man3/DBD::Gofer.3pm.gz /usr/share/man/man3/DBD::Gofer::Policy::Base.3pm.gz /usr/share/man/man3/DBD::Gofer::Policy::classic.3pm.gz /usr/share/man/man3/DBD::Gofer::Policy::pedantic.3pm.gz /usr/share/man/man3/DBD::Gofer::Policy::rush.3pm.gz /usr/share/man/man3/DBD::Gofer::Transport::Base.3pm.gz /usr/share/man/man3/DBD::Gofer::Transport::null.3pm.gz /usr/share/man/man3/DBD::Gofer::Transport::pipeone.3pm.gz /usr/share/man/man3/DBD::Gofer::Transport::stream.3pm.gz /usr/share/man/man3/DBD::Mem.3pm.gz /usr/share/man/man3/DBD::Sponge.3pm.gz /usr/share/man/man3/DBI.3pm.gz /usr/share/man/man3/DBI::Const::GetInfo::ANSI.3pm.gz /usr/share/man/man3/DBI::Const::GetInfo::ODBC.3pm.gz /usr/share/man/man3/DBI::Const::GetInfoReturn.3pm.gz /usr/share/man/man3/DBI::Const::GetInfoType.3pm.gz /usr/share/man/man3/DBI::DBD.3pm.gz /usr/share/man/man3/DBI::DBD::Metadata.3pm.gz /usr/share/man/man3/DBI::DBD::SqlEngine.3pm.gz /usr/share/man/man3/DBI::DBD::SqlEngine::Developers.3pm.gz /usr/share/man/man3/DBI::DBD::SqlEngine::HowTo.3pm.gz /usr/share/man/man3/DBI::Gofer::Execute.3pm.gz /usr/share/man/man3/DBI::Gofer::Request.3pm.gz /usr/share/man/man3/DBI::Gofer::Response.3pm.gz /usr/share/man/man3/DBI::Gofer::Serializer::Base.3pm.gz /usr/share/man/man3/DBI::Gofer::Serializer::DataDumper.3pm.gz /usr/share/man/man3/DBI::Gofer::Serializer::Storable.3pm.gz /usr/share/man/man3/DBI::Gofer::Transport::Base.3pm.gz /usr/share/man/man3/DBI::Gofer::Transport::pipeone.3pm.gz /usr/share/man/man3/DBI::Gofer::Transport::stream.3pm.gz /usr/share/man/man3/DBI::Profile.3pm.gz /usr/share/man/man3/DBI::ProfileData.3pm.gz /usr/share/man/man3/DBI::ProfileDumper.3pm.gz /usr/share/man/man3/DBI::ProfileDumper::Apache.3pm.gz /usr/share/man/man3/DBI::ProfileSubs.3pm.gz /usr/share/man/man3/DBI::PurePerl.3pm.gz /usr/share/man/man3/DBI::SQL::Nano.3pm.gz /usr/share/man/man3/DBI::Util::CacheMemory.3pm.gz 

References

Summary

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

Источник

Оцените статью
Adblock
detector