yum list when doing offline repository

Issues related to applications and software problems
Post Reply
ron7000
Posts: 162
Joined: 2019/01/15 20:00:28

yum list when doing offline repository

Post by ron7000 » 2019/06/05 18:11:37

for a registered system that has internet access: I have CentOS + EPEL + nux + Elrepo and if I do a yum list <whatever package> that will report what repository that package came from. I like this.

In managing an offline system I have done
  • created /etc/yum.repos.d/dvd.repo to havefile:///root/repo/dvd
  • copied the dvd contents to /root/repo/dvd
  • created /etc/yum.repos.d/local.repo to have file :///root/repo/local
  • do a createrepo [--update] root/repo/local
  • copy all downloaded or updated rpms from my online system to /root/repo/local on this offline system
question is, on this offline system if i do a yum list <whatever> it will report either dvd or local.
I would rather know (if it didn't come from dvd) the originating repo such as EPEL or Elrepo or nux like how it is on my online system. Is it possible to know this after I have dumped all rpm's now into one folder (named local) ?

I have imported the rpm-gpg files for epel, elrepo, nux on my offline system and with gpg=1 in /etc/yum.conf that aspect of things seems to be working problem free.

Post Reply