Install Shred On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

Install Shred On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

shred

Overwrite files to securely delete data.

Maintainer: Michael Stone



Section: utils

Install shred

  • Debian apt-get install coreutils Click to copy
  • Ubuntu apt-get install coreutils Click to copy
  • Alpine OS apk add coreutils Click to copy
  • Arch Linux pacman -S coreutils Click to copy
  • Kali Linux apt-get install coreutils Click to copy
  • CentOS yum install coreutils Click to copy
  • Fedora dnf install coreutils Click to copy
  • Raspbian apt-get install coreutils Click to copy
  • macOS brew install coreutils Click to copy

Overwrite files to securely delete data.

How to use shred?

Below are few example commands for shred that you can use in the terminal.

Overwrite a file:
shred fileClick to copy
Overwrite a file, leaving zeroes instead of random data:
shred --zero fileClick to copy
Overwrite a file 25 times:
shred -n25 fileClick to copy
Overwrite a file and remove it:
shred --remove fileClick to copy
Installing shred command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS operating systems. Once you run the command it will install the latest version of shred 2026 package in your OS.