How to Install and Uninstall libdbd-mock-perl Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: May 21,2024

1. Install "libdbd-mock-perl" package

This guide covers the steps necessary to install libdbd-mock-perl on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install libdbd-mock-perl

2. Uninstall "libdbd-mock-perl" package

Please follow the steps below to uninstall libdbd-mock-perl on Ubuntu 21.04 (Hirsute Hippo):

$ sudo apt remove libdbd-mock-perl $ sudo apt autoclean && sudo apt autoremove

3. Information about the libdbd-mock-perl package on Ubuntu 21.04 (Hirsute Hippo)

Package: libdbd-mock-perl
Architecture: all
Version: 1.58-1
Priority: optional
Section: universe/perl
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Perl Group
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 135
Depends: perl:any, libdbi-perl
Filename: pool/universe/libd/libdbd-mock-perl/libdbd-mock-perl_1.58-1_all.deb
Size: 45128
MD5sum: 90765b134ce1a9b99e8c36df87f546a6
SHA1: 4a42724d9f8a0f2046a4f672216723b02ab75099
SHA256: ba540648341a4c3d107ae426c2a3c4927577071e6787538412ca7f71f805b293
SHA512: 167bd90558a7713245b7f272c2104c136019fd4b3eda24811f1f5cb576f59fe95dcbd4a1ff0e433de6560f39556ee7fe9c34b560723d559257c9024fd6fb0dda
Homepage: https://metacpan.org/release/DBD-Mock
Description-en: Mock database driver for testing
Testing with databases can be tricky. If you are developing a system married
to a single database then you can make some assumptions about your
environment and ask the user to provide relevant connection information. But
if you need to test a framework that uses DBI, particularly a framework that
uses different types of persistence schemes, then it may be more useful to
simply verify what the framework is trying to do -- ensure the right SQL is
generated and that the correct parameters are bound. DBD::Mock makes it easy
to just modify your configuration (presumably held outside your code) and
just use it instead of DBD::Foo (like DBD::Pg or DBD::mysql) in your
framework.
Description-md5: b0d015475e873bc48ff3b0a8968cbfce