Build an RPM package for the Parity Ethereum latest stable client. This RPM package installs Parity Ethereum as a systemd service.
If you want to install the latest Parity Ethereum stable release, you can use the next one line command:
rpm -i https://github.com/eskoltech/parity-ethereum-rpm/releases/download/v0.1.1/parity-2.1.10-1.el7.x86_64.rpmNote that this command will install parity inside the /usr/sbin directory, and two configuration files will be created:
- The
parity.servicefile inside the/usr/lib/systemd/systemfolder. This file will be responsible to manage the Parity Ethereum systemd service. - The
config.tomlfile for the Parity Ethereum client configuration. Normally, you always edit this file for configuration changes.
Important: When you start the client, for default it will try to connect to the Ethereum Ropsten network. You can change the network inside the
config.tomlfile. The rest of the configurations are the default ones.
Now you can start the Parity Ethereum client using systemctl start parity.service, and view the logs with the command journalctl -u parity.service -f.
See the next sections if you want to build the RPM package by yourself.
If you want to build your RPM package by yourself, you need to install docker and make.
Also, if you want to compile the
parityexecutable from the sources, you needvagrantto be installed in the system.
When done, see the following section.
First, you need to build the docker image with all required dependencies to generate the RPM package. Just execute the next line from the root directory of this project:
$ make buildThis will create a new docker image. You can check it using the
docker imagescommand.
Now, to generate an RPM package for the current parity.spec, just execute:
$ make rpm-parityThis command will generate the RPM package inside the rpmbuild/RPMS directory.