Adding --add-snapshoot inside PackageRepositoryMgmt, to store the instalation list from dpkg --get-selection inside the index file. It store only and ID and the ID is accessible from index path.