pycsw-admin command not found

In this troubleshooting guide we learn how to fix pycsw-admin command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

pycsw-admin: command not found

or when using sudo you get the following error message

sudo: pycsw-admin: command not found

Solutions to pycsw-admin: command not found

How To Fix pycsw-admin: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pycsw-admin is provided by pycsw package.

pycsw is:

pycsw is an OGC CSW server implementation written in Python. pycsw fully implements the OpenGIS Catalogue Service Implementation Specification (Catalogue Service for the Web). Initial development started in 2010 (more formally announced in 2011). The project is certified OGC Compliant, and is an OGC Reference Implementation. Since 2015, pycsw is an official OSGeo Project. pycsw allows for the publishing and discovery of geospatial metadata via numerous APIs (CSW 2/CSW 3, OpenSearch, OAI-PMH, SRU). Existing repositories of geospatial metadata can also be exposed, providing a standards-based metadata and catalogue component of spatial data infrastructures. pycsw is Open Source, released under an MIT license, and runs on all major platforms (Windows, Linux, Mac OS X).

This package contains the pycsw-admin utility and configuration files.

To fix this problem, we can install more using the command below.

sudo apt-get -y install pycsw

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install pycsw.

sudo apt -y install pycsw

Or if you have aptitude installed you can use the following command.

sudo aptitude install pycsw

Summary

In this tutorial we learn how to fix pycsw-admin command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.