Howto install or setup rpm package on Ubuntu 12 or Debian

Howto install or setup rpm package on Ubuntu 12 or Debian

 

1. Now we have one rpm package on Ubuntu 12

root@ubuntu:~# ls
vim-enhanced-7.2.411-1.8.el6.i686.rpm
root@ubuntu:~#

2. Install alien package for converting rpm to deb

root@ubuntu:~# sudo apt-get install alien dpkg-dev debhelper build-essential
Reading package lists… Done
Building dependency tree
Reading state information… Done
dpkg-dev is already the newest version.
dpkg-dev set to manually installed.
build-essential is already the newest version.
The following extra packages will be installed:
dh-apparmor gettext html2text intltool-debian libcroco3 libgettextpo0
liblua5.1-0 libmail-sendmail-perl libnspr4 libnss3 librpm2 librpmbuild2
librpmio2 librpmsign0 libsys-hostname-long-perl libunistring0 po-debconf rpm
rpm-common rpm2cpio
Suggested packages:
lsb-rpm lintian dh-make gettext-doc libmail-box-perl elfutils rpm-i18n
The following NEW packages will be installed:
alien debhelper dh-apparmor gettext html2text intltool-debian libcroco3
libgettextpo0 liblua5.1-0 libmail-sendmail-perl libnspr4 libnss3 librpm2
librpmbuild2 librpmio2 librpmsign0 libsys-hostname-long-perl libunistring0
po-debconf rpm rpm-common rpm2cpio
0 upgraded, 22 newly installed, 0 to remove and 48 not upgraded.
Need to get 4,890 kB of archives.
After this operation, 13.6 MB of additional disk space will be used.
Do you want to continue [Y/n]?Y

3. Use alien to covert rpm package to deb package

root@ubuntu:~# alien vim-enhanced-7.2.411-1.8.el6.i686.rpm
warning: vim-enhanced-7.2.411-1.8.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vim-enhanced-7.2.411-1.8.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vim-enhanced-7.2.411-1.8.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vim-enhanced-7.2.411-1.8.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vim-enhanced-7.2.411-1.8.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vim-enhanced-7.2.411-1.8.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vim-enhanced-7.2.411-1.8.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vim-enhanced-7.2.411-1.8.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vim-enhanced-7.2.411-1.8.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vim-enhanced-7.2.411-1.8.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vim-enhanced-7.2.411-1.8.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vim-enhanced-7.2.411-1.8.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vim-enhanced-7.2.411-1.8.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vim-enhanced-7.2.411-1.8.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vim-enhanced-7.2.411-1.8.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vim-enhanced-7.2.411-1.8.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vim-enhanced-7.2.411-1.8.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
vim-enhanced_7.2.411-2.8_i386.deb generated
root@ubuntu:~#

4. Now we are having deb package

root@ubuntu:~# ls
vim-7.2.411-1.8.el6.src.rpm vim-enhanced-7.2.411-1.8.el6.i686.rpm vim-enhanced_7.2.411-2.8_i386.deb
root@ubuntu:~#

5. Install deb package to Ubuntu 12

root@ubuntu:~# dpkg -i vim-enhanced_7.2.411-2.8_i386.deb
(Reading database … 33251 files and directories currently installed.)
Unpacking vim-enhanced (from vim-enhanced_7.2.411-2.8_i386.deb) ………………..

That’s all. Thanks for using IThelpblog.com.

 

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>