John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1 | .. _ubuntu: |
| 2 | |
| 3 | .. toctree:: |
| 4 | |
jdenisco | 2cefb06 | 2019-02-19 16:25:05 -0500 | [diff] [blame] | 5 | Ubuntu 18.04 - Setup the FD.io Repository |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [diff] [blame] | 6 | ========================================== |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 7 | |
jdenisco | 569a278 | 2018-11-09 15:20:26 -0500 | [diff] [blame] | 8 | FD.io VPP is installed using Package Cloud. For a complete set of |
| 9 | instructuctions on how to install VPP with package cloud please refer |
| 10 | to `Package Cloud <https://packagecloud.io/fdio/release>`_ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 11 | |
jdenisco | 569a278 | 2018-11-09 15:20:26 -0500 | [diff] [blame] | 12 | Choose one of the following releases to install. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 13 | |
| 14 | Update the OS |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [diff] [blame] | 15 | ----------------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 16 | |
jdenisco | 569a278 | 2018-11-09 15:20:26 -0500 | [diff] [blame] | 17 | It is a good idea to first update and upgrade the OS before starting; run the |
| 18 | following command to update the OS: |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 19 | |
| 20 | .. code-block:: console |
| 21 | |
| 22 | apt-get update |
| 23 | |
| 24 | |
| 25 | Point to the Repository |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [diff] [blame] | 26 | ----------------------------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 27 | |
John DeNisco | ce96dda | 2018-08-14 16:04:09 -0400 | [diff] [blame] | 28 | 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] | 29 | the version needed. The contents needed are shown below. |
| 30 | |
| 31 | .. _install_vpp: |
| 32 | |
| 33 | VPP latest Release |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [diff] [blame] | 34 | ^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 35 | |
John DeNisco | ce96dda | 2018-08-14 16:04:09 -0400 | [diff] [blame] | 36 | 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] | 37 | |
| 38 | .. code-block:: console |
| 39 | |
jdenisco | 2cefb06 | 2019-02-19 16:25:05 -0500 | [diff] [blame] | 40 | deb [trusted=yes] https://packagecloud.io/fdio/release/ubuntu xenial main |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 41 | |
jdenisco | 569a278 | 2018-11-09 15:20:26 -0500 | [diff] [blame] | 42 | Get the key: |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 43 | |
jdenisco | 569a278 | 2018-11-09 15:20:26 -0500 | [diff] [blame] | 44 | .. code-block:: console |
| 45 | |
| 46 | curl -L https://packagecloud.io/fdio/release/gpgkey | sudo apt-key add - |
| 47 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 48 | VPP master Branch |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [diff] [blame] | 49 | ^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 50 | |
John DeNisco | ce96dda | 2018-08-14 16:04:09 -0400 | [diff] [blame] | 51 | 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] | 52 | |
| 53 | .. code-block:: console |
| 54 | |
jdenisco | 2cefb06 | 2019-02-19 16:25:05 -0500 | [diff] [blame] | 55 | deb [trusted=yes] https://packagecloud.io/fdio/master/ubuntu xenial main |
jdenisco | 569a278 | 2018-11-09 15:20:26 -0500 | [diff] [blame] | 56 | |
| 57 | Get the key: |
| 58 | |
| 59 | .. code-block:: console |
| 60 | |
| 61 | curl -L https://packagecloud.io/fdio/master/gpgkey | sudo apt-key add - |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 62 | |
| 63 | |
| 64 | Install the Mandatory Packages |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [diff] [blame] | 65 | =============================== |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 66 | |
John DeNisco | ce96dda | 2018-08-14 16:04:09 -0400 | [diff] [blame] | 67 | Install the mandatory packages by running the following commands: |
| 68 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 69 | .. code-block:: console |
| 70 | |
| 71 | sudo apt-get update |
jdenisco | 2cefb06 | 2019-02-19 16:25:05 -0500 | [diff] [blame] | 72 | sudo apt-get install vpp |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 73 | |
jdenisco | 569a278 | 2018-11-09 15:20:26 -0500 | [diff] [blame] | 74 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 75 | Install the Optional Packages |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [diff] [blame] | 76 | ============================== |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 77 | |
John DeNisco | ce96dda | 2018-08-14 16:04:09 -0400 | [diff] [blame] | 78 | Install the optional packages by running the following command: |
| 79 | |
jdenisco | 2cefb06 | 2019-02-19 16:25:05 -0500 | [diff] [blame] | 80 | For the release packages: |
| 81 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 82 | .. code-block:: console |
| 83 | |
jdenisco | 2cefb06 | 2019-02-19 16:25:05 -0500 | [diff] [blame] | 84 | sudo apt-get install vpp-plugins vpp-api-java vpp-api-lua vpp-api-python vpp-dbg vpp-dev |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 85 | |
jdenisco | 2cefb06 | 2019-02-19 16:25:05 -0500 | [diff] [blame] | 86 | For the master packages: |
| 87 | |
| 88 | .. code-block:: console |
| 89 | |
jdenisco | e869269 | 2019-02-26 09:19:24 -0500 | [diff] [blame^] | 90 | sudo apt-get install vpp-plugin-core vpp-api-python vpp-dbg vpp-dev vpp-plugin-dpdk |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 91 | |
| 92 | Uninstall the Packages |
| 93 | ====================== |
| 94 | |
John DeNisco | ce96dda | 2018-08-14 16:04:09 -0400 | [diff] [blame] | 95 | Uninstall the packages by running the following command: |
| 96 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 97 | .. code-block:: console |
| 98 | |
| 99 | sudo apt-get remove --purge vpp* |