Install Memgraph on Fedora from RPM package
Install and run Memgraph from a RPM package on:
- Fedora 38
- Fedora 39
Newer versions of Memgraph might not be backward compatible with older versions and you might not be able to load storage snapshots between different versions. In that case, please contact the Memgraph team and we'll help with the migration as much as possible.
Installation guide
Download Memgraph RPM Fedora package
Downloaded the latest Memgraph RPM Fedora package from the Memgraph Download Hub (opens in a new tab).
You can also use direct download links to get the latest Memgraph packages.
For example, for Fedora 39:
sudo wget https://download.memgraph.com/memgraph/v2.20-0/fedora-39/memgraph-2.21.0_1-1.x86_64.rpm
For the latest version of Memgraph, replace the version in the download command with the one from the direct download links page.
Install Memgraph
After downloading the Memgraph RPM package, you can install it by issuing the following command:
sudo dnf install -y ./memgraph-2.15.1_1-1.x86_64.rpm
If you run into any troubles while installing Memgraph, contact us on Discord (opens in a new tab).
Start Memgraph
After successful installation, Memgraph can be started as a service using the following command:
sudo systemctl start memgraph
To verify that Memgraph is running, run the following command:
journalctl --unit memgraph
If successful, you should receive an output similar to the following:
You are running Memgraph vX.X.X
If you want the Memgraph database instance to start automatically on each startup, run the following command:
systemctl enable memgraph
You can also check the status of the Memgraph database instance by running:
systemctl status memgraph
Troubleshooting
When you start a Memgraph instance, you may see the following list of notes in your terminal:
You are running Memgraph v1.4.0-community
NOTE: Please install networkx to be able to use graph_analyzer module. Using Python:
3.8.2 (default, Jul 16 2020, 14:00:26)
[GCC 9.3.0]
NOTE: Please install networkx to be able to use Memgraph NetworkX wrappers. Using Python:
3.8.2 (default, Jul 16 2020, 14:00:26)
[GCC 9.3.0]
NOTE: Please install networkx, numpy, scipy to be able to use proxied NetworkX algorithms. E.g., CALL nxalg.pagerank(...).
Using Python:
3.8.2 (default, Jul 16 2020, 14:00:26)
[GCC 9.3.0]
NOTE: Please install networkx to be able to use wcc module.
Using Python:
3.8.2 (default, Jul 16 2020, 14:00:26)
[GCC 9.3.0]
If you wish to work with built-in NetworkX modules in Memgraph, you need to install the following Python libraries:
For more information on how to install Python libraries in Linux, follow the Installing Packages guide (opens in a new tab). If you are not interested in working with query modules that depend on these libraries, you can ignore the warnings.
Connect to the database
To query the database from the console, you need to install
mgconsole
.
You can also connect to the database using one of the client libraries or visual-user interface Memgraph Lab.
Stop Memgraph
To shut down the Memgraph server, issue the following command:
systemctl stop memgraph
Start Memgraph
Memgraph can be started as a service using the following command:
systemctl start memgraph
Configuration
If you're experiencing issues related to the maximum number of memory map areas,
you can resolve them by adjusting the vm.max_map_count
parameter. Keep in
mind that the linked configuration guide is not written for Fedora, steps will be
different, but the goal is the same.
The Memgraph configuration is available in /etc/memgraph/memgraph.conf
. If the
configuration file is altered, Memgraph needs to be restarted. Check all the
configuration options in the configuration
settings.