rofi command not found

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

Introduction

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

rofi: command not found

or when using sudo you get the following error message

sudo: rofi: command not found

Solutions to rofi: command not found

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

In Ubuntu rofi is provided by rofi package.

rofi is:

rofi can act as an application launcher, window switcher, ssh launcher and dmenu replacement.

Included features:

  • Full (configurable) keyboard navigation
  • Type to filter
    • Tokenized: Type any word in any order to filter
    • Case insensitive
  • UTF-8 enabled
    • UTF-8 aware string collating
    • intl. keyboard support (`e -> è)
  • Pango font rendering
  • RTL language support
  • Window Switcher
    • I3 support (requires i3-wm to be installed)
    • EWMH compatible WM
  • Run dialog
  • Desktop File Run dialog
  • SSH launcher
  • History based ordering based on use. (optional)
  • Levenshtein distance ordering of matches. (optional)
  • Drop in dmenu replacement (with many added improvements).
  • Can be easily extended using scripts.

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

sudo apt-get -y install rofi

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

You can also use apt command to install rofi.

sudo apt -y install rofi

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

sudo aptitude install rofi

Summary

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