Commit bcc1fdb1 authored by Mark Beierl's avatar Mark Beierl
Browse files

OSM Client Snap Instructions

parent fdb37b1c
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -511,6 +511,20 @@ 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.

### 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:

```bash
@@ -525,6 +539,8 @@ sudo -H python3 -m pip install python-magic pyangbind verboselogs
sudo apt-get install python3-osmclient
```

### 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: