blob: 2521b6d279086240cb843a67dbacf5bb9831263e [file] [log] [blame]
John DeNisco06dcd452018-07-26 12:45:10 -04001.. _ubuntu:
2
3.. toctree::
John DeNisco06dcd452018-07-26 12:45:10 -04004
Paul Vinciguerraac9a5852020-04-02 23:50:25 -04005Ubuntu - Setup the FD.io Repository
6===================================
7
8Choose one of the following releases to install.
John DeNisco06dcd452018-07-26 12:45:10 -04009
10Update the OS
John DeNiscoc64ba6d2018-08-02 15:03:15 -040011-----------------------
John DeNisco06dcd452018-07-26 12:45:10 -040012
jdenisco569a2782018-11-09 15:20:26 -050013It is a good idea to first update and upgrade the OS before starting; run the
14following command to update the OS:
John DeNisco06dcd452018-07-26 12:45:10 -040015
16.. code-block:: console
17
18 apt-get update
19
20
21Point to the Repository
John DeNiscoc64ba6d2018-08-02 15:03:15 -040022-----------------------------------
John DeNisco06dcd452018-07-26 12:45:10 -040023
John DeNiscoce96dda2018-08-14 16:04:09 -040024Create a file **/etc/apt/sources.list.d/99fd.io.list** with contents that point to
John DeNisco06dcd452018-07-26 12:45:10 -040025the version needed. The contents needed are shown below.
26
27.. _install_vpp:
28
29VPP latest Release
John DeNiscoc64ba6d2018-08-02 15:03:15 -040030^^^^^^^^^^^^^^^^^^^
John DeNisco06dcd452018-07-26 12:45:10 -040031
John DeNiscoce96dda2018-08-14 16:04:09 -040032Create the file **/etc/apt/sources.list.d/99fd.io.list** that contain the following contents:
John DeNisco06dcd452018-07-26 12:45:10 -040033
34.. code-block:: console
35
jdenisco0da895d2019-05-01 16:30:36 -040036 deb [trusted=yes] https://packagecloud.io/fdio/release/ubuntu bionic main
John DeNisco06dcd452018-07-26 12:45:10 -040037
jdenisco569a2782018-11-09 15:20:26 -050038Get the key:
John DeNisco06dcd452018-07-26 12:45:10 -040039
jdenisco569a2782018-11-09 15:20:26 -050040.. code-block:: console
41
42 curl -L https://packagecloud.io/fdio/release/gpgkey | sudo apt-key add -
43
John DeNisco06dcd452018-07-26 12:45:10 -040044VPP master Branch
John DeNiscoc64ba6d2018-08-02 15:03:15 -040045^^^^^^^^^^^^^^^^^^^^
John DeNisco06dcd452018-07-26 12:45:10 -040046
John DeNiscoce96dda2018-08-14 16:04:09 -040047Create the file **/etc/apt/sources.list.d/99fd.io.list** that contain the following contents:
John DeNisco06dcd452018-07-26 12:45:10 -040048
49.. code-block:: console
50
jdenisco0da895d2019-05-01 16:30:36 -040051 deb [trusted=yes] https://packagecloud.io/fdio/master/ubuntu bionic main
jdenisco569a2782018-11-09 15:20:26 -050052
53Get the key:
54
55.. code-block:: console
56
57 curl -L https://packagecloud.io/fdio/master/gpgkey | sudo apt-key add -
John DeNisco06dcd452018-07-26 12:45:10 -040058
59
60Install the Mandatory Packages
John DeNiscoc64ba6d2018-08-02 15:03:15 -040061===============================
John DeNisco06dcd452018-07-26 12:45:10 -040062
John DeNiscoce96dda2018-08-14 16:04:09 -040063Install the mandatory packages by running the following commands:
64
John DeNisco06dcd452018-07-26 12:45:10 -040065.. code-block:: console
66
67 sudo apt-get update
jdenisco0da895d2019-05-01 16:30:36 -040068 sudo apt-get install vpp vpp-plugin-core vpp-plugin-dpdk
John DeNisco06dcd452018-07-26 12:45:10 -040069
jdenisco569a2782018-11-09 15:20:26 -050070
John DeNisco06dcd452018-07-26 12:45:10 -040071Install the Optional Packages
John DeNiscoc64ba6d2018-08-02 15:03:15 -040072==============================
John DeNisco06dcd452018-07-26 12:45:10 -040073
John DeNiscoce96dda2018-08-14 16:04:09 -040074Install the optional packages by running the following command:
75
John DeNisco06dcd452018-07-26 12:45:10 -040076.. code-block:: console
77
jdenisco0da895d2019-05-01 16:30:36 -040078 sudo apt-get install vpp-api-python python3-vpp-api vpp-dbg vpp-dev
John DeNisco06dcd452018-07-26 12:45:10 -040079
80
81Uninstall the Packages
82======================
83
John DeNiscoce96dda2018-08-14 16:04:09 -040084Uninstall the packages by running the following command:
85
John DeNisco06dcd452018-07-26 12:45:10 -040086.. code-block:: console
87
Paul Vinciguerraac9a5852020-04-02 23:50:25 -040088 sudo apt-get remove --purge "vpp*"