LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-13-2019, 10:57 AM   #1
daviddon
LQ Newbie
 
Registered: May 2019
Posts: 14

Rep: Reputation: Disabled
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
 
Old 06-13-2019, 01:21 PM   #2
ronatartifact
LQ Newbie
 
Registered: Oct 2003
Location: Montreal, Canada
Distribution: CentOS
Posts: 23

Rep: Reputation: 2
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.
 
Old 06-13-2019, 01:49 PM   #3
daviddon
LQ Newbie
 
Registered: May 2019
Posts: 14

Original Poster
Rep: Reputation: Disabled
Internet access is on my desktop. I am planning to transfer the dependencies to my local repository manually
 
Old 06-13-2019, 04:06 PM   #4
ronatartifact
LQ Newbie
 
Registered: Oct 2003
Location: Montreal, Canada
Distribution: CentOS
Posts: 23

Rep: Reputation: 2
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.
 
Old 06-13-2019, 05:44 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.5
Posts: 17,640

Rep: Reputation: 2481Reputation: 2481Reputation: 2481Reputation: 2481Reputation: 2481Reputation: 2481Reputation: 2481Reputation: 2481Reputation: 2481Reputation: 2481Reputation: 2481
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. glowe Linux - Newbie 8 01-13-2016 10:55 PM
Yum local install - package and all dependencies in local directory lppatmore Linux - Newbie 6 02-21-2015 02:53 AM
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg3793 Fedora 8 04-13-2011 11:25 AM
Redhat 5.1 Yum Repository vs Fedora x.x Yum Repository lead2gold Linux - Software 1 05-22-2008 02:19 PM
how can i add a local Folder on local Hard Disk as Yum Repository ?? vahid_p Fedora 4 02-22-2007 10:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration