John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1 | .. _ubuntu: |
| 2 | |
| 3 | .. toctree:: |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 4 | |
Paul Vinciguerra | ac9a585 | 2020-04-02 23:50:25 -0400 | [diff] [blame] | 5 | Ubuntu - Setup the FD.io Repository |
| 6 | =================================== |
| 7 | |
| 8 | Choose one of the following releases to install. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 9 | |
| 10 | Update the OS |
fatelei | 320272a | 2022-06-08 12:28:23 +0800 | [diff] [blame] | 11 | ------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 12 | |
jdenisco | 569a278 | 2018-11-09 15:20:26 -0500 | [diff] [blame] | 13 | It is a good idea to first update and upgrade the OS before starting; run the |
fatelei | 320272a | 2022-06-08 12:28:23 +0800 | [diff] [blame] | 14 | following commands to upgrade the OS and install the curl package to download |
| 15 | the setup script from packagecloud.io: |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 16 | |
| 17 | .. code-block:: console |
| 18 | |
fatelei | 320272a | 2022-06-08 12:28:23 +0800 | [diff] [blame] | 19 | sudo apt-get update |
| 20 | sudo apt-get dist-upgrade -y |
| 21 | sudo apt-get install curl |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 22 | |
fatelei | 320272a | 2022-06-08 12:28:23 +0800 | [diff] [blame] | 23 | Configure Apt Using the Packagecloud Setup Script |
| 24 | ------------------------------------------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 25 | |
fatelei | 320272a | 2022-06-08 12:28:23 +0800 | [diff] [blame] | 26 | FD.io Packagecloud Repositories provides pop-up menu that provides the |
| 27 | ability to copy a one-line bash command to fetch the packagecloud setup script. |
| 28 | In general, start at the FD.io packagecloud URL: |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 29 | |
fatelei | 320272a | 2022-06-08 12:28:23 +0800 | [diff] [blame] | 30 | https://packagecloud.io/fdio |
| 31 | |
| 32 | Then choose the desired repository link (e.g. 'release') and select the "Debian" |
| 33 | package icon in the section named "Quick install instructions". When the pop-up |
| 34 | dialog appears, select the "Copy" button to copy the command to run the setup |
| 35 | script and paste it into a terminal on your server. |
| 36 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 37 | |
| 38 | .. _install_vpp: |
| 39 | |
fatelei | 320272a | 2022-06-08 12:28:23 +0800 | [diff] [blame] | 40 | VPP Release Repo |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [diff] [blame] | 41 | ^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 42 | |
fatelei | 320272a | 2022-06-08 12:28:23 +0800 | [diff] [blame] | 43 | The URL to install the latest VPP release is |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 44 | |
fatelei | 320272a | 2022-06-08 12:28:23 +0800 | [diff] [blame] | 45 | https://packagecloud.io/fdio/release |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 46 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 47 | |
fatelei | 320272a | 2022-06-08 12:28:23 +0800 | [diff] [blame] | 48 | VPP master Branch Repo |
| 49 | ^^^^^^^^^^^^^^^^^^^^^^ |
| 50 | The URL to install the latest VPP release is |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 51 | |
fatelei | 320272a | 2022-06-08 12:28:23 +0800 | [diff] [blame] | 52 | https://packagecloud.io/fdio/release |
jdenisco | 569a278 | 2018-11-09 15:20:26 -0500 | [diff] [blame] | 53 | |
jdenisco | 569a278 | 2018-11-09 15:20:26 -0500 | [diff] [blame] | 54 | |
fatelei | 320272a | 2022-06-08 12:28:23 +0800 | [diff] [blame] | 55 | VPP stable release Branch Repo |
| 56 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 57 | |
fatelei | 320272a | 2022-06-08 12:28:23 +0800 | [diff] [blame] | 58 | Stable release branches are named "stable/YYMM" (e.g. stable/2206) and the associated |
| 59 | packagecloud repositories are named "YYMM" (e.g 2206). For example, the URL to |
| 60 | the VPP 22.06 stable release branch package repository is: |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 61 | |
fatelei | 320272a | 2022-06-08 12:28:23 +0800 | [diff] [blame] | 62 | https://packagecloud.io/fdio/2206 |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 63 | |
| 64 | |
| 65 | Install the Mandatory Packages |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [diff] [blame] | 66 | =============================== |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 67 | |
John DeNisco | ce96dda | 2018-08-14 16:04:09 -0400 | [diff] [blame] | 68 | Install the mandatory packages by running the following commands: |
| 69 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 70 | .. code-block:: console |
| 71 | |
| 72 | sudo apt-get update |
jdenisco | 0da895d | 2019-05-01 16:30:36 -0400 | [diff] [blame] | 73 | sudo apt-get install vpp vpp-plugin-core vpp-plugin-dpdk |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 74 | |
Nathan Skrzypczak | 9ad39c0 | 2021-08-19 11:38:06 +0200 | [diff] [blame] | 75 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 76 | Install the Optional Packages |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [diff] [blame] | 77 | ============================== |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 78 | |
John DeNisco | ce96dda | 2018-08-14 16:04:09 -0400 | [diff] [blame] | 79 | Install the optional packages by running the following command: |
| 80 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 81 | .. code-block:: console |
| 82 | |
jdenisco | 0da895d | 2019-05-01 16:30:36 -0400 | [diff] [blame] | 83 | sudo apt-get install vpp-api-python python3-vpp-api vpp-dbg vpp-dev |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 84 | |
| 85 | |
| 86 | Uninstall the Packages |
| 87 | ====================== |
| 88 | |
John DeNisco | ce96dda | 2018-08-14 16:04:09 -0400 | [diff] [blame] | 89 | Uninstall the packages by running the following command: |
| 90 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 91 | .. code-block:: console |
| 92 | |
Paul Vinciguerra | ac9a585 | 2020-04-02 23:50:25 -0400 | [diff] [blame] | 93 | sudo apt-get remove --purge "vpp*" |
fatelei | 320272a | 2022-06-08 12:28:23 +0800 | [diff] [blame] | 94 | |
| 95 | |
| 96 | Remove FD.io Apt source lists |
| 97 | ============================= |
| 98 | |
| 99 | Remove FD.io Apt source list files created by the packagecloud apt setup script |
| 100 | by running the following command: |
| 101 | |
| 102 | .. code-block:: console |
| 103 | |
| 104 | sudo rm /etc/apt/sources.list.d/fdio*.list |