How to Install and Uninstall python3-mock.noarch Package on Amazon Linux 2

Last updated: November 27,2024

1. Install "python3-mock.noarch" package

Please follow the guidance below to install python3-mock.noarch on Amazon Linux 2

$ sudo yum makecache $ sudo yum install python3-mock.noarch

2. Uninstall "python3-mock.noarch" package

This is a short guide on how to uninstall python3-mock.noarch on Amazon Linux 2:

$ sudo yum remove python3-mock.noarch $ sudo yum autoremove

3. Information about the python3-mock.noarch package on Amazon Linux 2

Loaded plugins: ovl, priorities
Available Packages
Name : python3-mock
Arch : noarch
Version : 3.0.5
Release : 8.amzn2.0.3
Size : 52 k
Repo : amzn2-core/2/x86_64
Summary : A Python Mocking and Patching Library for Testing
URL : http://www.voidspace.org.uk/python/mock/
License : BSD
Description : Mock is a Python module that provides a core mock class. It
: removes the need to create a host of stubs throughout your test
: suite. After performing an action, you can make assertions about
: which methods / attributes were used and arguments they were
: called with. You can also specify return values and set needed
: attributes in the normal way.