-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How should I install dependencies when the machine does not have yum #2339
Comments
You are right, If you do figure it out, please post the results here so others can benefit. Thanks! |
I did this by creating a Centos7 system using a virtual machine and changing the /etc/yum.conf configuration as follows
Cache the dependencies downloaded through yum in a folder, and then download the dependencies using the following command Finally, upload the cached rpm dependencies to the target machine and force the installation of dependencies on the target machine through rpm |
On RHEL systems, the downloadonly plugin is pretty handy too. But indeed, if your target server doesn't have repo access, you'll need another server with the same characteristics to download the packages to be able to install them later somewhere else offline. It probably could have been a good question for the pgsql-pkg-yum mailing list (even though RHEL 7 is EOL for PGDG yum repos). Not receiving new updates on the server would make me uncomfortable from a stability and security point of view. If you don't want your production servers to have internet access to those repos, maybe it would worth having a repo mirror inside your local network to control what you can update more easily 🤔 |
Yes, for security, my server cannot connect to the Internet. I will update the image regularly to upgrade related plug-ins. However, my scenario is not just that, some servers do not use the images I create. Therefore, I need a method that can solve the above two scenarios. When compiling PostgreSQL, I will compile it on the server where the relevant plugins exist, so that the installation package of PostgreSQL has the required plugins. I have tried compiling pgbackrest using the same method, but it did not work. |
Please provide the following information when submitting an issue (feature requests or general comments can skip this):
pgBackRest version: 2.4.7
PostgreSQL version:12
Operating system/version - if you have more than one server (for example, a database server, a repository host server, one or more standbys), please specify each: centos7
Did you install pgBackRest from source or from a package?
source
Describe the issue:
How should I install dependencies when the machine does not have yum?I tried using rpm to install dependencies, but it is not easy to use
The text was updated successfully, but these errors were encountered: