How To Install Eject In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

How To Install Eject In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

eject

Eject cds, floppy disks and tape drives.

Maintainer: Frank Lichtenheld



Section: utils

Install eject

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

Eject cds, floppy disks and tape drives.

How to use eject?

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

Display the default device:
eject -dClick to copy
Eject the default device:
ejectClick to copy
Eject a specific device (the default order is cd-rom, scsi, floppy and tape):
eject /dev/cdromClick to copy
Toggle whether a device's tray is open or closed:
eject -T /dev/cdromClick to copy
Eject a cd drive:
eject -r /dev/cdromClick to copy
Eject a floppy drive:
eject -f /mnt/floppyClick to copy
Eject a tape drive:
eject -q /mnt/tapeClick to copy
Installing eject 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 eject 2026 package in your OS.