I have a minimal CentOS server with no access to the internet. Let's call it server A.
My target it to build a shell script file to install a specific version of a local RPM file for an application. Let's say the target application is Apache. The problem is that each RPM has dependencies.
On a different server where there is an access to the internet, which I call it server B, I download the package:
wget http://repo.okay.com.mx/centos/7/x86_64/release/httpd-2.4.35-5.el7.x86_64.rpm
Then move it to server A and try installing it:
rpm -i httpd-2.4.35-5.el7.x86_64.rpm
yum install dependency screenshot:
It has several requirement:
rpm -qpR httpd-2.4.35-5.el7.x86_64.rpm
browse dependencies screenshot:
I cannot understand some of the requirements:
1- What is /etc/mime.types
? I do not have such a file. Where can I get it from?
2- Some packages are mentioned multiple times such as
systemd-utils
systemd-utils
systemd-utils
What does it mean?
3- Some packages have multiple variations. Which of them should I install? libc.so
4- It seems the list is sorted alphabetically. What is the order of installation?
5- The dnf repoquery
command also provides a different list. Which one should I follow?
dnf repoquery screenshot:
6- Isn't there a more automatic way to perform what I am looking for?