PDA

View Full Version : .deb -> .rpm && .rpm -> .deb



darkscript
11th January 2007, 09:16 PM
Is there any way to convert .deb files to an rpm?

Like some sort of nifty command line program or something? That would be super cool.

Is it even possible?

wesamel
11th January 2007, 09:24 PM
I've used alien (http://kitenet.net/~joey/code/alien.html) once and it worked perfectly.
To install, extract then go to the directory in the terminal and do:

perl Makefile.PL
make
sudo make install

To convert a .deb the command is
alien -r package.deb

duh
23rd December 2007, 04:13 PM
I tried to install alien but errors appeared

[root@localhost alien]# perl Makefile.PL
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at Makefile.PL line 2.
BEGIN failed--compilation aborted at Makefile.PL line 2.

Am I missing something?

leigh123linux
23rd December 2007, 04:40 PM
I tried to install alien but errors appeared

[root@localhost alien]# perl Makefile.PL
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at Makefile.PL line 2.
BEGIN failed--compilation aborted at Makefile.PL line 2.

Am I missing something?


Try install


su
yum install perl-ExtUtils-MakeMaker



Or you could use the alien rpm that I made :)

http://www.4shared.com/file/32845863/a7a7e7a4/alien-869-1fc8noarch.html

duh
24th December 2007, 12:42 AM
I did what you suggested. Here's the outcome:

[root@localhost alien]# perl Makefile.PL
Writing Makefile for Alien
[root@localhost alien]# make
bash: make: command not found

here's the list of the directory of my alien:

[root@localhost alien]# ls
Alien alien.pl debian INSTALL patches
alien.lsm alien.spec gendiff.txt Makefile README
alien.lsm.in alien.spec.in GPL Makefile.PL TODO

Am I supposed to have an executable Make file here?

leigh123linux
24th December 2007, 12:45 AM
I did what you suggested. Here's the outcome:

[root@localhost alien]# perl Makefile.PL
Writing Makefile for Alien
[root@localhost alien]# make
bash: make: command not found

here's the list of the directory of my alien:

[root@localhost alien]# ls
Alien alien.pl debian INSTALL patches
alien.lsm alien.spec gendiff.txt Makefile README
alien.lsm.in alien.spec.in GPL Makefile.PL TODO

Am I supposed to have an executable Make file here?


Try


su
yum install make

Or use the alien rpm that I linked on my last post

duh
24th December 2007, 02:13 AM
I think alien has been installed successfully. Many thanks leigh123