Convert deb package to rpm

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Convert deb package to rpm

Postby hythloday » Jul 5th, '15, 08:00

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?
hythloday
 
Posts: 3
Joined: Jul 1st, '15, 05:06

Re: Convert deb package to rpm

Postby ozky » Jul 5th, '15, 09:56

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
Image
Mageia user
User avatar
ozky
 
Posts: 581
Joined: Jul 2nd, '11, 08:48
Location: Nakkila Finland

Re: Convert deb package to rpm

Postby pete910 » Jul 5th, '15, 20:26

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
User avatar
pete910
 
Posts: 357
Joined: Jan 8th, '12, 18:53

Re: Convert deb package to rpm

Postby ozky » Jul 6th, '15, 09:02

Mageia use urpmi to install packages can use rpm but urpmi is default and suggested to use it.
Code: Select all
urpmi package name
Image
Mageia user
User avatar
ozky
 
Posts: 581
Joined: Jul 2nd, '11, 08:48
Location: Nakkila Finland

Re: Convert deb package to rpm

Postby doktor5000 » Jul 6th, '15, 09:16

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18060
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Convert deb package to rpm

Postby ozky » Jul 6th, '15, 11:20

Last edited by doktor5000 on Jul 7th, '15, 09:22, edited 2 times in total.
Reason: removed fullquote
Image
Mageia user
User avatar
ozky
 
Posts: 581
Joined: Jul 2nd, '11, 08:48
Location: Nakkila Finland

Re: Convert deb package to rpm

Postby doktor5000 » Jul 7th, '15, 09:23

Yep it is, sorry I've ignored the link due to the automated URL shortening.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18060
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest