Skip to content
This repository was archived by the owner on Mar 7, 2018. It is now read-only.

Latest commit

 

History

History
36 lines (28 loc) · 1.02 KB

File metadata and controls

36 lines (28 loc) · 1.02 KB

Package

This has been made for CentOS 7. Version of package is automaticaly generated from the git short head version.

The folders on installation are:

  • /opt/InfoLoggerGui (code, config)
  • /etc/systemd/system/ (auto-start)

Create package

yum install rpm-build git nodejs
rm -rf ~/rpmbuild
mkdir -p ~/rpmbuild/{BUILD/opt,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
cd ~/rpmbuild/BUILD/opt
git clone https://github.com/AliceO2Group/InfoLoggerGui.git InfoLoggerGui
cd InfoLoggerGui/rpmbuild
rpmbuild -ba rpmspec --buildroot ~/rpmbuild/BUILDROOT --define "_version `git rev-parse --short HEAD`" # avoid subdir per architecture
# wait a minute
# package available here ls /root/rpmbuild/RPMS/x86_64/InfoLoggerGui-*.rpm

Install package

curl -O https://rpm.nodesource.com/pub_8.x/el/7/x86_64/nodejs-8.8.1-1nodesource.x86_64.rpm
yum install nodejs-8.8.1-1nodesource.x86_64.rpm

yum install PACKAGE_FILE

After installation, you need to configure.

Remove package

yum remove InfoLoggerGui