rpm2archive command not found

In this troubleshooting guide we learn how to fix rpm2archive command not found error message

Introduction

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

rpm2archive: command not found

or when using sudo you get the following error message

sudo: rpm2archive: command not found

Solutions to rpm2archive: command not found

How To Fix rpm2archive: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu rpm2archive is provided by rpm2cpio package.

rpm2cpio is:

The RPM Package Manager (RPM) is a command-line driven package management system capable of installing, uninstalling, verifying, querying, and updating computer software packages.

This package contains tool to convert RPM packages to standard CPIO archive.

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

sudo apt-get -y install rpm2cpio

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

You can also use apt command to install rpm2cpio.

sudo apt -y install rpm2cpio

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

sudo aptitude install rpm2cpio

Summary

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