Offline package installs
Hi guys,
I'm a novice, I do apologize in advance.
I'm attempting to install mod_ssl while offline. Running the command 'yum install mod_ssl' was giving me errors with the datastax.repo file. So I manually downloaded the mod_ssl rpm file: mod_ssl-2.4.6-45.el7.centos.x86_64.rpm to be precise.
I placed it in the /home/user/ folder and ran the command:
rpm -ivh mod_ssl-2.4.6-45.el7.centos.x86_64.rpm
Although this gives me a failed dependencies error.
I have also attempted updating the baseurl of the datastax.repo file with the location of the rpm file, but that didn't work either.
Am I going about this the wrong way? Any guidance would be appreciated.
Thanks in advance,
Responses
When you say "while offline", do you mean you've build the required images? If so, run "yum repolist" to see if the repos are available. If you don't see any repos being build then check your config file which resides in /etc/yum.repos.d/ and make sure it is properly setup. If there is any error in the process then try to clear yum cache first "yum clean all" and then run "yum repolist".
When I check for dependency list for the package "mod_ssl" I could see this:
[root@ftp-server yum.repos.d]# rpm -qpR /media/Packages/mod_ssl-2.2.15-53.el6.x86_64.rpm
/bin/cat
/bin/sh
config(mod_ssl) = 1:2.2.15-53.el6
httpd
httpd = 0:2.2.15-53.el6
httpd-mmn = 20051115
libc.so.6()(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.3.4)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libcrypto.so.10()(64bit)
libcrypto.so.10(OPENSSL_1.0.1)(64bit)
libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit)
libcrypto.so.10(libcrypto.so.10)(64bit)
libssl.so.10()(64bit)
libssl.so.10(libssl.so.10)(64bit)
openssl >= 0.9.7f-4
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rtld(GNU_HASH)
rpmlib(PayloadIsXz) <= 5.2-1
So, it would need httpd, rpmlib,openssl along with library files. Saying so, your repo build should at least have these packages/files available or already installed to get successful in installing mod_ssl package.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
