Difference between revisions of "yum installation on secureplatform"

From cpwiki.net
Jump to: navigation, search
Check Point Profressional Services
 
(8 intermediate revisions by one user not shown)
Line 1: Line 1:
Command log / list of my successful yum installation on SecurePlatform
+
==versions==
 +
this guide was written for SPLAT, I think the version was...
 +
 
 +
splat(75.40) glibc = glibc-2.3.2-95.34cp
 +
 
 +
Gaia has a newer glibc and will need a different set of RPS from 5.1 centos (i think) to get the same objective done.
 +
 
 +
gaia77.30 glibc = glibc-2.5-18.1.cp738000011
 +
 
 +
== Installing yum  ==
 +
 
 +
 
 +
Command log / list of my successful yum installation on SecurePlatform.  It was truly an "rpm hell" experience to determine the required list of rpms and dependencies below.  But, that is why I was installing yum... so that I only have to wade through RPM hell one time.  If I ever do it again I can clean this command list up, change the order, and eliminate some of the errors.
  
 
installed this library, from a centos 3.8 installation (I think)
 
installed this library, from a centos 3.8 installation (I think)
 
  # scp /lib/libssl.so.0.9.7a admin@192.168.175.100:/lib/
 
  # scp /lib/libssl.so.0.9.7a admin@192.168.175.100:/lib/
 +
 
   
 
   
 
  # rpm -ivh ./info-4.5-3.el3.1.i386.rpm
 
  # rpm -ivh ./info-4.5-3.el3.1.i386.rpm
Line 52: Line 65:
 
   1:yum                    ########################################### [100%]
 
   1:yum                    ########################################### [100%]
  
[[category:splat]]
+
== configuring yum  ==
 +
 
 +
 +
I don't have the specific details here.  You can we search how to setup yum to work with a particular repository. Here is a link to an old one that is still online...
 +
 
 +
