5 Setup the fd.io Repository - Centos 7
6 =====================================
11 Before starting the repository setup, it is a good idea to first update and upgrade
12 the OS; run the following command to update the OS:
14 .. code-block:: console
19 Point to the Repository
20 -----------------------
22 For CentOS based systems, there are two respositories to pull VPP binaries from:
24 * CentOS NFV SIG Repository
28 CentOS NFV SIG Repository
29 ^^^^^^^^^^^^^^^^^^^^^^^^^
31 VPP is not in the official CentOS 7 distro; however, CentOS has Special
32 Interest Groups (SIG), which are smaller groups within the CentOS community that
33 focus on a small set of issues. The CentOS NFV (Network Function Virtualization)
34 SIG was created to provide a CentOS-based stack that will serve as a platform
36 To install released packages from the CentOS NFV SIG Repository on an updated
37 Centos 7 system, first, install the CentOS NFV SIG FIDO repo file by running the
40 .. code-block:: console
42 $ sudo yum install centos-release-fdio
44 then **'Install VPP RPMs'**, as described below.
46 This will install the latest VPP version from the repository. To install an
47 older version, once the CentOS NFV SIG FDIO repo file has been installed, list
50 .. code-block:: console
52 $ sudo yum --showduplicates list vpp* | expand
53 Loaded plugins: fastestmirror
54 Loading mirror speeds from cached hostfile
55 * base: repos-va.psychz.net
56 * epel: download-ib01.fedoraproject.org
57 * extras: mirror.siena.edu
58 * updates: repo1.ash.innoscale.net
60 vpp.x86_64 17.10-1 centos-fdio
61 vpp.x86_64 18.01.1-1 centos-fdio
62 vpp.x86_64 18.01.2-1 centos-fdio
63 vpp.x86_64 18.04-1 centos-fdio
64 vpp-api-java.x86_64 17.10-1 centos-fdio
65 vpp-api-java.x86_64 18.01.1-1 centos-fdio
66 vpp-api-java.x86_64 18.01.2-1 centos-fdio
67 vpp-api-java.x86_64 18.04-1 centos-fdio
68 vpp-api-lua.x86_64 17.10-1 centos-fdio
69 vpp-api-lua.x86_64 18.01.1-1 centos-fdio
70 vpp-api-lua.x86_64 18.01.2-1 centos-fdio
71 vpp-api-lua.x86_64 18.04-1 centos-fdio
72 vpp-api-python.x86_64 17.10-1 centos-fdio
73 vpp-api-python.x86_64 18.01.1-1 centos-fdio
74 vpp-api-python.x86_64 18.01.2-1 centos-fdio
75 vpp-api-python.x86_64 18.04-1 centos-fdio
76 vpp-devel.x86_64 17.10-1 centos-fdio
77 vpp-devel.x86_64 18.01.1-1 centos-fdio
78 vpp-devel.x86_64 18.01.2-1 centos-fdio
79 vpp-devel.x86_64 18.04-1 centos-fdio
80 vpp-lib.x86_64 17.10-1 centos-fdio
81 vpp-lib.x86_64 18.01.1-1 centos-fdio
82 vpp-lib.x86_64 18.01.2-1 centos-fdio
83 vpp-lib.x86_64 18.04-1 centos-fdio
84 vpp-plugins.x86_64 17.10-1 centos-fdio
85 vpp-plugins.x86_64 18.01.1-1 centos-fdio
86 vpp-plugins.x86_64 18.01.2-1 centos-fdio
87 vpp-plugins.x86_64 18.04-1 centos-fdio
88 vpp-selinux-policy.x86_64 18.04-1 centos-fdio
90 Then install a particular version:
92 .. code-block:: console
94 $ sudo yum install vpp-17.10-1.x86_64
100 Build artifacts are also posted to a FD.io Nexus Repository. This includes
101 official point releases, as well as nightly builds. To use any of these build
102 artifacts, create a file *'/etc/yum.repos.d/fdio-release.repo'* with the
103 content that points to the version needed. Below are some common examples of
110 To allow *'yum'* access to the official VPP releases, create the file
111 *'/etc/yum.repos.d/fdio-release.repo'* with the following content.
113 .. code-block:: console
115 $ cat /etc/yum.repos.d/fdio-release.repo
117 name=fd.io release branch latest merge
118 baseurl=https://nexus.fd.io/content/repositories/fd.io.centos7/
122 The *'yum install vpp'* command will install the most recent release. To
123 install older releases, run the following command to get the list of releases
126 .. code-block:: console
128 $ sudo yum --showduplicates list vpp* | expand
130 Then choose the release to install. See **'CentOS NFV SIG Repository'** for
131 sample *'yum --showduplicates list'* output and an example of installing a
132 particular version of the RPMs.
137 To allow *yum* access to the build artifacts for a VPP stable branch, create
138 the file *'/etc/yum.repos.d/fdio-release.repo'* with the following content.
140 .. code-block:: console
142 $ cat /etc/yum.repos.d/fdio-release.repo
144 name=fd.io stable/1804 branch latest merge
145 baseurl=https://nexus.fd.io/content/repositories/fd.io.stable.1804.centos7/
149 For other stable branches, replace the *'1804'* from the above content with the
150 desired release. Examples: 1606, 1609, 1701, 1704, 1707, 1710, 1804, 1807
152 The *'yum install vpp'* command will install the most recent build on the
153 branch, not the latest offical release. Run the following command to get the
154 list of images produce by the branch:
156 .. code-block:: console
158 $ sudo yum --showduplicates list vpp* | expand
160 Then choose the image to install. See **'CentOS NFV SIG Repository'** for
161 sample *'yum --showduplicates list'* output and an example of installing a
162 particular version of the RPMs.
168 To allow *yum* access to the nightly builds from the VPP master branch, create
169 the file *'/etc/yum.repos.d/fdio-release.repo'* with the following content.
171 .. code-block:: console
173 $ cat /etc/yum.repos.d/fdio-release.repo
175 name=fd.io master branch latest merge
176 baseurl=https://nexus.fd.io/content/repositories/fd.io.master.centos7/
180 The *'yum install vpp'* command will install the most recent build on the
181 branch. Run the following command to get the list of images produce by the
184 .. code-block:: console
186 $ sudo yum --showduplicates list vpp* | expand
188 Then choose the image to install. See **'CentOS NFV SIG Repository'** for
189 sample *'yum --showduplicates list'* output and an example of installing a
190 particular version of the RPMs.
196 To install the VPP packet engine, run the following command:
198 .. code-block:: console
200 $ sudo yum install vpp
202 The *vpp* RPM depends on the *vpp-lib* and *vpp-selinux-policy*
203 RPMs, so they will be installed as well.
207 The *vpp-selinux-policy* will not enable SELinux on the system. It
208 will install a Custom VPP SELinux policy that will be used if SELinux is
211 There are additional packages that are optional. These packages can be
212 combined with the command above and installed all at once, or installed as
215 .. code-block:: console
217 $ sudo yum install vpp-plugins vpp-devel vpp-api-python vpp-api-lua vpp-api-java
222 Once VPP is installed on the system, to run VPP as a systemd service on CentOS,
223 run the following command:
225 .. code-block:: console
227 $ sudo systemctl start vpp
229 Then to enable VPP to start on system reboot, run the following command:
231 .. code-block:: console
233 $ sudo systemctl enable vpp
235 Outside of running VPP as a systemd service, VPP can be started manually or
236 made to run within GDB for debugging. See :ref:`running` for more details and
237 ways to tailor VPP to a specific system.
240 Uninstall the VPP RPMs
241 ======================
243 To uninstall a VPP RPM, run the following command:
245 .. code-block:: console
247 $ sudo yum autoremove vpp*