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 |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [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 |
| 14 | following command to update the OS: |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 15 | |
| 16 | .. code-block:: console |
| 17 | |
| 18 | apt-get update |
| 19 | |
| 20 | |
| 21 | Point to the Repository |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [diff] [blame] | 22 | ----------------------------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 23 | |
John DeNisco | ce96dda | 2018-08-14 16:04:09 -0400 | [diff] [blame] | 24 | Create a file **/etc/apt/sources.list.d/99fd.io.list** with contents that point to |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 25 | the version needed. The contents needed are shown below. |
| 26 | |
| 27 | .. _install_vpp: |
| 28 | |
| 29 | VPP latest Release |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [diff] [blame] | 30 | ^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 31 | |
John DeNisco | ce96dda | 2018-08-14 16:04:09 -0400 | [diff] [blame] | 32 | Create the file **/etc/apt/sources.list.d/99fd.io.list** that contain the following contents: |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 33 | |
| 34 | .. code-block:: console |
| 35 | |
jdenisco | 0da895d | 2019-05-01 16:30:36 -0400 | [diff] [blame] | 36 | deb [trusted=yes] https://packagecloud.io/fdio/release/ubuntu bionic main |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 37 | |
jdenisco | 569a278 | 2018-11-09 15:20:26 -0500 | [diff] [blame] | 38 | Get the key: |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 39 | |
jdenisco | 569a278 | 2018-11-09 15:20:26 -0500 | [diff] [blame] | 40 | .. code-block:: console |
| 41 | |
| 42 | curl -L https://packagecloud.io/fdio/release/gpgkey | sudo apt-key add - |
| 43 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 44 | VPP master Branch |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [diff] [blame] | 45 | ^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 46 | |
John DeNisco | ce96dda | 2018-08-14 16:04:09 -0400 | [diff] [blame] | 47 | Create the file **/etc/apt/sources.list.d/99fd.io.list** that contain the following contents: |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 48 | |
| 49 | .. code-block:: console |
| 50 | |
jdenisco | 0da895d | 2019-05-01 16:30:36 -0400 | [diff] [blame] | 51 | deb [trusted=yes] https://packagecloud.io/fdio/master/ubuntu bionic main |
jdenisco | 569a278 | 2018-11-09 15:20:26 -0500 | [diff] [blame] | 52 | |
| 53 | Get the key: |
| 54 | |
| 55 | .. code-block:: console |
| 56 | |
| 57 | curl -L https://packagecloud.io/fdio/master/gpgkey | sudo apt-key add - |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 58 | |
| 59 | |
| 60 | Install the Mandatory Packages |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [diff] [blame] | 61 | =============================== |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 62 | |
John DeNisco | ce96dda | 2018-08-14 16:04:09 -0400 | [diff] [blame] | 63 | Install the mandatory packages by running the following commands: |
| 64 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 65 | .. code-block:: console |
| 66 | |
| 67 | sudo apt-get update |
jdenisco | 0da895d | 2019-05-01 16:30:36 -0400 | [diff] [blame] | 68 | sudo apt-get install vpp vpp-plugin-core vpp-plugin-dpdk |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 69 | |
jdenisco | 569a278 | 2018-11-09 15:20:26 -0500 | [diff] [blame] | 70 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 71 | Install the Optional Packages |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [diff] [blame] | 72 | ============================== |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 73 | |
John DeNisco | ce96dda | 2018-08-14 16:04:09 -0400 | [diff] [blame] | 74 | Install the optional packages by running the following command: |
| 75 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 76 | .. code-block:: console |
| 77 | |
jdenisco | 0da895d | 2019-05-01 16:30:36 -0400 | [diff] [blame] | 78 | 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] | 79 | |
| 80 | |
| 81 | Uninstall the Packages |
| 82 | ====================== |
| 83 | |
John DeNisco | ce96dda | 2018-08-14 16:04:09 -0400 | [diff] [blame] | 84 | Uninstall the packages by running the following command: |
| 85 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 86 | .. code-block:: console |
| 87 | |
Paul Vinciguerra | ac9a585 | 2020-04-02 23:50:25 -0400 | [diff] [blame] | 88 | sudo apt-get remove --purge "vpp*" |