--- ./plugins/migrate.py_orig	2021-04-06 07:58:04 +0000
+++ ./plugins/migrate.py	2021-04-06 07:58:43 +0000
@@ -51,6 +51,8 @@
         demands.root_user = True
 
     def run(self):
+        # First try to create the pkg_yumdb database
+        os.system("LIBPATH=/opt/freeware/lib:/usr/lib:/lib /opt/freeware/bin/python2 /opt/freeware/sbin/update_pkg_yumdb")
         logger.info(_("Migrating history data..."))
         input_dir = os.path.join(self.base.conf.installroot, '/var/lib/yum/')
         persist_dir = os.path.join(self.base.conf.installroot, self.base.conf.persistdir)
