LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Updating dependencies on local YUM repository (https://www.linuxquestions.org/questions/linux-newbie-8/updating-dependencies-on-local-yum-repository-4175655645/)

daviddon 06-13-2019 10:57 AM

Updating dependencies on local YUM repository
 
I created a local repository for YUM update using CentOS iso. What is the best way to include new updates and dependencies in the local repository when there are new updates coming out?

Example I am running into:

The server hosting the local repository doesn't have access to the internet. There are new dependencies for the zip package. I want to make sure clients can get these latest dependencies when they run yum update

ronatartifact 06-13-2019 01:21 PM

When you looked at setting up your own YUM repo did you look at Nexus as a proxy for YUM?

https://blog.sonatype.com/nexus-repository-manager-3.5

Perhaps you can explain why your YUM repo does not have Internet access and describe where in your network setup you do have Internet access.

daviddon 06-13-2019 01:49 PM

Internet access is on my desktop. I am planning to transfer the dependencies to my local repository manually

ronatartifact 06-13-2019 04:06 PM

If your desktop is accessible to your internal network and the outside world:
You might look at installing Nexus on your desktop and creating a proxy for the various external repos that you need to make available.
On a server inside your private LAN, install Nexus as a YUM repo and give it access to your desktop Nexus as its upstream YUM proxy.
This will give your team access to YUM while your workstation is shutdown.


This should propagate updates from the wider world to your repo and from your repo to the inside world.

I have never tried anything like this and have never used Nexus as a YUM repo since that is a new feature.
You might want to ask about this in the Sonatype community before investing a lot of time in testing this.

chrism01 06-13-2019 05:44 PM

From the yum man page
Quote:

--downloadonly
Don't update, just download. This is done in the background, so the yum
lock is released for other operations. This can also be chosen by typing
'd'ownloadonly at the transaction confirmation prompt.
:)

Of course for this to make sense, the download machine needs same OS as the target.

I suppose you could(?) temporarily use a different set of repo files to force a match, but I'm not convinced ... alternately, get an updated DVD or similar.


All times are GMT -5. The time now is 03:02 PM.