blob: 1022e0c3ff1b90060852c058461f063e35f24df0 [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
fatelei320272a2022-06-08 12:28:23 +080011-------------
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
fatelei320272a2022-06-08 12:28:23 +080014following commands to upgrade the OS and install the curl package to download
15the setup script from packagecloud.io:
John DeNisco06dcd452018-07-26 12:45:10 -040016
17.. code-block:: console
18
fatelei320272a2022-06-08 12:28:23 +080019 sudo apt-get update
20 sudo apt-get dist-upgrade -y
21 sudo apt-get install curl
John DeNisco06dcd452018-07-26 12:45:10 -040022
fatelei320272a2022-06-08 12:28:23 +080023Configure Apt Using the Packagecloud Setup Script
24-------------------------------------------------
John DeNisco06dcd452018-07-26 12:45:10 -040025
fatelei320272a2022-06-08 12:28:23 +080026FD.io Packagecloud Repositories provides pop-up menu that provides the
27ability to copy a one-line bash command to fetch the packagecloud setup script.
28In general, start at the FD.io packagecloud URL:
John DeNisco06dcd452018-07-26 12:45:10 -040029
fatelei320272a2022-06-08 12:28:23 +080030https://packagecloud.io/fdio
31
32Then choose the desired repository link (e.g. 'release') and select the "Debian"
33package icon in the section named "Quick install instructions". When the pop-up
34dialog appears, select the "Copy" button to copy the command to run the setup
35script and paste it into a terminal on your server.
36
John DeNisco06dcd452018-07-26 12:45:10 -040037
38.. _install_vpp:
39
fatelei320272a2022-06-08 12:28:23 +080040VPP Release Repo
John DeNiscoc64ba6d2018-08-02 15:03:15 -040041^^^^^^^^^^^^^^^^^^^
John DeNisco06dcd452018-07-26 12:45:10 -040042
fatelei320272a2022-06-08 12:28:23 +080043The URL to install the latest VPP release is
John DeNisco06dcd452018-07-26 12:45:10 -040044
fatelei320272a2022-06-08 12:28:23 +080045https://packagecloud.io/fdio/release
John DeNisco06dcd452018-07-26 12:45:10 -040046
John DeNisco06dcd452018-07-26 12:45:10 -040047
fatelei320272a2022-06-08 12:28:23 +080048VPP master Branch Repo
49^^^^^^^^^^^^^^^^^^^^^^
50The URL to install the latest VPP release is
John DeNisco06dcd452018-07-26 12:45:10 -040051
fatelei320272a2022-06-08 12:28:23 +080052https://packagecloud.io/fdio/release
jdenisco569a2782018-11-09 15:20:26 -050053
jdenisco569a2782018-11-09 15:20:26 -050054
fatelei320272a2022-06-08 12:28:23 +080055VPP stable release Branch Repo
56^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
John DeNisco06dcd452018-07-26 12:45:10 -040057
fatelei320272a2022-06-08 12:28:23 +080058Stable release branches are named "stable/YYMM" (e.g. stable/2206) and the associated
59packagecloud repositories are named "YYMM" (e.g 2206). For example, the URL to
60the VPP 22.06 stable release branch package repository is:
John DeNisco06dcd452018-07-26 12:45:10 -040061
fatelei320272a2022-06-08 12:28:23 +080062https://packagecloud.io/fdio/2206
John DeNisco06dcd452018-07-26 12:45:10 -040063
64
65Install the Mandatory Packages
John DeNiscoc64ba6d2018-08-02 15:03:15 -040066===============================
John DeNisco06dcd452018-07-26 12:45:10 -040067
John DeNiscoce96dda2018-08-14 16:04:09 -040068Install the mandatory packages by running the following commands:
69
John DeNisco06dcd452018-07-26 12:45:10 -040070.. code-block:: console
71
72 sudo apt-get update
jdenisco0da895d2019-05-01 16:30:36 -040073 sudo apt-get install vpp vpp-plugin-core vpp-plugin-dpdk
John DeNisco06dcd452018-07-26 12:45:10 -040074
Nathan Skrzypczak9ad39c02021-08-19 11:38:06 +020075
John DeNisco06dcd452018-07-26 12:45:10 -040076Install the Optional Packages
John DeNiscoc64ba6d2018-08-02 15:03:15 -040077==============================
John DeNisco06dcd452018-07-26 12:45:10 -040078
John DeNiscoce96dda2018-08-14 16:04:09 -040079Install the optional packages by running the following command:
80
John DeNisco06dcd452018-07-26 12:45:10 -040081.. code-block:: console
82
jdenisco0da895d2019-05-01 16:30:36 -040083 sudo apt-get install vpp-api-python python3-vpp-api vpp-dbg vpp-dev
John DeNisco06dcd452018-07-26 12:45:10 -040084
85
86Uninstall the Packages
87======================
88
John DeNiscoce96dda2018-08-14 16:04:09 -040089Uninstall the packages by running the following command:
90
John DeNisco06dcd452018-07-26 12:45:10 -040091.. code-block:: console
92
Paul Vinciguerraac9a5852020-04-02 23:50:25 -040093 sudo apt-get remove --purge "vpp*"
fatelei320272a2022-06-08 12:28:23 +080094
95
96Remove FD.io Apt source lists
97=============================
98
99Remove FD.io Apt source list files created by the packagecloud apt setup script
100by running the following command:
101
102.. code-block:: console
103
104 sudo rm /etc/apt/sources.list.d/fdio*.list