From shawn.goff at accelecon.com Wed May 21 19:30:34 2014 From: shawn.goff at accelecon.com (Shawn J. Goff) Date: Wed, 21 May 2014 15:30:34 -0400 Subject: [scl.org] Is software collections appropriate for making a self-contained software archive? Message-ID: <537CFEDA.7080201@accelecon.com> I have to install some software in an enterprise environment where we are limited to installing in a specific directory in /opt. Additionlly, we can't use yum or rpm to install it - it has to be simply built or extracted right into the directory. Software collections seems to allow building an RPM that installs a package and all its dependencies in such a directory. I'm thinking I can make such a package, install it on a dev system, tar up the install directory, then untar it on the production system. Should I expect that to work? -- Shawn J. Goff | Accelerated | Systems Engineer | 813.699.3107 From jperrin at centos.org Wed May 21 19:41:34 2014 From: jperrin at centos.org (Jim Perrin) Date: Wed, 21 May 2014 14:41:34 -0500 Subject: [scl.org] Is software collections appropriate for making a self-contained software archive? In-Reply-To: <537CFEDA.7080201@accelecon.com> References: <537CFEDA.7080201@accelecon.com> Message-ID: <537D016E.30903@centos.org> On 05/21/2014 02:30 PM, Shawn J. Goff wrote: > I have to install some software in an enterprise environment where we > are limited to installing in a specific directory in /opt. Additionlly, > we can't use yum or rpm to install it - it has to be simply built or > extracted right into the directory. How would you go about installing updates or security patches without rpm or yum? Not using rpm for an rpm based distribution seems highly counter-productive. > Software collections seems to allow building an RPM that installs a > package and all its dependencies in such a directory. I'm thinking I can > make such a package, install it on a dev system, tar up the install > directory, then untar it on the production system. Should I expect that > to work? > It may, but you'd also have to ensure that any dependencies are also installed, and these may not always end up in /opt. Some scl packages (especially services) also drop files outside /opt as well. -- Jim Perrin The CentOS Project | http://www.centos.org twitter: @BitIntegrity | GPG Key: FA09AD77 From shawn.goff at accelecon.com Wed May 21 19:48:34 2014 From: shawn.goff at accelecon.com (Shawn J. Goff) Date: Wed, 21 May 2014 15:48:34 -0400 Subject: [scl.org] Is software collections appropriate for making a self-contained software archive? In-Reply-To: <537D016E.30903@centos.org> References: <537CFEDA.7080201@accelecon.com> <537D016E.30903@centos.org> Message-ID: <537D0312.8050704@accelecon.com> On 05/21/2014 03:41 PM, Jim Perrin wrote: > > On 05/21/2014 02:30 PM, Shawn J. Goff wrote: >> I have to install some software in an enterprise environment where we >> are limited to installing in a specific directory in /opt. Additionlly, >> we can't use yum or rpm to install it - it has to be simply built or >> extracted right into the directory. > > How would you go about installing updates or security patches without > rpm or yum? Not using rpm for an rpm based distribution seems highly > counter-productive. Rebuild and re-install, unfortunately. Agreed about counter-productivity. This is not my enterprise; I have no control over this monster. > > >> Software collections seems to allow building an RPM that installs a >> package and all its dependencies in such a directory. I'm thinking I can >> make such a package, install it on a dev system, tar up the install >> directory, then untar it on the production system. Should I expect that >> to work? >> > It may, but you'd also have to ensure that any dependencies are also > installed, and these may not always end up in /opt. Some scl packages > (especially services) also drop files outside /opt as well. > Since I'm building the collections, I'm expecting to have control over that. From karthik.kriz at gmail.com Thu May 22 00:00:48 2014 From: karthik.kriz at gmail.com (Karthik Krishnamurthy) Date: Wed, 21 May 2014 17:00:48 -0700 Subject: [scl.org] source rpms Message-ID: Hi, Are the source rpms for the software collections on softwarecollections.org available somewhere ? Thanks Karthik -------------- next part -------------- An HTML attachment was scrubbed... URL: From bkabrda at redhat.com Thu May 22 07:05:28 2014 From: bkabrda at redhat.com (Bohuslav Kabrda) Date: Thu, 22 May 2014 03:05:28 -0400 (EDT) Subject: [scl.org] Is software collections appropriate for making a self-contained software archive? In-Reply-To: <537D0312.8050704@accelecon.com> References: <537CFEDA.7080201@accelecon.com> <537D016E.30903@centos.org> <537D0312.8050704@accelecon.com> Message-ID: <1401450881.15893397.1400742328895.JavaMail.zimbra@redhat.com> ----- Original Message ----- > >> Software collections seems to allow building an RPM that installs a > >> package and all its dependencies in such a directory. I'm thinking I can > >> make such a package, install it on a dev system, tar up the install > >> directory, then untar it on the production system. Should I expect that > >> to work? > >> > > It may, but you'd also have to ensure that any dependencies are also > > installed, and these may not always end up in /opt. Some scl packages > > (especially services) also drop files outside /opt as well. > > > > Since I'm building the collections, I'm expecting to have control over that. A problem that you'll probably hit is that "scl enable foo" looks for /etc/scl/prefixes/foo (this file is part of %{scl}-runtime subpackage) and if it doesn't find it, it fails. I think that I've seen some discussions upstream in scl-utils about solving this systematically (can't find this right now), but for now you'd basically need to execute the "enable" scriptlets yourself to get sclized environment (not a nice solution, but will likely work...) HTH, Slavek Kabrda From msuchy at redhat.com Thu May 22 07:24:42 2014 From: msuchy at redhat.com (=?ISO-8859-1?Q?Miroslav_Such=FD?=) Date: Thu, 22 May 2014 09:24:42 +0200 Subject: [scl.org] source rpms In-Reply-To: References: Message-ID: <537DA63A.5050103@redhat.com> On 05/22/2014 02:00 AM, Karthik Krishnamurthy wrote: > Hi, > Are the source rpms for the software collections on softwarecollections.org > available somewhere ? They are available on copr.fedoraproject.org. Sources are not synced. But I just committed change and next version (in few days) will sync also sources from Copr. -- Miroslav Suchy, RHCE, RHCDS Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys From brian.brooks at acm.org Fri May 23 15:07:21 2014 From: brian.brooks at acm.org (BBrooks) Date: Fri, 23 May 2014 11:07:21 -0400 Subject: [scl.org] Problems Installing maven30-rhel-6 SCL Message-ID: I'm trying to use maven on RHEL 6.5. I tried using the software collection maven30-rhel-6 https://www.softwarecollections.org/en/scls/mizdebsk/maven30-rhel-6/ but can't get it to install The installation instructions are not clear at all. Here's what I've tried so far... *works* root# yum install https://www.softwarecollections.org/en/scls/mizdebsk/maven30-rhel-6/epel-6-x86_64/download/mizdebsk-maven30-rhel-6-epel-6-x86_64-1-2.noarch.rpm *fails* root# yum install mizdebsk-maven30 *fails* root# yum install maven30-rhel-6 *fails* root# yum install maven30 Any tips on how to troubleshoot installation? -- brian.brooks at acm.org From brian.brooks at acm.org Fri May 23 15:19:33 2014 From: brian.brooks at acm.org (BBrooks) Date: Fri, 23 May 2014 11:19:33 -0400 Subject: [scl.org] Problems Installing maven30-rhel-6 SCL Message-ID: > I'm trying to use maven on RHEL 6.5. I tried using the software > collection maven30-rhel-6 > https://www.softwarecollections.org/en/scls/mizdebsk/maven30-rhel-6/ > but can't get it to install I think I figured it out. After the initial rpm install. yum install > https://www.softwarecollections.org/en/scls/mizdebsk/maven30-rhel-6/epel-6-x86_64/download/mizdebsk-maven30-rhel-6-epel-6-x86_64-1-2.noarch.rpm I was able to see various maven yum entries with... yum list available | grep maven then I was able to install yum install maven30.x86_64 -- brian.brooks at acm.org From mizdebsk at redhat.com Mon May 26 04:54:49 2014 From: mizdebsk at redhat.com (Mikolaj Izdebski) Date: Mon, 26 May 2014 06:54:49 +0200 Subject: [scl.org] Problems Installing maven30-rhel-6 SCL In-Reply-To: References: Message-ID: <5382C919.7010208@redhat.com> On 05/23/2014 05:07 PM, BBrooks wrote: > I'm trying to use maven on RHEL 6.5. I tried using the software > collection maven30-rhel-6 > > https://www.softwarecollections.org/en/scls/mizdebsk/maven30-rhel-6/ > > but can't get it to install > > The installation instructions are not clear at all. Here's what I've > tried so far... Thank you for the feedback - I'll try to improve the instructions. > > *works* root# yum install > https://www.softwarecollections.org/en/scls/mizdebsk/maven30-rhel-6/epel-6-x86_64/download/mizdebsk-maven30-rhel-6-epel-6-x86_64-1-2.noarch.rpm > > *fails* root# yum install mizdebsk-maven30 > *fails* root# yum install maven30-rhel-6 > *fails* root# yum install maven30 The last command should work. Can you attach the output of yum so we can see what's the problem? -- Mikolaj Izdebski Software Engineer, Red Hat IRC: mizdebsk