diff --git a/docs/install/newt_linux.rst b/docs/install/newt_linux.rst index 57f733bc5..93a98ad97 100644 --- a/docs/install/newt_linux.rst +++ b/docs/install/newt_linux.rst @@ -1,108 +1,40 @@ Installing Newt on Linux ------------------------ -You can install the latest release (1.5.0) of the newt tool from a Debian binary package (amd64). You can also download +You can install the latest release (1.8.0) of the newt tool by downloading and installing a binary executable (amd64). You can also download and build the latest release version of newt from source. This page shows you how to: -1. Set up your computer to download Debian binary packages from the JuulLabs-OSS APT repository. +1. Install the latest release version of newt by manually downloading and installing the binary executable. - **Note:** The key for signing the repository has changed. If you set up your computer before release 1.1.0, you will - need to download and import the public key again. +2. Download, build, and install the latest release version of newt from source. -2. Install the latest release version of newt from a Debian binary package. You can use apt-get to install the package - or manually download and install the Debian binary package. - -3. Download, build, and install the latest release version of newt from source. - -If you are installing on an amd64 platform, we recommend that you install from the binary package. +If you are installing on an amd64 platform, we recommend that you install the binary executable. See :doc:`prev_releases` to install an earlier version of newt. -**Note:** We have tested the newt tool binary and apt-get install from the JuulLabs-OSS APT repository for Ubuntu version -1704. Earlier Ubuntu versions (for example: Ubuntu 14) may have incompatibility with the repository. You can manually -download and install the Debian binary package. - **Note:** See :doc:`../../misc/go_env` if you want to: - Use the newt tool with the latest updates from the master branch. The master branch may be unstable and we recommend that you use the latest stable release version. - Contribute to the newt tool. -Setting Up Your Computer to use apt-get to Install the Package +Installing the Latest Release of Newt ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -The newt Debian packages are stored in a private APT repository on **https://github.com/JuulLabs-OSS/debian-mynewt**. -To use apt-get, you must set up the following on your computer to retrieve packages from the repository: - -**Note**: You only need to perform this setup once on your computer. However, if you previously downloaded and imported -the public key for the JuulLabs-OSS APT repository, you will need to perform step 2 again as the key has changed. - -1. Download the public key for the JuulLabs-OSS APT repository and import the key into the apt keychain. -2. Add the repository for the binary and source packages to the apt source list. - -Download the public key for the JuulLabs-OSS apt repo (**Note:** There is a ``-`` after ``apt-key add``): - -.. code-block:: console - - $ wget -qO - https://raw.githubusercontent.com/JuulLabs-OSS/debian-mynewt/master/mynewt.gpg.key | sudo apt-key add - - -Add the repository for the binary and source packages to the ``mynewt.list`` apt source list file: - -.. code-block:: console - - $ sudo tee /etc/apt/sources.list.d/mynewt.list <] For help on . If not specified, print this message. - + Available Commands: + apropos Search manual page names and descriptions build Build one or more targets clean Delete build artifacts for one or more targets create-image Add image header to target binary debug Open debugger session to target + docs Project documentation generation commands help Help about any command info Show project info - install Install project dependencies load Load built target to board + man Browse the man-page for given argument + man-build Build man pages mfg Manufacturing flash image commands new Create a new project pkg Create and manage packages in the current workspace - resign-image Re-sign an image. + resign-image Obsolete run build/create-image/download/debug size Size of target components - sync Synchronize project dependencies target Commands to create, delete, configure, and query targets test Executes unit tests for one or more packages upgrade Upgrade project dependencies vals Display valid values for the specified element type(s) version Display the Newt version number - + Flags: + --escape Apply Windows escapes to shell commands -h, --help Help for newt commands - -j, --jobs int Number of concurrent build jobs (default 4) + -j, --jobs int Number of concurrent build jobs (default 8) -l, --loglevel string Log level (default "WARN") -o, --outfile string Filename to tee output to -q, --quiet Be quiet; only display error output -s, --silent Be silent; don't output anything -v, --verbose Enable verbose output when executing commands - + Use "newt [command] --help" for more information about a command.