I want to "yum install php-mbstring" on Centos 6. The problem is that due to firewall restrictions, the centos machine can not connect outside. Therefore, epel etc packages fail due to unreachable: http://download.fedoraproject.org/pub/epel…
I can transfer any file from my computer to the centos machine. So, is it possible to download php-mbstring source and put to the centos machine so that it can be installed offline?
Note: Downloaded packages such as epel-release-6-8.noarch.rpm and putting on the centos machine doesnt work because they still need external connection when I run yum install.
Best Answer
Use
yumdownloader
on a system which does have internet access.This will pull the package and its dependencies (using the
--resolve
switch) down to the local directory.Copy the files to the system in question and
yum install
using the path to the files.