John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1 | .. _ubuntu: |
| 2 | |
| 3 | .. toctree:: |
| 4 | |
jdenisco | 569a278 | 2018-11-09 15:20:26 -0500 | [diff] [blame] | 5 | Ubuntu 16.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 | 569a278 | 2018-11-09 15:20:26 -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 | |
| 48 | VPP 1810 Branch |
| 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 | 569a278 | 2018-11-09 15:20:26 -0500 | [diff] [blame] | 55 | deb [trusted=yes] https://packagecloud.io/fdio/1810/ubuntu xenial main ./ |
| 56 | |
| 57 | Get the key: |
| 58 | |
| 59 | .. code-block:: console |
| 60 | |
| 61 | curl -L https://packagecloud.io/fdio/1810/gpgkey | sudo apt-key add - |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 62 | |
| 63 | |
| 64 | VPP master Branch |
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 | 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] | 68 | |
| 69 | .. code-block:: console |
| 70 | |
jdenisco | 569a278 | 2018-11-09 15:20:26 -0500 | [diff] [blame] | 71 | deb [trusted=yes] https://packagecloud.io/fdio/master/ubuntu xenial main ./ |
| 72 | |
| 73 | Get the key: |
| 74 | |
| 75 | .. code-block:: console |
| 76 | |
| 77 | curl -L https://packagecloud.io/fdio/master/gpgkey | sudo apt-key add - |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 78 | |
| 79 | |
| 80 | Install the Mandatory Packages |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [diff] [blame] | 81 | =============================== |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 82 | |
John DeNisco | ce96dda | 2018-08-14 16:04:09 -0400 | [diff] [blame] | 83 | Install the mandatory packages by running the following commands: |
| 84 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 85 | .. code-block:: console |
| 86 | |
| 87 | sudo apt-get update |
John DeNisco | c4c72d2 | 2018-08-16 13:50:02 -0400 | [diff] [blame] | 88 | sudo apt-get install vpp-lib vpp vpp-plugins |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 89 | |
jdenisco | 569a278 | 2018-11-09 15:20:26 -0500 | [diff] [blame] | 90 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 91 | Install the Optional Packages |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [diff] [blame] | 92 | ============================== |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 93 | |
John DeNisco | ce96dda | 2018-08-14 16:04:09 -0400 | [diff] [blame] | 94 | Install the optional packages by running the following command: |
| 95 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 96 | .. code-block:: console |
| 97 | |
| 98 | sudo apt-get install vpp-dbg vpp-dev vpp-api-java vpp-api-python vpp-api-lua |
| 99 | |
| 100 | |
| 101 | Uninstall the Packages |
| 102 | ====================== |
| 103 | |
John DeNisco | ce96dda | 2018-08-14 16:04:09 -0400 | [diff] [blame] | 104 | Uninstall the packages by running the following command: |
| 105 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 106 | .. code-block:: console |
| 107 | |
| 108 | sudo apt-get remove --purge vpp* |