---
title: Install fortune on Linux | Snap Store
description: Get the latest version of fortune for Linux - Display a random fortune
url: https://snapcraft.io/fortune-cm
---

# fortune (fortune-cm)

[Claudio Matsuoka (cmatsuoka)](https://snapcraft.io/publisher/cmatsuoka "View all snaps from Claudio Matsuoka (cmatsuoka)")

* [Claudio Matsuoka (cmatsuoka)](https://snapcraft.io/publisher/cmatsuoka "View all snaps from Claudio Matsuoka (cmatsuoka)")

latest/stable 3.20.0

Install latest/stable of fortune

This channel hasn't been updated in a while. It might be unmaintained and have stability or security issues.

---

**Install using the command line**

```
sudo snap install fortune-cm
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* fortune-cm

---

### License

* BSD-4-Clause

---

### Last updated

* 11 September 2023 - latest/stable
* 8 January 2026 - latest/edge

---

### Contact

* [cmatsuoka+snapstore@gmail.com](mailto:cmatsuoka+snapstore@gmail.com "mailto:cmatsuoka+snapstore@gmail.com")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/fortune-cm#report-snap-modal)

---

* [Description](https://snapcraft.io/fortune-cm#tab-description)
* [Security](https://snapcraft.io/fortune-cm#tab-security)

#### Display a random fortune

*fortune* is a command-line utility which displays a random quotation from a
collection of quotes. This collection is read from the local file system and
does not require network access.

This is a build of fortune-mod from from <https://github.com/shlomif/fortune-mod>.
It includes both inoffensive and offensive fortune databases, but the latter
will only be accessed when the **-o** parameter is specified.

Available parameters are:

* **-a**: Choose from all lists of maxims, both offensive and not. (See the **-o** option for more information on offensive fortunes.)
* **-c**: Show the cookie file from which the fortune came.
* **-e**: Consider all fortune files to be of equal size (see discussion below on multiple files).
* **-f**: Print out the list of files which would be searched, but don't print a fortune.
* **-l**: Long dictums only. See **-n** on how "long" is defined in this sense.
* **-m *pattern***: Print out all fortunes which match the basic regular expression pattern.
* **-n *length***: Set the longest fortune length (in characters) considered to be "short" (the default is 160). All fortunes longer than this are considered "long".
* **-o**: Choose only from potentially offensive aphorisms. The **-o** option is ignored if a fortune directory is specified.
* **-s**: Short apothegms only. See **-n** on which fortunes are considered "short".
* **-i**: Ignore case for **-m** patterns.
* **-w**: Wait before termination for an amount of time calculated from the number of characters in the message.

The user may specify alternate sayings. You can specify a specific file, a directory which contains one or more files, or the special word all which says to use all the standard databases. Any of these may be preceded by a percentage, which is a number n between 0 and 100 inclusive, followed by a **%**. If it is, there will be a n percent probability that an adage will be picked from that file or directory. If the percentages do not sum to 100, and there are specifications without percentages, the remaining percent will apply to those files and/or directories, in which case the probability of selecting from one of them will be based on their relative sizes.

Snap packaging files: <https://github.com/cmatsuoka/fortune-snap>

---

## Install fortune on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the [installing snapd documentation](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/fortune-cm/arch)

[### CentOS](https://snapcraft.io/install/fortune-cm/centos)

[### Debian](https://snapcraft.io/install/fortune-cm/debian)

[### elementary OS](https://snapcraft.io/install/fortune-cm/elementary)

[### Fedora](https://snapcraft.io/install/fortune-cm/fedora)

[### KDE Neon](https://snapcraft.io/install/fortune-cm/kde-neon)

[### Kubuntu](https://snapcraft.io/install/fortune-cm/kubuntu)

[### Manjaro](https://snapcraft.io/install/fortune-cm/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/fortune-cm/pop)

[### openSUSE](https://snapcraft.io/install/fortune-cm/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/fortune-cm/rhel)

[### Ubuntu](https://snapcraft.io/install/fortune-cm/ubuntu)

[### Raspberry Pi](https://snapcraft.io/install/fortune-cm/raspbian)
