Page 1 of 1

Convert deb package to rpm

PostPosted: Jul 5th, '15, 08:00
by hythloday
Hi there,

I am in need of some help. I want to install the linux version of Scrivener (https://www.literatureandlatte.com/forum/viewtopic.php?f=33&t=28280). Unfortunately it only comes in a .deb package. I've read that using Alien (which I installed) one can convert .deb to .rpm and vice versa. I have tried this, but in the terminal I keep running
Code: Select all
sudo alien -r -c -v scrivener-1.7.2.3-amd64.deb
but then it tells me that the package cannot be found. I am transcribing directly the name of the file. I've also just tried the command "sudo alien -r (file)" as I have read posts that just use -r and one that said to use -c and -v in addition. I've even tried highlighting the file from my downloads folder and pasting it in the terminal at the appropriate place, yet it still tells me that the file cannot be found.

So what am I doing wrong here? Why can't the file be found? Am I missing anything?

Re: Convert deb package to rpm

PostPosted: Jul 5th, '15, 09:56
by ozky
Try to tell it where your package is maybe sudo is problem.
Code: Select all
sudo alien -r /path to where your deb is

http://linuxaria.com/article/how-to-con ... -viceversa

Re: Convert deb package to rpm

PostPosted: Jul 5th, '15, 20:26
by pete910
For deb to rpm I've just used -r switch.

Found it easier to cd to the relevent dir then do

Code: Select all
alien -r packagename.deb


Then from the resulting rpm generated as root do
Code: Select all
rpm -i pacagedname.rpm

Re: Convert deb package to rpm

PostPosted: Jul 6th, '15, 09:02
by ozky
Mageia use urpmi to install packages can use rpm but urpmi is default and suggested to use it.
Code: Select all
urpmi package name

Re: Convert deb package to rpm

PostPosted: Jul 6th, '15, 09:16
by doktor5000
ozky wrote:Mageia use urpmi to install packages can use rpm but urpmi is default and suggested to use it.
Code: Select all
urpmi package name

Does not answer the question how to convert from .deb to rpm, as scrivener cannot be installed with urpmi as it's not in our repos.

@hythloday: I've described here a shortly how to fetch a current alien version and how to convert, as the alien version from our repos may not be the most recent.
See viewtopic.php?p=40358#p40358
Also pay attention as you prefix it with sudo, it may just tell you that the command "sudo" does not exist, but can't tell as you don't post the exact output which makes it harder to tell.
See our wiki on how to configure sudo, as that is not installed/configured by default: https://wiki.mageia.org/en/Configuring_sudo

Apart from that, for scrivener they also offer simple tarballs that just need to be extracted: http://www.literatureandlatte.com/forum ... 33&t=28280

Re: Convert deb package to rpm

PostPosted: Jul 6th, '15, 11:20
by ozky

Re: Convert deb package to rpm

PostPosted: Jul 7th, '15, 09:23
by doktor5000
Yep it is, sorry I've ignored the link due to the automated URL shortening.