LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-20-2009, 07:36 AM   #1
uday_emersion
LQ Newbie
 
Registered: Feb 2005
Location: India
Posts: 1

Rep: Reputation: 0
Question How to run .rpm files on different flavors of linux?


How to run .rpm files on different flavors of linux?
i.e. Ubuntu mandrak suse

Last edited by uday_emersion; 03-20-2009 at 07:43 AM.
 
Old 03-20-2009, 07:36 AM   #2
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 4
Posts: 306
Blog Entries: 4

Rep: Reputation: 52
alien
 
Old 03-20-2009, 07:40 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,043

Rep: Reputation: 375Reputation: 375Reputation: 375Reputation: 375
Quote:
Originally Posted by uday_emersion View Post
How to run .rpm files on different flavors of linux?
i.e. Ubuntu madrak suse
You could use alien as said to convert between package formats. But I'd try to find a package that works for your distro first. And, if not possible, try to find a tarball or zip file with the sources and compile it yourself.
 
Old 03-20-2009, 07:42 AM   #4
Maligree
Member
 
Registered: Mar 2008
Distribution: Gentoo, CentOS, Fedora, Arch
Posts: 231
Blog Entries: 1

Rep: Reputation: 42
I've only ever used rpm2tgz way back on Slack 9. Suppose that's something.
 
Old 03-20-2009, 08:02 AM   #5
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,518

Rep: Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182
Installing a package not intended for your distribution and version will very often mess up your system because it doesn't rely on the same components, for instance libraries.

If you can't find a package for an application you need, my advice is to make yourself one so at least it will be easy to remove.
 
Old 03-20-2009, 08:15 AM   #6
bobmac010
LQ Newbie
 
Registered: Jun 2003
Distribution: Slackware
Posts: 29

Rep: Reputation: 15
I have always compiled from source if i cannot find a package, even then, the package may not always have the feature(s) I want enabled in the package, so I would have to recompile from source anyway.
But Slackware is rpm2tgz, and very often the rpm packages do not work on Slack...
Not sure about Ubuntu, Mandrake, and Suse.
 
Old 03-20-2009, 08:44 AM   #7
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Rep: Reputation: 30
Mandrake and Suse work with rpm as far as I know...

Suse installs them with yast, I don't remember how Mandrake used to do it (I was still a newbie when I used it)

As for Ubuntu... it already has more packages then any other distro... If you actually do find something that isn't in it's repository, compiling from source is the safest option. Otherwise, use alien, as the others have said
 
Old 03-20-2009, 09:12 AM   #8
metrofox
Member
 
Registered: Jan 2009
Location: Palermo, Italy
Distribution: Slackware
Posts: 236

Rep: Reputation: 37
Sometimes the converting procedure doesn't work, because all distros are different each other. In particular the "not-derived" distros. So, it's very hard to convert a .rpm package built for mandriva(and derives...) on slackware, they use different directories where save programs, etc...So, maybe files could be saved in different places and something couldn't work correctly. Bye.
 
Old 03-20-2009, 10:04 PM   #9
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 4
Posts: 306
Blog Entries: 4

Rep: Reputation: 52
ubuntu has lots and lots of software. You should not need to convert from any other distro.
 
Old 03-21-2009, 07:11 AM   #10
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,043

Rep: Reputation: 375Reputation: 375Reputation: 375Reputation: 375
Quote:
Originally Posted by nigelc View Post
ubuntu has lots and lots of software. You should not need to convert from any other distro.
If that was true there wouldn't be ubuntu users trying to learn how to compile from source or install binary packages. "A lot" != "everything".

Being that said, if the package doesn't exist, I agree that it's always better to create one, so the install/uninstall process is clean. If you can't for any reason, better compile from source and leave the source tree so you can do make uninstall.

I've never used alien and only rarely I use rpm2targz to be able to pick some binaries from a file, but when I do so I store them in my home and just tweak the LD_LIBRARY_PATH and be done with that. I don't like to go dropping .so files around that my package manager is not aware of, because they will cause problems and conflicts for sure in the future.
 
  


Reply

Tags
alien, rpm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cant run gz and rpm files vertozia Red Hat 1 06-11-2006 08:32 PM
how do i run .rpm files in linspire? linux_n00bs Linux - Newbie 7 04-10-2006 12:33 PM
I can't run applications that have been installed from rpm files pisaac Red Hat 9 04-11-2004 11:42 AM
Cant run RPM files hargabyte Mandriva 1 12-22-2003 09:59 PM
Where do RPM files go after I run them? glenn69 Linux - Newbie 3 08-31-2003 03:12 PM


All times are GMT -5. The time now is 12:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration