Ask Your Question
0

fedora + deb [closed]

asked 2017-09-05 08:39:26 -0500

alinux gravatar image

How do I deal with .deb programs in Fedora example application discord

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by alinux
close date 2017-09-05 14:59:10.459807

Comments

Discord has tar.gz package with a binary inside that works on Fedora. I know your asking about debs specifically, but just in case someone sees this and just wants discord.

darakus gravatar imagedarakus ( 2017-09-05 14:23:12 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2017-09-05 13:50:15 -0500

Well, first, .rpm and .deb are not programs, they are archives used to install files (usually but not always programs) onto your system.

The short and probably best answer is you do not use .deb to install anything on Fedora.

This is due to a few issues:

First and most important is Debian / Ubuntu does not use the exact same conventions as Fedora and there can be problems with issues as diverse as naming of libraries to boot (init / systemd) scripts, to dependencies, ufw vs firewalld, etc, to compiling options for binaries, to optional packages.

Second, both .rpm and ,deb make use of scripts, both pre and post install scripts and there really is no easy way to convert the pre/post install tasks and scripts from .rpm format to .deb format .

If you want to understand the details see the Fedora and Debian packaging guides

Fedora - https://fedoraproject.org/wiki/HowtocreateanRPM_package

Debian - https://www.debian.org/doc/manuals/ma...

Yes those documents are long and technical and that should be your first clue of what I am saying.

Now there is a package "alien" which can be used to "convert" .rpm < -- > .deb (and others) , but take care, alien really can not resolve all the naming conventions, dependencies, or pre / post install scripts. So while alien can work well with simple packages, it can also fail on more complex packages or worse cause significant damage to the system by overwriting similarly named, but different functioning system libs / programs.

My advice would be to compile from source code if a .rpm is not available.

If the source code is not available, I would extract the .deb and manually review the contents and pre / post intall scripts.

See :

https://blog.packagecloud.io/eng/2015...

and

https://linux-tips.com/t/how-to-extra...

Once you have extracted the contents of a .deb you can usually either manually install them (into a "safe" location such as /usr/local or /opt ) or make a .rpm from the contents.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2017-09-05 08:39:26 -0500

Seen: 863 times

Last updated: Sep 05 '17