I have spend a lot of time looking for a good solution on how to update a disconnected CentOS 7 system but have not found a suitable solution yet.
Most solutions on how to update an disconnected system (RedHat/CentOS) tell you to either create some local repo or use a CD/DVD with all recent packages.
What I want is to create a list of installed packages on the disconnected system (using rpm -qa for example), take that list to a connected system and download all updates. I spend some time writing a script which basically works like this. The script steps through all packages from the list and checks whether there is an update, and if so, downloads theupdate. So for so good. The problem however is that a package can in principle introduce a new dependency, i.e., introduce a new package which was not yet installed on the exsting system. So to solve that the script needs to check all dependencies and if a new dependency is found, download it. Because I do not want to duplicate yum, I was wondering whether there is already some yum script or tool that can be used for offline updates.
updates
repo./media
and use it as a YUM repository using the preconfigured/etc/yum.repos.d/CentOS-Media.repo
. That is the first thing that comes to mind if you do not already have a local repository.