Welcome to Questions - Ask OpenNMS, where you can ask questions and receive answers from other members of the community.

install an old version on Linux ?

+1 vote
2,442 views

let's suppose you want to install an old OpenNMS release.

In http://sourceforge.net/projects/opennms/files/OpenNMS/old/ you can find a lot of releases

i.e:

Windows version: standalone-opennms-installer-1.12.3-1.zip

generic Linux: opennms-1.12.3.pkg.gz

unzipping opennms-1.12.3.pkg.gz will produce a file opennms-1.12.3.pkg that on CentOS appears as "pkg Datastream (SVR4)"

which is the safest way to install it ? I found a script pkg2rpm.pl on this page: 

http://linuxshellaccount.blogspot.it/2008/04/converting-solaris-pkgs-into-rpms-on.html

but it doesn't work well, even fixing the .spec generation it still has problems and I'm not able to obtain the rpm.

Probably this is not the right way, as pkg is generated it should also be extracted. Any ideas ?

OpenNMS version
asked May 14, 2014 by caminac (700 points)

1 Answer

+1 vote
 
Best answer
I can answer your question halfway. I never installed a Windows version of OpenNMS and I have no idea how to install 1.12.3 instead of 1.12.6.

But there is a oldstable branch http://debian.opennms.org/dists/oldstable/ containing 1.10.
You'll have to change your apt/yum conf from "stable" to "oldstable". Now you are able to install an old version.

Hope this help a little...
answered May 14, 2014 by mfuhrmann (7,350 points)
selected May 15, 2014 by caminac
Hi Marcel
thanks for your answer
but my target sys is a CentOS 6.4
the software is avbl as a pkg but I need a rpm
solution 1:
there is a tool named alien, available for yum install but for handling pkg files it requires pkginfo.
on rpmfind.net I found python-pkginfo-1.2b1-2.mga4.noarch.rpm but it requires python 2.7 and on CentOS repository there's python 2.6 so I gave up
solution 2:
there's a script named pkg2rpm.pl, it's not up to date and it's not able to generate a right
spec file for rpmbuild, but I'm working on it.
I don't think alien will help you. Do you need 1.12.3? Or just a older version?

This is the original file yum repo file (stable release) for CentOS. Doesn't matter if you use 6.4|5.
[root@opennms ~]# cat /etc/yum.repos.d/opennms-stable-rhel6.repo
[opennms-stable-common]
name=RPMs Common to All OpenNMS Architectures (stable)
baseurl=http://yum.opennms.org/stable/common
failovermethod=roundrobin
gpgcheck=1
gpgkey=file:///etc/yum.repos.d/OPENNMS-GPG-KEY

[opennms-stable-rhel6]
name=RedHat Enterprise Linux 6.x and CentOS 6.x (stable)
baseurl=http://yum.opennms.org/stable/rhel6
failovermethod=roundrobin
gpgcheck=1
gpgkey=file:///etc/yum.repos.d/OPENNMS-GPG-KEY

Try to change "stable" to "oldstable". Then "yum clean all". Then "yum install opennms".  I never tried it. It works with Debian: http://opennms.530661.n2.nabble.com/Install-older-version-via-apt-get-td7365641.html
I guess with CentOS too.
the general requirement is:
I want to install a generic release (in this case 1.12.5, but it could be any) and I want to be able also to do it on a system without an Internet connection (I know it seems strange, but some organization want to keep their service LAN/WAN isolated from the Internet for security reasons).
The clean solution is make rpm of the desired release. The script pkg2rpm.pl I found on the net seems to be promising even if not yet working.
Install JDK, Postgres
Download and unzip this file:  "http://sourceforge.net/projects/opennms/files/OpenNMS/old/standalone-opennms-installer-1.12.5-1.zip/download"
Run "standalone-opennms-installer-1.12.5-1.jar"
for an upgrade is ok (but it's good to backup etc folder before and clear lib and jetty-webapp folders).
I'm wondering if on Linux it creates links to /etc/init.d etc. for handling opennms through service command. Anyway all the files are placed in the right place.
thanks
...