To convert rpm to deb, or vice versa, we can use a tool called alien. To install alien in an ubuntu machine:
$ sudo apt install alien -y
To install alien in redhat based distro:
$ sudo dnf install alien -y
Once installed, we can easily convert any rpm into deb:
$ sudo alien --to-deb myapp.rpm
A file called myapp.deb will be created once alien finished doing its magic.
We can also use alien to convert deb to rpm:
$ sudo alien --to-rpm myapp.deb
A file called myapp.rpm will be created.
We can also convert to tgz package:
$ sudo alien --to-tgz myapp.deb
To generate multiple packages format:
$ sudo alien --to-rpm --to-deb myapp.tgz
No comments:
Post a Comment