Created
August 13, 2019 04:41
-
-
Save syed/42faf4ff5ac3598e41dfbc265dacbea1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install wget openssl-devel python-six python-sphinx gcc make python-devel openssl-devel kernel-devel graphviz kernel-debug-devel autoconf automake rpm-build redhat-rpm-config libtool python-twisted-core python-zope-interface PyQt4 desktop-file-utils libcap-ng-devel groff checkpolicy selinux-policy-devel -y | |
useradd ovs | |
su - ovs | |
mkdir -p ~/rpmbuild/SOURCES | |
wget http://openvswitch.org/releases/openvswitch-2.9.2.tar.gz | |
cp openvswitch-2.9.2.tar.gz ~/rpmbuild/SOURCES/ | |
tar xfz openvswitch-2.9.2.tar.gz | |
rpmbuild -bb --nocheck openvswitch-2.9.2/rhel/openvswitch-fedora.spec | |
exit | |
yum localinstall /home/ovs/rpmbuild/RPMS/x86_64/openvswitch-2.9.2-1.el7.centos.x86_64.rpm -y | |
systemctl start openvswitch.service | |
systemctl enable openvswitch.service | |
systemctl status openvswitch.service | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment