Вставить этот текст целиком в командную строку
bash -cx "
# добавить epel репозиторий с lxc
cat <<\EOT > /etc/yum.repos.d/thm-lxc3.0-epel-7.repo
[copr:copr.fedorainfracloud.org:thm:lxc3.0]
name=Copr repo for lxc3.0 owned by thm
baseurl=https://download.copr.fedorainfracloud.org/results/thm/lxc3.0/epel-7-$basearch/
type=rpm-md
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://download.copr.fedorainfracloud.org/results/thm/lxc3.0/pubkey.gpg
repo_gpgcheck=0
enabled=1
enabled_metadata=1
EOT
yum -y install nano tar zip unzip curl wget lxc lxc-templates dnsmasq
# Включить USE_LXC_BRIDGE в /etc/sysconfig/lxc
sed -E 's|(USE_LXC_BRIDGE=")false(")|\1true\2|' -i /etc/sysconfig/lxc
# Запуск LXC
systemctl restart lxc-net
systemctl enable lxc-net
# Устанавливаем redir
cd /tmp
wget https://rpmfind.net/linux/epel/8/Everything/x86_64/Packages/r/redir-3.3-3.el8.x86_64.rpm
rpm -ivh redir-3.3-3.el8.x86_64.rpm"