How to Install and Uninstall perl-Test-MockTime Package on openSUSE Leap

Last updated: December 27,2024

1. Install "perl-Test-MockTime" package

This tutorial shows how to install perl-Test-MockTime on openSUSE Leap

$ sudo zypper refresh $ sudo zypper install perl-Test-MockTime

2. Uninstall "perl-Test-MockTime" package

In this section, we are going to explain the necessary steps to uninstall perl-Test-MockTime on openSUSE Leap:

$ sudo zypper remove perl-Test-MockTime

3. Information about the perl-Test-MockTime package on openSUSE Leap

Information for package perl-Test-MockTime:
-------------------------------------------
Repository : Main Repository
Name : perl-Test-MockTime
Version : 0.17-bp155.2.12
Arch : noarch
Vendor : openSUSE
Installed Size : 15.6 KiB
Installed : No
Status : not installed
Source package : perl-Test-MockTime-0.17-bp155.2.12.src
Upstream URL : http://search.cpan.org/dist/Test-MockTime/
Summary : Replaces actual time with simulated time
Description :
This module was created to enable test suites to test code at specific
points in time. Specifically it overrides localtime, gmtime and time at
compile time and then relies on the user supplying a mock time via
set_relative_time, set_absolute_time or set_fixed_time to alter future
calls to gmtime,time or localtime.