How To Install targetcli.noarch on Amazon Linux 2

In this tutorial we learn how to install targetcli.noarch in Amazon Linux 2. targetcli.noarch is An administration shell for storage targets

Introduction

In this tutorial we learn how to install targetcli.noarch on Amazon Linux 2.

What is targetcli.noarch

An administration shell for configuring iSCSI, FCoE, and other SCSI targets, using the TCM/LIO kernel target subsystem. FCoE users will also need to install and use fcoe-utils.

We can use yum to install targetcli.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install targetcli.noarch.

Install targetcli.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install targetcli.noarch using yum by running the following command:

sudo yum -y install targetcli.noarch

How To Uninstall targetcli.noarch on Amazon Linux 2

To uninstall only the targetcli.noarch package we can use the following command:

sudo yum remove targetcli.noarch

targetcli.noarch Package Contents on Amazon Linux 2

/etc/target
/etc/target/backup
/etc/target/pr
/usr/bin/targetcli
/usr/bin/targetclid
/usr/lib/python2.7/site-packages/targetcli
/usr/lib/python2.7/site-packages/targetcli/__init__.py
/usr/lib/python2.7/site-packages/targetcli/__init__.pyc
/usr/lib/python2.7/site-packages/targetcli/__init__.pyo
/usr/lib/python2.7/site-packages/targetcli/ui_backstore.py
/usr/lib/python2.7/site-packages/targetcli/ui_backstore.pyc
/usr/lib/python2.7/site-packages/targetcli/ui_backstore.pyo
/usr/lib/python2.7/site-packages/targetcli/ui_node.py
/usr/lib/python2.7/site-packages/targetcli/ui_node.pyc
/usr/lib/python2.7/site-packages/targetcli/ui_node.pyo
/usr/lib/python2.7/site-packages/targetcli/ui_root.py
/usr/lib/python2.7/site-packages/targetcli/ui_root.pyc
/usr/lib/python2.7/site-packages/targetcli/ui_root.pyo
/usr/lib/python2.7/site-packages/targetcli/ui_target.py
/usr/lib/python2.7/site-packages/targetcli/ui_target.pyc
/usr/lib/python2.7/site-packages/targetcli/ui_target.pyo
/usr/lib/python2.7/site-packages/targetcli/version.py
/usr/lib/python2.7/site-packages/targetcli/version.pyc
/usr/lib/python2.7/site-packages/targetcli/version.pyo
/usr/lib/python2.7/site-packages/targetcli_fb-2.1.53-py2.7.egg-info
/usr/lib/python2.7/site-packages/targetcli_fb-2.1.53-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/targetcli_fb-2.1.53-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/targetcli_fb-2.1.53-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/targetcli_fb-2.1.53-py2.7.egg-info/top_level.txt
/usr/lib/systemd/system/targetclid.service
/usr/lib/systemd/system/targetclid.socket
/usr/share/doc/targetcli-2.1.53
/usr/share/doc/targetcli-2.1.53/COPYING
/usr/share/doc/targetcli-2.1.53/README.md
/usr/share/man/man8/targetcli.8.gz
/usr/share/man/man8/targetclid.8.gz

References

Summary

In this tutorial we learn how to install targetcli.noarch on Amazon Linux 2 using yum.