appstreamcli command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
appstreamcli: command not found
or when using sudo you get the following error message
sudo: appstreamcli: command not found
Solutions to appstreamcli: command not found
How To Fix appstreamcli: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu appstreamcli is provided by appstream package.
appstream is:
AppStream is a metadata specification which permits software components to provide information about themselves to automated systems and end-users before the software is actually installed. The AppStream project provides facilities to easily access and transform this metadata, as well as a few additional services to allow building feature-rich software centers and similar applications.
This package provides tools to generate, maintain and query the AppStream data pool of installed and available software, and enables integration with the APT package manager.
The ‘appstreamcli’ tool can be used for accessing the software component pool as well as for working with AppStream metadata directly, including validating it for compliance with the specification.
To fix this problem, we can install more using the command below.
sudo apt-get -y install appstream
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install appstream.
sudo apt -y install appstream
Or if you have aptitude installed you can use the following command.
sudo aptitude install appstream
Summary
In this tutorial we learn how to fix appstreamcli command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.