From e74309c904c0ea46ed397dfc772be112cfce6a8e Mon Sep 17 00:00:00 2001 From: beierlm Date: Tue, 15 Feb 2022 17:01:57 +0000 Subject: [PATCH 1/2] OSM Client Snap Instructions Added instructions for installing the osmclient using snap. --- 03-installing-osm.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/03-installing-osm.md b/03-installing-osm.md index 90d256e..6b0b4ee 100644 --- a/03-installing-osm.md +++ b/03-installing-osm.md @@ -511,6 +511,10 @@ The **OSM Client** is a client library and a command-line tool (based on Python) Although the OSM Client is always available in the host machine after installation, it is sometimes convenient installing an OSM Client in another location, different from the OSM host, so that the access to the OSM services does not require OS-level/SSH credentials. Thus, in those cases where you have an OSM already installed in a remote server, you can still operate it from your local computer using the OSM Client. +There are two methods of installing the OSM client: via a Snap, or a Debian Package. + +### Debian Package Installation + In order to install the OSM Client in your local Linux machine, you should follow this procedure: ```bash @@ -525,6 +529,19 @@ sudo -H python3 -m pip install python-magic pyangbind verboselogs sudo apt-get install python3-osmclient ``` +### Snap Installation + +On systems that support snaps, you can install the OSM client with the following command: + +```bash +sudo snap install osmclient --channel 11.0/stable +``` + +There are tracks available for all releases. Omitting the track will use the latest stable release version. + + +### Usage + Once installed, you can type `osm` to see a list of commands. Since we are installing the OSM Client in a host different from OSM's at a minimum you will need to specify the OSM host, either via an environment variable or via the osm command line. For instance, you can set your client to access an OSM host running at `10.80.80.5` by using: -- GitLab From d364708271b246f1b5517759c71674ebb72a53e4 Mon Sep 17 00:00:00 2001 From: beierlm Date: Wed, 16 Feb 2022 15:37:42 +0000 Subject: [PATCH 2/2] Update 03-installing-osm.md --- 03-installing-osm.md | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/03-installing-osm.md b/03-installing-osm.md index 6b0b4ee..a0d61b5 100644 --- a/03-installing-osm.md +++ b/03-installing-osm.md @@ -513,6 +513,16 @@ Although the OSM Client is always available in the host machine after installati There are two methods of installing the OSM client: via a Snap, or a Debian Package. +### Snap Installation + +On systems that support snaps, you can install the OSM client with the following command: + +```bash +sudo snap install osmclient --channel 11.0/stable +``` + +There are tracks available for all releases. Omitting the channel will use the latest stable release version. + ### Debian Package Installation In order to install the OSM Client in your local Linux machine, you should follow this procedure: @@ -529,17 +539,6 @@ sudo -H python3 -m pip install python-magic pyangbind verboselogs sudo apt-get install python3-osmclient ``` -### Snap Installation - -On systems that support snaps, you can install the OSM client with the following command: - -```bash -sudo snap install osmclient --channel 11.0/stable -``` - -There are tracks available for all releases. Omitting the track will use the latest stable release version. - - ### Usage Once installed, you can type `osm` to see a list of commands. -- GitLab