it did not work the out put is down there it's very easy to try the script yourself just copy the kernel rpm from fedora DVD or from fedora mirror (the releases directory not the updates dir) cd foo && createrepo . then add this local repo (even if disbaled) to /etc/yum.repos.d/ and then [root@localhost ~]# python update-localrepo.py Loaded plugins: fastestmirror, fedorakmod, kernel-module, refresh-packagekit Loading mirror speeds from cached hostfile * local-fedora-cache: Traceback (most recent call last): File "update-localrepo.py", line 39, in <module> npkg=my.pkgSack.returnNewestByName(pkg.name)[0] File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 578, in <lambda> pkgSack = property(fget=lambda self: self._getSacks(), File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 421, in _getSacks self.repos.populateSack(which=repos) File "/usr/lib/python2.5/site-packages/yum/repos.py", line 245, in populateSack sack.populate(repo, mdtype, callback, cacheonly) File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 149, in populate if self._check_db_version(repo, mydbtype): File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 203, in _check_db_version return repo._check_db_version(mdtype) File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 935, in _check_db_version repoXML = self.repoXML File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 1093, in <lambda> repoXML = property(fget=lambda self: self._getRepoXML(), File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 1085, in _getRepoXML self._loadRepoXML(text=self) File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 1075, in _loadRepoXML return self._groupLoadRepoXML(text, ["primary"]) File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 1059, in _groupLoadRepoXML if self._commonLoadRepoXML(text): File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 904, in _commonLoadRepoXML if self._cachingRepoXML(local): File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 764, in _cachingRepoXML if self.cache or self.withinCacheAge(self.metadata_cookie, AttributeError: 'YumRepository' object has no attribute 'metadata_cookie' I'm I on the wrong way, I think there should be a better way to populate repos after doing some enable/disable repos! _______________________________________________ Yum mailing list Yum@xxxxxxxxxxxxxxxxxxxx https://lists.dulug.duke.edu/mailman/listinfo/yum