sipcapture / homer

HOMER - 100% Open-Source SIP, VoIP, RTC Packet Capture & Monitoring
https://sipcapture.org
GNU Affero General Public License v3.0
1.58k stars 239 forks source link

Install on RHEL 9 #615

Closed davehorton closed 2 months ago

davehorton commented 9 months ago

Is it possible to install on RHEL 9.2 ? I don't wish to use docker I prefer to install heplify-server and homer-app natively if possible. I tried this

 curl -s https://packagecloud.io/install/repositories/qxip/sipcapture/script.rpm.sh | sudo bash
  dnf install -y homer-app heplify-server

But it didn't work

    amazon-ebs: Downloading repository file: https://packagecloud.io/install/repositories/qxip/sipcapture/config_file.repo?os=rhel&dist=9&source=script
    amazon-ebs: done.
    amazon-ebs: Installing pygpgme to verify GPG signatures...
    amazon-ebs: Updating Subscription Management repositories.
    amazon-ebs: qxip_sipcapture-source                          688  B/s | 833  B     00:01
    amazon-ebs: qxip_sipcapture-source                           12 kB/s | 3.9 kB     00:00
==> amazon-ebs: Importing GPG key 0x5C18EB6F:
==> amazon-ebs:  Userid     : "https://packagecloud.io/qxip/sipcapture (https://packagecloud.io/docs#gpg_signing) <support@packagecloud.io>"
==> amazon-ebs:  Fingerprint: 31D3 4069 9298 4190 3014 50D6 8AE3 BC33 5C18 EB6F
==> amazon-ebs:  From       : https://packagecloud.io/qxip/sipcapture/gpgkey
    amazon-ebs: qxip_sipcapture-source                          182  B/s | 296  B     00:01
    amazon-ebs: No match for argument: pygpgme
==> amazon-ebs: Error: Unable to find a match: pygpgme
    amazon-ebs:
    amazon-ebs: WARNING:
    amazon-ebs: The pygpgme package could not be installed. This means GPG verification is not possible for any RPM installed on your system.
    amazon-ebs: To fix this, add a repository with pygpgme. Usualy, the EPEL repository for your system will have this.
    amazon-ebs: More information: https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F
    amazon-ebs:
    amazon-ebs: Installing yum-utils...
    amazon-ebs: Updating Subscription Management repositories.
    amazon-ebs: qxip_sipcapture-source                          1.6 kB/s | 951  B     00:00
    amazon-ebs: Package yum-utils-4.3.0-5.el9_2.noarch is already installed.
    amazon-ebs: Dependencies resolved.
    amazon-ebs: Nothing to do.
    amazon-ebs: Complete!
    amazon-ebs: Generating yum cache for qxip_sipcapture...
    amazon-ebs: Generating yum cache for qxip_sipcapture-source...
    amazon-ebs:
    amazon-ebs: The repository is setup! You can now install packages.
    amazon-ebs: Updating Subscription Management repositories.
    amazon-ebs: Last metadata expiration check: 0:00:01 ago on Mon 02 Oct 2023 02:29:48 AM UTC.
    amazon-ebs: No match for argument: heplify-server
==> amazon-ebs: Error: Unable to find a match: heplify-server
bilalrao12 commented 9 months ago

Hi,

Can you please try below:

curl -s https://packagecloud.io/install/repositories/qxip/sipcapture/script.rpm.sh | sudo bash dnf install -y homer-app

curl -s https://packagecloud.io/install/repositories/qxip/sipcapture/script.rpm.sh | sudo os=rpm_any dist=rpm_any bash dnf install -y heplify-server

davehorton commented 9 months ago

testing now. One thing I notice is that the debian install writes a file

/usr/local/homer/etc/webapp_config.json.example

whereas on RHEL 9 there is no such file, but there is

/usr/local/homer/etc/webapp_config.json
lmangani commented 9 months ago

This is the nfpm config used to build both packages. This seems a debian package behaviour to avoid overwriting files when marked as config.