Difference between revisions of "yum installation on secureplatform"
From cpwiki.net
Line 1: | Line 1: | ||
+ | |||
+ | == Installing yum == | ||
+ | |||
+ | |||
Command log / list of my successful yum installation on SecurePlatform | Command log / list of my successful yum installation on SecurePlatform | ||
Line 52: | Line 56: | ||
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''' | ||
+ | |||
+ | [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.175.100/index.html''' | ||
+ | --05:42:43-- http://192.168.175.100/index.html | ||
+ | => `index.html.1' | ||
+ | Connecting to 192.168.175.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><h1>'''It works! localhost'''</h1></body></html> | ||
+ | |||
+ | ...yes I did! | ||
+ | |||
+ | [[category:splat]] |
Revision as of 10:38, 5 November 2013
Contents |
Installing yum
Command log / list of my successful yum installation on SecurePlatform
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
[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.175.100/index.html --05:42:43-- http://192.168.175.100/index.html => `index.html.1' Connecting to 192.168.175.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>
It works! localhost
</body></html>...yes I did!