Hi Sangamesh,
I have updated the expat rpm and ran updtvpkg also.
but still getting the same error.
root@qanim01adtest:/tmp > rpm -qa | grep expat
expat-2.4.6-1.ppc
root@qanim01adtest:/tmp > rpm -qi expat-2.4.6-1.ppc
Name : expat
Version : 2.4.6
Release : 1
Architecture: ppc
Install Date: Mon Jul 4 07:13:50 CUT 2022
Group : System Environment/Libraries
Size : 3663383
License : MIT
Signature : (none)
Source RPM : expat-2.4.6-1.src.rpm
Build Date : Sat Mar 5 14:11:03 CUT 2022
Build Host : pokndd10.pok.stglabs.ibm.com
Packager : IBM AIX Toolbox <https://ibm.biz/AIXToolbox>
URL : 
http://www.libexpat.org/Bug URL : 
https://ibm.biz/aixoss_forumSummary : An XML parser library
Description :
This is expat, the C library for parsing XML, written by James Clark. Expat
is a stream oriented XML parser. This means that you register handlers with
the parser prior to starting the parse. These handlers are called when the
parser discovers the associated structures in the document being parsed. A
start tag is an example of the kind of structures for which you may
register handlers.
The library is available as 32-bit and 64-bit.
root@qanim01adtest:/tmp >
-------------------------------
Error
-----------------------------
root@qanim01adtest:/tmp > yum repolist
aix-localrepo | 2.0 kB 00:00:00
Traceback (most recent call last):
File "/usr/bin/yum", line 32, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/opt/freeware/share/yum-cli/yummain.py", line 288, in user_main
errcode = main(args)
File "/opt/freeware/share/yum-cli/yummain.py", line 140, in main
result, resultmsgs = base.doCommands()
File "/opt/freeware/share/yum-cli/cli.py", line 440, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/opt/freeware/share/yum-cli/yumcommands.py", line 864, in doCommand
base.repos.populateSack()
File "/opt/freeware/lib/python2.7/site-packages/yum/repos.py", line 294, in populateSack
sack.populate(repo, mdtype, callback, cacheonly)
File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 186, in populate
dobj = repo_cache_function(xml, csum)
File "/opt/freeware/lib/python2.7/site-packages/sqlitecachec.py", line 46, in getPrimary
self.repoid))
TypeError: Parsing primary.xml error: Start tag expected, '<' not found
root@qanim01adtest:/tmp >
------------------------------
Tulasiram Morusu
------------------------------
                                                
					
                                                    
        
                                                
				
                                                
                                                Original Message:
Sent: Fri July 01, 2022 10:48 AM
From: SANGAMESH MALLAYYA
Subject:  Re: AIX yum repolist command error with local repository
Hi Tulasiram,
This error may be due to the older version of expat package.
------------------------------
SANGAMESH
Original Message:
Sent: Fri July 01, 2022 04:13 AM
From: Tulasiram Morusu
Subject:  Re: AIX yum repolist command error with local repository
Hi Ayyappan, I'm trying to use Linux local repo server, but failing with same error. i have Installed xzlib and libxml2 rpms.
Not able to open above solution link. 
root@qanim01adtest:/ > rpm -qa | grep xz-libs
xz-libs-5.2.5-1.ppc
root@qanim01adtest:/ > rpm -qa | grep libxml2
libxml2-2.9.14-1.ppc
root@qanim01adtest:/ >
root@qanim01adtest:/ > yum repolist
Traceback (most recent call last):
File "/usr/bin/yum", line 32, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/opt/freeware/share/yum-cli/yummain.py", line 288, in user_main
errcode = main(args)
File "/opt/freeware/share/yum-cli/yummain.py", line 140, in main
result, resultmsgs = base.doCommands()
File "/opt/freeware/share/yum-cli/cli.py", line 440, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/opt/freeware/share/yum-cli/yumcommands.py", line 864, in doCommand
base.repos.populateSack()
File "/opt/freeware/lib/python2.7/site-packages/yum/repos.py", line 294, in populateSack
sack.populate(repo, mdtype, callback, cacheonly)
File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 186, in populate
dobj = repo_cache_function(xml, csum)
File "/opt/freeware/lib/python2.7/site-packages/sqlitecachec.py", line 46, in getPrimary
self.repoid))
TypeError: Parsing primary.xml error: Start tag expected, '<' not found
root@qanim01adtest:/ >
------------------------------
Tulasiram Morusu
Original Message:
Sent: Tue July 23, 2019 12:25 PM
From: Archive User
Subject: Re: AIX yum repolist command error with local repository
Originally posted by: AyappanP
      Check this thread --> https://www.ibm.com/developerworks/community/forums/html/topic?id=308e7798-9fb0-4a71-ba70-859d5f04b41f&ps=25    
#AIXOpenSource