You cannot run macOS PKG files natively. You would need a virtual machine or to use 7z oddly enough— 7z can sometimes extract the Payload section of a PKG if you rename it to .xar .
file is a standard installer package used by the macOS Installer. rar to pkg
: Create a component.plist or package.xml (on macOS) to tell the OS where the files go. You cannot run macOS PKG files natively