How to install .rpm package.

Questions about applications and software
Forum rules
Before you post please read how to get help
Locked
mipcar
Level 3
Level 3
Posts: 136
Joined: Thu Feb 05, 2009 6:37 am
Location: Melbourne,Victoria,Australia.

How to install .rpm package.

Post by mipcar »

Hi,
I've looked in tutorials and on here without success so I'll ask specifically.

My problem:
I downloaded from a Japanese site drivers for my Canon printer.
They have saved ( I assume successfully) on my desktop. Now I need someone to step me through the process of opening and installing them.
I've tried looking in software manager and package manager (used both for installing from Linux site) but cannot work out how to use them to open and install this driver.

Help please.

Mychael
Always something to learn for those open to learning.
User avatar
proxima_centauri
Level 11
Level 11
Posts: 3944
Joined: Tue Dec 25, 2007 3:24 pm
Location: NB, Canada

Re: How to install .rpm package.

Post by proxima_centauri »

Install the program "alien" in Synaptic.
Then in terminal

Code: Select all

sudo alien -d *.rpm
where * is the name of the package.
mipcar
Level 3
Level 3
Posts: 136
Joined: Thu Feb 05, 2009 6:37 am
Location: Melbourne,Victoria,Australia.

Re: How to install .rpm package.

Post by mipcar »

Thanks but that does not work.. It says it cannot find the .rpm file... It's on my desktop.

I've posted a similar question in Newbies suppliing more information about what I have tried, maybe you might get an idea for me from reading that.

Mychael
Always something to learn for those open to learning.
User avatar
Fred
Level 10
Level 10
Posts: 3337
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: How to install .rpm package.

Post by Fred »

mipcar,

cd /home/fred/Desktop

then

sudo alien -d *.rpm

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
mipcar
Level 3
Level 3
Posts: 136
Joined: Thu Feb 05, 2009 6:37 am
Location: Melbourne,Victoria,Australia.

Re: How to install .rpm package.

Post by mipcar »

Thanks, that worked up to a point.. Bash commands worked in terminal... the sudo -d command was accepted but nothing seems to have happened beyond that.

Mychael
Always something to learn for those open to learning.
User avatar
merlwiz79
Level 8
Level 8
Posts: 2419
Joined: Wed Apr 04, 2007 1:50 pm
Location: Here again :)

Re: How to install .rpm package.

Post by merlwiz79 »

I always just converted it to a debian package to install.

Code: Select all

sudo alien -k --scripts <file name>.rpm
Image
mipcar
Level 3
Level 3
Posts: 136
Joined: Thu Feb 05, 2009 6:37 am
Location: Melbourne,Victoria,Australia.

Re: How to install .rpm package.

Post by mipcar »

Again,
Command string works, as in doesn't say invalid command or anything like that, just does nothing that I can see.

Mychael
Always something to learn for those open to learning.
User avatar
Fred
Level 10
Level 10
Posts: 3337
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: How to install .rpm package.

Post by Fred »

mipcar,

Alien isn't 100%. What merlwiz79 said should work. It could be that rpm file won't work on a Debian based system. But I haven't checked into it.

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
mipcar
Level 3
Level 3
Posts: 136
Joined: Thu Feb 05, 2009 6:37 am
Location: Melbourne,Victoria,Australia.

Re: How to install .rpm package.

Post by mipcar »

Well thanks for the help anyway guys.

Mychael
Always something to learn for those open to learning.
User avatar
merlwiz79
Level 8
Level 8
Posts: 2419
Joined: Wed Apr 04, 2007 1:50 pm
Location: Here again :)

Re: How to install .rpm package.

Post by merlwiz79 »

Got a link to the rpm?
Maybe it was just a corrupt download.
Image
mipcar
Level 3
Level 3
Posts: 136
Joined: Thu Feb 05, 2009 6:37 am
Location: Melbourne,Victoria,Australia.

Re: How to install .rpm package.

Post by mipcar »

merlwiz79 wrote:Got a link to the rpm?
Maybe it was just a corrupt download.
I'll try to track it down.. It was a site in mainly Japanese.

Would it have any effect if I saved it somewhere other then desktop?

Mychael
Always something to learn for those open to learning.
gnfpt
Level 1
Level 1
Posts: 3
Joined: Sat Aug 17, 2013 1:43 pm

Re: How to install .rpm package.

Post by gnfpt »

Hello,

alien (sudo alien -d --script packagename.rpm) will only convert the .rpm to a .deb.
To install the package you should do: sudo dpkg -i packagename.deb.

~/gnf.pt
User avatar
proxima_centauri
Level 11
Level 11
Posts: 3944
Joined: Tue Dec 25, 2007 3:24 pm
Location: NB, Canada

Re: How to install .rpm package.

Post by proxima_centauri »

necrobump. topic locked.
Locked