How To Install Safe-rm On Debian, Ubuntu, Kali, Raspbian And MacOS?

How To Install Safe-rm On Debian, Ubuntu, Kali, Raspbian And MacOS?

safe-rm

wrapper around the rm command to prevent accidental deletions

Maintainer: Francois Marier



Section: utils

Install safe-rm

  • Debian apt-get install safe-rm Click to copy
  • Ubuntu apt-get install safe-rm Click to copy
  • Kali Linux apt-get install safe-rm Click to copy
  • Raspbian apt-get install safe-rm Click to copy
  • macOS brew install safe-rm Click to copy

safe-rm

wrapper around the rm command to prevent accidental deletions

This package provides a tool intended to prevent the accidental deletion of important files by replacing rm with a wrapper, which checks the given arguments against a configurable blacklist of files and directories that should never be removed. Users who attempt to delete one of these protected files or directories will not be able to do so and will be shown a warning message instead. Protected paths can be set both at the site and user levels.

To install the latest version of safe-rm in your favorite operating system just copy the safe-rm installation command from above and paste it into terminal. It will download and install the latest version of safe-rm 2026 package in your OS.