MSYS2 uses pacman as its package manager, which caches available packages locally in files /var/lib/pacman/sync/<reponame>.db (such as msys.db). What is the database format of those files?
"The pacman databases are normally located at /var/lib/pacman/sync. For each repository specified in /etc/pacman.conf there will be a corresponding database file located there. Database files are gzipped tar archives containing one directory for each package." (See pacman database structure)