blob: c8a98939e627d5cdf85f189a4a2510b4f49f76fa [file] [log] [blame]
John DeNisco06dcd452018-07-26 12:45:10 -04001.. _ubuntu:
2
3.. toctree::
4
jdenisco2cefb062019-02-19 16:25:05 -05005Ubuntu 18.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
jdenisco2cefb062019-02-19 16:25:05 -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
John DeNisco06dcd452018-07-26 12:45:10 -040048VPP master Branch
John DeNiscoc64ba6d2018-08-02 15:03:15 -040049^^^^^^^^^^^^^^^^^^^^
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
jdenisco2cefb062019-02-19 16:25:05 -050055 deb [trusted=yes] https://packagecloud.io/fdio/master/ubuntu xenial main
jdenisco569a2782018-11-09 15:20:26 -050056
57Get the key:
58
59.. code-block:: console
60
61 curl -L https://packagecloud.io/fdio/master/gpgkey | sudo apt-key add -
John DeNisco06dcd452018-07-26 12:45:10 -040062
63
64Install the Mandatory Packages
John DeNiscoc64ba6d2018-08-02 15:03:15 -040065===============================
John DeNisco06dcd452018-07-26 12:45:10 -040066
John DeNiscoce96dda2018-08-14 16:04:09 -040067Install the mandatory packages by running the following commands:
68
John DeNisco06dcd452018-07-26 12:45:10 -040069.. code-block:: console
70
71 sudo apt-get update
jdenisco2cefb062019-02-19 16:25:05 -050072 sudo apt-get install vpp
John DeNisco06dcd452018-07-26 12:45:10 -040073
jdenisco569a2782018-11-09 15:20:26 -050074
John DeNisco06dcd452018-07-26 12:45:10 -040075Install the Optional Packages
John DeNiscoc64ba6d2018-08-02 15:03:15 -040076==============================
John DeNisco06dcd452018-07-26 12:45:10 -040077
John DeNiscoce96dda2018-08-14 16:04:09 -040078Install the optional packages by running the following command:
79
jdenisco2cefb062019-02-19 16:25:05 -050080For the release packages:
81
John DeNisco06dcd452018-07-26 12:45:10 -040082.. code-block:: console
83
jdenisco2cefb062019-02-19 16:25:05 -050084 sudo apt-get install vpp-plugins vpp-api-java vpp-api-lua vpp-api-python vpp-dbg vpp-dev
John DeNisco06dcd452018-07-26 12:45:10 -040085
jdenisco2cefb062019-02-19 16:25:05 -050086For the master packages:
87
88.. code-block:: console
89
90 sudo apt-get install vpp-plugin-core vpp-ext-deps vpp-api-python vpp-dbg vpp-dev vpp-plugin-dpdk
John DeNisco06dcd452018-07-26 12:45:10 -040091
92Uninstall the Packages
93======================
94
John DeNiscoce96dda2018-08-14 16:04:09 -040095Uninstall the packages by running the following command:
96
John DeNisco06dcd452018-07-26 12:45:10 -040097.. code-block:: console
98
99 sudo apt-get remove --purge vpp*