How To Install targetd on Fedora 34
Introduction
In this tutorial we learn how to install targetd
on Fedora 34.
What is targetd
targetd turns the machine into a remotely-configurable storage appliance. It supports an HTTP/jsonrpc-2.0 interface to let a remote administrator allocate volumes from an LVM volume group, and export those volumes over iSCSI.
We can use yum
or dnf
to install targetd
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install targetd.
Install targetd on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install targetd
using dnf
by running the following command:
sudo dnf -y install targetd
Install targetd on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install targetd
using yum
by running the following command:
sudo yum -y install targetd
How To Uninstall targetd on Fedora 34
To uninstall only the targetd
package we can use the following command:
sudo dnf remove targetd
targetd Package Contents on Fedora 34
/etc/target/targetd.yaml
/usr/bin/targetd
/usr/lib/python3.9/site-packages/targetd
/usr/lib/python3.9/site-packages/targetd-0.10.0-py3.9.egg-info
/usr/lib/python3.9/site-packages/targetd/__init__.py
/usr/lib/python3.9/site-packages/targetd/__pycache__
/usr/lib/python3.9/site-packages/targetd/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/block.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/block.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/fs.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/fs.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/main.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/main.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/mount.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/mount.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/nfs.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/nfs.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/utils.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/utils.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/backends
/usr/lib/python3.9/site-packages/targetd/backends/__init__.py
/usr/lib/python3.9/site-packages/targetd/backends/__pycache__
/usr/lib/python3.9/site-packages/targetd/backends/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/backends/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/backends/__pycache__/btrfs.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/backends/__pycache__/btrfs.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/backends/__pycache__/lvm.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/backends/__pycache__/lvm.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/backends/__pycache__/zfs.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/backends/__pycache__/zfs.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/backends/btrfs.py
/usr/lib/python3.9/site-packages/targetd/backends/lvm.py
/usr/lib/python3.9/site-packages/targetd/backends/zfs.py
/usr/lib/python3.9/site-packages/targetd/block.py
/usr/lib/python3.9/site-packages/targetd/fs.py
/usr/lib/python3.9/site-packages/targetd/main.py
/usr/lib/python3.9/site-packages/targetd/mount.py
/usr/lib/python3.9/site-packages/targetd/nfs.py
/usr/lib/python3.9/site-packages/targetd/utils.py
/usr/lib/systemd/system/targetd.service
/usr/share/doc/targetd
/usr/share/doc/targetd/API.md
/usr/share/doc/targetd/README.md
/usr/share/doc/targetd/client
/usr/share/licenses/targetd
/usr/share/licenses/targetd/LICENSE
/usr/share/man/man5/targetd.yaml.5.gz
/usr/share/man/man8/targetd.8.gz
/etc/target/targetd.yaml
/usr/bin/targetd
/usr/lib/python3.9/site-packages/targetd
/usr/lib/python3.9/site-packages/targetd-0.9.1-py3.9.egg-info
/usr/lib/python3.9/site-packages/targetd/__init__.py
/usr/lib/python3.9/site-packages/targetd/__pycache__
/usr/lib/python3.9/site-packages/targetd/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/block.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/block.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/fs.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/fs.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/main.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/main.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/mount.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/mount.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/nfs.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/nfs.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/utils.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/__pycache__/utils.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/backends
/usr/lib/python3.9/site-packages/targetd/backends/__init__.py
/usr/lib/python3.9/site-packages/targetd/backends/__pycache__
/usr/lib/python3.9/site-packages/targetd/backends/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/backends/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/backends/__pycache__/btrfs.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/backends/__pycache__/btrfs.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/backends/__pycache__/lvm.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/backends/__pycache__/lvm.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/backends/__pycache__/zfs.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/targetd/backends/__pycache__/zfs.cpython-39.pyc
/usr/lib/python3.9/site-packages/targetd/backends/btrfs.py
/usr/lib/python3.9/site-packages/targetd/backends/lvm.py
/usr/lib/python3.9/site-packages/targetd/backends/zfs.py
/usr/lib/python3.9/site-packages/targetd/block.py
/usr/lib/python3.9/site-packages/targetd/fs.py
/usr/lib/python3.9/site-packages/targetd/main.py
/usr/lib/python3.9/site-packages/targetd/mount.py
/usr/lib/python3.9/site-packages/targetd/nfs.py
/usr/lib/python3.9/site-packages/targetd/utils.py
/usr/lib/systemd/system/targetd.service
/usr/share/doc/targetd
/usr/share/doc/targetd/API.md
/usr/share/doc/targetd/README.md
/usr/share/doc/targetd/client
/usr/share/licenses/targetd
/usr/share/licenses/targetd/LICENSE
/usr/share/man/man5/targetd.yaml.5.gz
/usr/share/man/man8/targetd.8.gz
References
Summary
In this tutorial we learn how to install targetd
on Fedora 34 using yum and dnf.