Ask Your Question
2

how to convert centos rpm package to fedora [closed]

asked 2014-11-19 01:51:18 -0600

atef_myk gravatar image

updated 2014-11-19 19:14:32 -0600

mether gravatar image

i have Centos rpm package , i need to install it on fedora

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by randomuser
close date 2014-11-20 11:24:15.981109

Comments

3

I've not yet encountered a CentOS package that wasn't available in native format for Fedora. And Fedora usually has a newer version, too. Which package are you talking about here?

cobra gravatar imagecobra ( 2014-11-19 04:55:55 -0600 )edit
1

+1, please be specific about the package.

randomuser gravatar imagerandomuser ( 2014-11-19 17:12:25 -0600 )edit

the rpm is for video transcoder called handbrake-gui-0.9.5-1.el6.i686.rpm

atef_myk gravatar imageatef_myk ( 2014-11-20 02:56:05 -0600 )edit

This question carries a link to a repository that provides handbrake in native format for Fedora. It links to here: http://negativo17.org/handbrake/ which tells you how to do it.

cobra gravatar imagecobra ( 2014-11-20 03:22:18 -0600 )edit

That's what I found too. So, we'll probably close this as an irrelevant question - it should've been "How to install handbrake" :)

FranciscoD_ gravatar imageFranciscoD_ ( 2014-11-20 09:43:25 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
4

answered 2014-11-19 03:50:14 -0600

hedayat gravatar image

There is no 'conversion' needed/possible. There are a number of solutions/possibilities:

  1. The package might be already available in Fedora official or thirdparty repositores.
  2. The rpm package might be installed on Fedora directly, without any changes. You can try installing it using yum: yum install my_centos_rpm_package.rpm. If installed successfully, you're (hopefully) fine!
  3. If in the above command, yum complained for missing dependencies, you can also download those dependencies and add them to your yum command: yum install my_centos_rpm_package.rpm dependency1.rpm dependency2.rpm and retry. If compained for more missing dependencies, you can add them too.
  4. If in case 2 or 3 yum complained about conflicts, you can't have a "CLEAN" install. In this case, you can try one of the below solutions (with care).
  5. If available, get the source package of that rpm package (.src.rpm package or its tar.gz source if src.rpm/srpm is not available), and compile it from source. If it is an src.rpm package, you can create a native Fedora package from it using rpmbuild command.
  6. If the conflicting packages have a different version from Fedora ones, but do not overwrite any files from existing packages, you can install the packages manually by extracting their files in the corresponding locations.
  7. If sources are not available, you can try unpacking conflicting package dependencies to an empty directory, install non-conflicting packages using rpm --nodeps forcefully, and tell the package to find the conflicting dependencies in the empty directory. For example, if the conflicting dependencies are .so libraries, you can put them in a new directory and set LD_LIBRARY_PATH to the path of that directory, so that package binary can find those libraries. This might not work for all packages.
  8. Finally (well, this is actually when I should say that you can't install the package in Fedora!), if you found no other solutions, you might create a minimal CentOS chroot directory (using Fedora files/symlinks as far as possible) and install/run the package from that chroot. It's somewhat similar to the approach taken by Software Collections.
edit flag offensive delete link more

Comments

1

I'd suggest using the src rpm and rebuilding it for Fedora - should work most of the time.

FranciscoD_ gravatar imageFranciscoD_ ( 2014-11-19 05:49:08 -0600 )edit

hmm... after second thought, maybe this should be higher in the list. I think it depends on the user.

hedayat gravatar imagehedayat ( 2014-11-19 06:26:09 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-11-19 01:51:18 -0600

Seen: 403 times

Last updated: Nov 20 '14