You are not logged in.

#1 2009-01-11 03:03:26

pluckypigeon
Member
Registered: 2009-01-09
Posts: 86

How can I install debs or rpms in Arch?

Is there a way I can install or compile these?

Offline

#2 2009-01-11 03:20:09

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: How can I install debs or rpms in Arch?

...This is arch. RPMs and DEBs are for Red Hat and Debian, respectively. You should be able to find the packages in the AUR, write pkgbuilds for them, or compile them from source. You could also look at the program "alien".

Offline

#3 2009-01-11 03:26:45

weasel8
Member
Registered: 2008-12-15
Posts: 149

Re: How can I install debs or rpms in Arch?

You may want to have a look at deb2targz and rpmextract.

Offline

#4 2009-01-11 03:27:47

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: How can I install debs or rpms in Arch?

After you convert the deb/rpm with deb2targz/rpmextract, it's just a matter of copying all the files to the right place in the filesystem.  The cleanest method would be to write a simple PKGBUILD (consult the wiki).

Last edited by tdy (2009-01-11 03:29:18)

Offline

#5 2009-01-11 03:29:01

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: How can I install debs or rpms in Arch?

If you really have to use a deb or rpm file, I recommend making a pacman package which uses the above mentioned tools to extract the files.  That way pacman will still be managing your files.

Offline

#6 2009-01-11 03:34:55

pluckypigeon
Member
Registered: 2009-01-09
Posts: 86

Re: How can I install debs or rpms in Arch?

thanks everyone for your help

Offline

#7 2009-01-19 10:11:50

Kirurgs
Member
Registered: 2008-10-20
Posts: 144

Re: How can I install debs or rpms in Arch?

Still, is anyone aware of postinstall, preinstall and other scripts that appear in rpm and deb files? I have to install some packages that are .rpm only, I'll try to map these pre post scripts to pacman functions that might result in PKGBUILD... wink
I wonder why noone else encounter such a problem, maybe only me is using Lotus Notes (as an example) smile

Last edited by Kirurgs (2009-01-19 10:13:00)

Offline

#8 2009-02-05 12:57:13

dschauer
Member
Registered: 2008-02-28
Posts: 95

Re: How can I install debs or rpms in Arch?

Kirugs, I'm looking into doing something similar. I though want to be able to rebuild src rpms on arch linux and using the resulting rpm in the PKGBUILD. I plan to be using the rpm commands directly (a full  rpm installed on arch, but the pacman database only used to keep track of what is installed).

In other words I want to create a PKGBUILD for an arch-rpm evironment, and then an easy template to use src rpms as the source in subsequent PKGBUILDs (using rpmbuild --rebuild in the PKGBUILD and then extracting the subsequent rpm and running the pre/post scripts).

Last edited by dschauer (2009-02-05 14:06:47)

Offline

#9 2009-02-05 15:10:36

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: How can I install debs or rpms in Arch?

dschauer - is there some advantage in using src rpms, instead of the upstream source code? As I understand your post, you're going from src rpm to binary rpm to Arch package, all inside a PKGBUILD, when you could just go from upstream src to Arch package i.e. like a normal PKGBUILD.

I've never used rpms, so I'm just wondering why you want to do this. If it's the pre/post stuff, the Arch way to do that is with a *.install script.

Offline

#10 2009-02-05 15:32:26

dschauer
Member
Registered: 2008-02-28
Posts: 95

Re: How can I install debs or rpms in Arch?

tomk: I use a lot of RPMs at work and we build our own RPMs. (I'm in a work environment that primarily uses RPM based distros). I wanted to have a way that cuts down on the time needed to convert SRC RPMs to Arch Packages.

I guess a generic SRC RPM to PKGBUILD translator and then a tweak of the output if need be (different locations in /etc, modified rc start/stop scripts, etc) would be a more appropiate method to facilitate this.

Offline

#11 2009-02-05 16:24:50

u_no_hu
Member
Registered: 2008-06-15
Posts: 453

Re: How can I install debs or rpms in Arch?

@dschauer
This may be a stupid question... what is the advantage of using a  SRC RPM over normal source?


Don't be a HELP VAMPIRE. Please search before you ask.

Subscribe to The Arch Daily News.

Offline

#12 2009-02-06 00:35:23

dschauer
Member
Registered: 2008-02-28
Posts: 95

Re: How can I install debs or rpms in Arch?

@u_no_hu

Not a stupid question. No real advantage, apart from most of the work of the Archlinux PKGBUILD is already in the RPM spec file, just in a different format.

An RPM spec file to PKGBUILD translator is really all I would need to develop. I just think it is reinventing the wheel to have to create a PKBUILD from scratch when someone has already entered in all that information elsewhere.

Offline

Board footer

Powered by FluxBB