Yum Update for Kickstart based installation

General support questions
Post Reply
imranrazakhan
Posts: 7
Joined: 2019/12/03 13:07:00

Yum Update for Kickstart based installation

Post by imranrazakhan » 2019/12/03 13:15:28

I have prepared Custom ISO by following below link

https://shawnliu.me/post/kickstart-cent ... tallation/

Now I use this iso with bootable USB to deploy CentOS 7 on server which dont have access to internet. But i want to do "yum update".

is there any way so i download all yum updates in one directory and copy those files in "~/kickstart/isolinux/Packages/" folder of CentOS Media and prepare ISO after that?

This way no need to do any step after installation.

User avatar
TrevorH
Forum Moderator
Posts: 27358
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Yum Update for Kickstart based installation

Post by TrevorH » 2019/12/03 15:33:01

I'd recommend using a local mirror for both the install and for the updates repo.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

imranrazakhan
Posts: 7
Joined: 2019/12/03 13:07:00

Re: Yum Update for Kickstart based installation

Post by imranrazakhan » 2019/12/05 11:11:08

We have IOT based solution due to which we have to deploy on servers which are at remote location with no internet, I did following steps and it works for me.
  • Install CentOS 7.7 on virtual Box
  • yum --downloadonly --downloaddir=/root/myrpm update
Now change following steps in Kickstart USB Creation process
  • Copy all rpms from myrpm to ~/kickstart/isolinux/Packages/
  • cd ~/kickstart/isolinux
  • createrepo -g ~/kickstart/comps.xml .
Now installed from this new USB and it did installation with all updates :)

User avatar
TrevorH
Forum Moderator
Posts: 27358
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Yum Update for Kickstart based installation

Post by TrevorH » 2019/12/05 11:30:06

If you can connect to them to run yum update then they obviously have connectivity to somewhere and the best solution is to use our wiki article on how to set up a local mirror in that "somewhere" so that the remote instances can connect to it and use the yum repos from there.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - General Support”