[http://mirror.hmc.edu/centos/3.8/os/i386/RedHat/RPMS/ http://mirror.hmc.edu/centos/3.8/os/i386/RedHat/RPMS/]
 +
 
 +
== Installing software ==
 +
Here is my living proof I made yum work on splat...
 +
 
 +
[Expert@ckkpmgr]# '''yum search httpd'''
 +
Gathering header information file(s) from server(s)
 +
Server: CentOS-3 - Addons
 +
Server: CentOS-3 - Base
 +
Server: CentOS-3 - Extras
 +
Server: CentOS-3 - Updates
 +
Finding updated packages
 +
Downloading needed headers
 +
Looking in available packages for a providing package
 +
Available package: redhat-config-httpd.noarch 5:1.1.0-4.30.2 from base matches with
 +
redhat-config-httpd
 +
Available package: httpd-devel.i386 0:2.0.46-77.ent.centos from update matches with
 +
httpd-devel
 +
Available package: httpd.i386 0:2.0.46-77.ent.centos from update matches with
 +
httpd
 +
3 results returned
 +
Looking in installed packages for a providing package
 +
No packages found
 +
[Expert@ckkpmgr]# '''yum install httpd.i386 0:2.0.46-77.ent.centos'''
 +
Gathering header information file(s) from server(s)
 +
Server: CentOS-3 - Addons
 +
Server: CentOS-3 - Base
 +
Server: CentOS-3 - Extras
 +
Server: CentOS-3 - Updates
 +
Finding updated packages
 +
Downloading needed headers
 +
Cannot find a package matching 0:2.0.46-77.ent.centos
 +
Resolving dependencies
 +
Dependencies resolved
 +
I will do the following:
 +
[install: httpd 2.0.46-77.ent.centos.i386]
 +
Is this ok [y/N]: y
 +
Downloading Packages
 +
Running test transaction:
 +
Test transaction complete, Success!
 +
httpd 100 % done 1/1
 +
Installed:  httpd 2.0.46-77.ent.centos.i386
 +
'''Transaction(s) Complete'''
 +
 
 +
lets start that apache up shall we?
 +
 
 +
[Expert@ckkpmgr]# '''/etc/init.d/httpd start'''
 +
Starting httpd: httpd: Could not determine the server's fully qualified domain name, using 192.168.1.100 for ServerName
 +
                                                          [  OK  ]
 +
I can't believe it is running, let me check...
 +
 +
[Expert@ckkpmgr]# '''netstat -anp | grep httpd'''
 +
tcp        0      0 0.0.0.0:80              0.0.0.0:*              LISTEN      20186/httpd 
 +
 
 +
yep, it is really running
 +
 
 +
[Expert@ckkpmgr]# '''wget http://192.168.1.100/index.html'''
 +
--05:42:43--  http://192.168.1.100/index.html
 +
          => `index.html.1'
 +
Connecting to 192.168.1.100:80... connected.
 +
HTTP request sent, awaiting response... 200 OK
 +
Length: 55 [text/html]
 +
<br>
 +
100%[========================================================================================>] 55            --.--K/s           
 +
<br>
 +
05:42:43 (11.01 MB/s) - `index.html.1' saved [55/55]
 +
 
 +
did I just get a file from my Check Point http server?
 +
 
 +
[Expert@ckkpmgr]# cat index.html
 +
<html><body><h 1>'''It works! localhost'''</h 1></body></html>
 +
 
 +
...yes I did!
 +
 +
[[category:splat]]

Latest revision as of 17:56, 31 March 2016

Contents

versions

this guide was written for SPLAT, I think the version was...

splat(75.40) glibc = glibc-2.3.2-95.34cp

Gaia has a newer glibc and will need a different set of RPS from 5.1 centos (i think) to get the same objective done.

gaia77.30 glibc = glibc-2.5-18.1.cp738000011

Installing yum

Command log / list of my successful yum installation on SecurePlatform. It was truly an "rpm hell" experience to determine the required list of rpms and dependencies below. But, that is why I was installing yum... so that I only have to wade through RPM hell one time. If I ever do it again I can clean this command list up, change the order, and eliminate some of the errors.

installed this library, from a centos 3.8 installation (I think)

# scp /lib/libssl.so.0.9.7a admin@192.168.175.100:/lib/


# rpm -ivh ./info-4.5-3.el3.1.i386.rpm

# rpm -ivh ./readline-4.3-5.2.i386.rpm

# rpm -ivh ./krb5-libs-1.2.7-66.i386.rpm

      • failed **** rpm -ivh ./openssl-0.9.7a-33.23.i686.rpm
# file /lib/libcrypto.so.0.9.7a from install of openssl-0.9.7a-33.23 conflicts with file from package openssl-libcrypto-0.9.7a-36cp
 
# rpm -ivh  --replacefiles ./openssl-0.9.7a-33.23.i686.rpm

# rpm -ivh ./gmp-4.1.2-5.i386.rpm

# rpm -ivh python-2.2.3-6.6.i386.rpm

# rpm -ivh ./libxml2-2.5.10-7.i386.rpm

# rpm -ivh ./libxml2-python-2.5.10-7.i386.rpm

# rpm -ivh --replacefiles ./elfutils-libelf-0.94.1-2.i386.rpm  <<< should redo with -Uvh???

# rpm -ivh ./elfutils-0.94.1-2.i386.rpm
warning: perl-5.8.0-94.EL3.i386.rpm: V3 DSA signature: NOKEY, key ID 025e513b
Preparing...                ########################################### [100%]
  1:perl                   ########################################### [100%]
[Expert@ckkpmgr]# rpm -Uvh rpm*30*
warning: rpm-4.2.3-30_nonptl.i386.rpm: V3 DSA signature: NOKEY, key ID 025e513b
error: Failed dependencies:
       patch >= 2.5 is needed by rpm-build-4.2.3-30_nonptl
[Expert@ckkpmgr]# rpm -ivh ./patch-2.5.4-16.i386.rpm 
warning: ./patch-2.5.4-16.i386.rpm: V3 DSA signature: NOKEY, key ID 025e513b
Preparing...                ########################################### [100%]
  1:patch                  ########################################### [100%]
[Expert@ckkpmgr]# rpm -Uvh rpm*30*
warning: rpm-4.2.3-30_nonptl.i386.rpm: V3 DSA signature: NOKEY, key ID 025e513b
Preparing...                ########################################### [100%]
  1:rpm-libs               ########################################### [ 20%]
  2:rpm                    ########################################### [ 40%]
  3:rpm-build              ########################################### [ 60%]
  4:rpm-devel              ########################################### [ 80%]
  5:rpm-python             ########################################### [100%]
[Expert@ckkpmgr]# rpm -Uvh yum-2.0.8-2.centos3.noarch.rpm 
warning: yum-2.0.8-2.centos3.noarch.rpm: V3 DSA signature: NOKEY, key ID 025e513b
Preparing...                ########################################### [100%]
  1:yum                    ########################################### [100%]

configuring yum

I don't have the specific details here. You can we search how to setup yum to work with a particular repository. Here is a link to an old one that is still online...

http://mirror.hmc.edu/centos/3.8/os/i386/RedHat/RPMS/

Installing software

Here is my living proof I made yum work on splat...

[Expert@ckkpmgr]# yum search httpd
Gathering header information file(s) from server(s)
Server: CentOS-3 - Addons
Server: CentOS-3 - Base
Server: CentOS-3 - Extras
Server: CentOS-3 - Updates
Finding updated packages
Downloading needed headers
Looking in available packages for a providing package
Available package: redhat-config-httpd.noarch 5:1.1.0-4.30.2 from base matches with
redhat-config-httpd
Available package: httpd-devel.i386 0:2.0.46-77.ent.centos from update matches with
httpd-devel
Available package: httpd.i386 0:2.0.46-77.ent.centos from update matches with
httpd
3 results returned
Looking in installed packages for a providing package
No packages found
[Expert@ckkpmgr]# yum install httpd.i386 0:2.0.46-77.ent.centos
Gathering header information file(s) from server(s)
Server: CentOS-3 - Addons
Server: CentOS-3 - Base
Server: CentOS-3 - Extras
Server: CentOS-3 - Updates
Finding updated packages
Downloading needed headers
Cannot find a package matching 0:2.0.46-77.ent.centos
Resolving dependencies
Dependencies resolved
I will do the following:
[install: httpd 2.0.46-77.ent.centos.i386]
Is this ok [y/N]: y
Downloading Packages
Running test transaction:
Test transaction complete, Success!
httpd 100 % done 1/1 
Installed:  httpd 2.0.46-77.ent.centos.i386
Transaction(s) Complete

lets start that apache up shall we?

[Expert@ckkpmgr]# /etc/init.d/httpd start
Starting httpd: httpd: Could not determine the server's fully qualified domain name, using 192.168.1.100 for ServerName
                                                          [  OK  ]

I can't believe it is running, let me check...

[Expert@ckkpmgr]# netstat -anp | grep httpd
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      20186/httpd  

yep, it is really running

[Expert@ckkpmgr]# wget http://192.168.1.100/index.html
--05:42:43--  http://192.168.1.100/index.html
          => `index.html.1'
Connecting to 192.168.1.100:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 55 [text/html]

100%[========================================================================================>] 55 --.--K/s
05:42:43 (11.01 MB/s) - `index.html.1' saved [55/55]

did I just get a file from my Check Point http server?

[Expert@ckkpmgr]# cat index.html
<html><body><h 1>It works! localhost</h 1></body></html>

...yes I did!