s3rm command not found

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

Introduction

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

s3rm: command not found

or when using sudo you get the following error message

sudo: s3rm: command not found

Solutions to s3rm: command not found

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

In Ubuntu s3rm is provided by libnet-amazon-s3-tools-perl package.

libnet-amazon-s3-tools-perl is:

These S3 command line tools allow you to manipulate and populate an S3 account. Refer to the documentation (pod and man) for each of the tools.

This Net::Amazon::S3::Tools module is mostly just a stub, to hoist the bundling and installation of the executable scripts that make up the actual tools.

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

sudo apt-get -y install libnet-amazon-s3-tools-perl

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

You can also use apt command to install libnet-amazon-s3-tools-perl.

sudo apt -y install libnet-amazon-s3-tools-perl

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

sudo aptitude install libnet-amazon-s3-tools-perl

Summary

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