[Yum] yum check-update performance slow
James Antill
james-yum at and.org
Mon Aug 24 19:12:42 UTC 2009
Mike McIntyre <mikemci at ca.ibm.com> writes:
> Used the yum-metadata-parser-1.1.0.tar.gz and modified
> yum-metadata-parser.spec for python_sitelib_platform location. rpmbuild
> --bb yum-metadata-parser.spec successfully produced a
> yum-metadata-parser-1.1.0-1.s390x.rpm file. Also was able to rpmbuild
> pygpgme-0.1-8.s390x.rpm, python-iniparse-0.2.4-3.5.s390x.rpm files and
> install these prequisites.
>
> rpm -e yum-2.4.2-13.4 and rpm -i yum-3.2.23-0.noarch.rpm
> yum-metadata-parser-1.1.0-1.s390x.rpm successfull.
What version of python is this? Running 3.2.23 on python less than
2.6 is, shall we say, less well tested. There's a thread in CentOS about
someone getting packages which work for CentOS-4 (which is python
2.3), and RHEL-5.4 is about to release a 3.2.22 based yum which runs
python-2.4.
Also, yum/y-m-p on s309x is ... less well tested.
> yum check-update
> failed with message "No module named yum". Found
> http://www.linux-archive.org/fedora-development/315317-upgrade-f11-now-yum-python-module-missing.html
> with command export PYTHONPATH=/usr/lib/python2.4/site-packages that
> resolved this problem.
This looks like a version mismatch for python, or maybe SuSE has the
paths different?
> Traceback (most recent call last):
[...]
> File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 184, in
> populate
> dobj = repo_cache_function(xml, csum)
> File "/usr/local/lib64/python2.4/site-packages/sqlitecachec.py", line
> 40, in getPrimary
> self.repoid))
> TypeError: Can not create index on requires table: near "NOT": syntax
> error
This pretty much screams "need a newer version of pysqlite".
> rpm levels are sqlite-3.2.8-15.2, python-sqlite-1.1.6-17.4,
> python-2.4.2-18.13. Did not see newer Novell levels of these rpms to
> install for SLES 10 SP1 s390x.
They might have a python-sqlite2 packages, which is what RHEL/CentOS
do.
--
James Antill -- james at and.org
http://www.and.org/and-httpd/ -- $2,000 security guarantee
http://www.and.org/ustr/
http://www.and.org/vstr/
More information about the Yum
mailing list