blob: f887597f1bbaf003d6be4db38ccd6f7efb1e359e [file] [log] [blame]
John DeNisco06dcd452018-07-26 12:45:10 -04001.. _ubuntu:
2
3.. toctree::
4
jdenisco569a2782018-11-09 15:20:26 -05005Ubuntu 16.04 - Setup the FD.io Repository
John DeNiscoc64ba6d2018-08-02 15:03:15 -04006==========================================
John DeNisco06dcd452018-07-26 12:45:10 -04007
jdenisco569a2782018-11-09 15:20:26 -05008FD.io VPP is installed using Package Cloud. For a complete set of
9instructuctions on how to install VPP with package cloud please refer
10to `Package Cloud <https://packagecloud.io/fdio/release>`_
John DeNisco06dcd452018-07-26 12:45:10 -040011
jdenisco569a2782018-11-09 15:20:26 -050012Choose one of the following releases to install.
John DeNisco06dcd452018-07-26 12:45:10 -040013
14Update the OS
John DeNiscoc64ba6d2018-08-02 15:03:15 -040015-----------------------
John DeNisco06dcd452018-07-26 12:45:10 -040016
jdenisco569a2782018-11-09 15:20:26 -050017It is a good idea to first update and upgrade the OS before starting; run the
18following command to update the OS:
John DeNisco06dcd452018-07-26 12:45:10 -040019
20.. code-block:: console
21
22 apt-get update
23
24
25Point to the Repository
John DeNiscoc64ba6d2018-08-02 15:03:15 -040026-----------------------------------
John DeNisco06dcd452018-07-26 12:45:10 -040027
John DeNiscoce96dda2018-08-14 16:04:09 -040028Create a file **/etc/apt/sources.list.d/99fd.io.list** with contents that point to
John DeNisco06dcd452018-07-26 12:45:10 -040029the version needed. The contents needed are shown below.
30
31.. _install_vpp:
32
33VPP latest Release
John DeNiscoc64ba6d2018-08-02 15:03:15 -040034^^^^^^^^^^^^^^^^^^^
John DeNisco06dcd452018-07-26 12:45:10 -040035
John DeNiscoce96dda2018-08-14 16:04:09 -040036Create the file **/etc/apt/sources.list.d/99fd.io.list** that contain the following contents:
John DeNisco06dcd452018-07-26 12:45:10 -040037
38.. code-block:: console
39
jdenisco569a2782018-11-09 15:20:26 -050040 deb [trusted=yes] https://packagecloud.io/fdio/release/ubuntu xenial main ./
John DeNisco06dcd452018-07-26 12:45:10 -040041
jdenisco569a2782018-11-09 15:20:26 -050042Get the key:
John DeNisco06dcd452018-07-26 12:45:10 -040043
jdenisco569a2782018-11-09 15:20:26 -050044.. code-block:: console
45
46 curl -L https://packagecloud.io/fdio/release/gpgkey | sudo apt-key add -
47
48VPP 1810 Branch
49^^^^^^^^^^^^^^^^
John DeNisco06dcd452018-07-26 12:45:10 -040050
John DeNiscoce96dda2018-08-14 16:04:09 -040051Create the file **/etc/apt/sources.list.d/99fd.io.list** that contain the following contents:
John DeNisco06dcd452018-07-26 12:45:10 -040052
53.. code-block:: console
54
jdenisco569a2782018-11-09 15:20:26 -050055 deb [trusted=yes] https://packagecloud.io/fdio/1810/ubuntu xenial main ./
56
57Get the key:
58
59.. code-block:: console
60
61 curl -L https://packagecloud.io/fdio/1810/gpgkey | sudo apt-key add -
John DeNisco06dcd452018-07-26 12:45:10 -040062
63
64VPP master Branch
John DeNiscoc64ba6d2018-08-02 15:03:15 -040065^^^^^^^^^^^^^^^^^^^^
John DeNisco06dcd452018-07-26 12:45:10 -040066
John DeNiscoce96dda2018-08-14 16:04:09 -040067Create the file **/etc/apt/sources.list.d/99fd.io.list** that contain the following contents:
John DeNisco06dcd452018-07-26 12:45:10 -040068
69.. code-block:: console
70
jdenisco569a2782018-11-09 15:20:26 -050071 deb [trusted=yes] https://packagecloud.io/fdio/master/ubuntu xenial main ./
72
73Get the key:
74
75.. code-block:: console
76
77 curl -L https://packagecloud.io/fdio/master/gpgkey | sudo apt-key add -
John DeNisco06dcd452018-07-26 12:45:10 -040078
79
80Install the Mandatory Packages
John DeNiscoc64ba6d2018-08-02 15:03:15 -040081===============================
John DeNisco06dcd452018-07-26 12:45:10 -040082
John DeNiscoce96dda2018-08-14 16:04:09 -040083Install the mandatory packages by running the following commands:
84
John DeNisco06dcd452018-07-26 12:45:10 -040085.. code-block:: console
86
87 sudo apt-get update
John DeNiscoc4c72d22018-08-16 13:50:02 -040088 sudo apt-get install vpp-lib vpp vpp-plugins
John DeNisco06dcd452018-07-26 12:45:10 -040089
jdenisco569a2782018-11-09 15:20:26 -050090
John DeNisco06dcd452018-07-26 12:45:10 -040091Install the Optional Packages
John DeNiscoc64ba6d2018-08-02 15:03:15 -040092==============================
John DeNisco06dcd452018-07-26 12:45:10 -040093
John DeNiscoce96dda2018-08-14 16:04:09 -040094Install the optional packages by running the following command:
95
John DeNisco06dcd452018-07-26 12:45:10 -040096.. code-block:: console
97
98 sudo apt-get install vpp-dbg vpp-dev vpp-api-java vpp-api-python vpp-api-lua
99
100
101Uninstall the Packages
102======================
103
John DeNiscoce96dda2018-08-14 16:04:09 -0400104Uninstall the packages by running the following command:
105
John DeNisco06dcd452018-07-26 12:45:10 -0400106.. code-block:: console
107
108 sudo apt-get remove --purge vpp*