RPM package - urbanware-org/salomon GitHub Wiki
RPM package
Table of contents
[!IMPORTANT] Installing Salomon using packages is currently experimental. Installing, upgrading and uninstalling is possible, but is not yet fully developed.
Install package
You can install Salomon as follows. In this example version 1.24.0-1.
[!WARNING] Do not install Salomon via the package if it already was installed using its installation script before.
In this case, backup all relevant configs from the current installation and uninstall it also by using the installation script. Then, remove the directory
/opt/salomon
(if still existing) entirely.
Simply install the package using rpm
(or via package manager):
rpm -ivh salomon-1.24.0-1.noarch.rpm
When successful, Salomon has been installed to /opt/salomon
as usual.
Upgrade installation
You can upgrade Salomon for example from version 1.23.2-1 to version 1.24.0-1 as follows.
[!NOTE] Even though, the modified and added files should remain untainted, backup all relevant configs to avoid any loss of data.
rpm -Uvh salomon-1.24.0-1.noarch.rpm
This will upgrade Salomon, but keep salomon.cfg
as well as all config files inside the colors
and filters
sub-directories untained. However, no files with the .rpmnew
suffix will be created in case the configs differ from those included in the package.
Uninstall package
You can uninstall Salomon also using rpm
(or via package manager) as follows.
[!NOTE] Even though, the modified and added files should remain untainted, backup all relevant configs to avoid any loss of data.
rpm -ev salomon
Post-uninstall states
After uninstalling one of the following states exists, depending on if you modified the installation or kept it untainted.
Modified installation
For example, if the files inside the /opt/salomon
directory were changed the following way
salomon.cfg
was modifiedcolors/log_colors.cfg
was modifiedcolors/maillog.cfg
was modifiedcolors/users.cfg
was added
those files will remain after uninstalling.
The directory /opt/salomon
then still exists, containing the modified files with the additional suffix .rpmsave
and the added files without any file name change.
/opt/salomon
├── colors
│ ├── log_colors.cfg.rpmsave
│ ├── maillog.cfg.rpmsave
│ └── users.cfg
└── salomon.cfg.rpmsave
This way, you can backup the corresponding files (if needed) and remove /opt/salomon
entirely.
Untainted installation
In case you neither changed any file nor added new ones inside /opt/salomon
and its sub-directories, removing it will also entirely remove this directory.