How to Install and Uninstall python2-sh Package on openSUSE Leap

Last updated: May 18,2024

1. Install "python2-sh" package

Please follow the instructions below to install python2-sh on openSUSE Leap

$ sudo zypper refresh $ sudo zypper install python2-sh

2. Uninstall "python2-sh" package

In this section, we are going to explain the necessary steps to uninstall python2-sh on openSUSE Leap:

$ sudo zypper remove python2-sh

3. Information about the python2-sh package on openSUSE Leap

Information for package python2-sh:
-----------------------------------
Repository : Main Repository
Name : python2-sh
Version : 1.12.14-bp153.1.15
Arch : noarch
Vendor : openSUSE
Installed Size : 316,7 KiB
Installed : No
Status : not installed
Source package : python-sh-1.12.14-bp153.1.15.src
Summary : Python subprocess interface
Description :
sh is a full-fledged subprocess replacement for Python 2.6 - 3.6, PyPy
and PyPy3 that allows you to call any program as if it were a
function:
from sh import ifconfig
print ifconfig("eth0")
sh is not a collection of system commands implemented in Python.