randomplay command not found

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

Introduction

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

randomplay: command not found

or when using sudo you get the following error message

sudo: randomplay: command not found

Solutions to randomplay: command not found

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

In Ubuntu randomplay is provided by randomplay package.

randomplay is:

Randomplay plays your music collection (or execute any arbitrary commands on any arbitrary filetypes) in random order, remembering songs played across sessions. It also has many features to make command-line music playing more convenient, including recursive regexp searching for tracks and the ability to specify a certain number of tracks, bytes, or minutes to play. Randomplay will also generate a list of music files to be loaded onto a portable music player device. It includes a ‘random weighting’ feature, so your favorite songs are more likely to come up in the random shuffle.

Randomplay is a convenient tool for the user who does everything in an xterm window or console and is constantly devising complex find/grep/sed command lines to play just the right set of songs.

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

sudo apt-get -y install randomplay

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

You can also use apt command to install randomplay.

sudo apt -y install randomplay

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

sudo aptitude install randomplay

Summary

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