LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 07-19-2010, 10:28 AM   #1
cyker
LQ Newbie
 
Registered: Jul 2010
Location: Beijing
Distribution: Arch
Posts: 9

Rep: Reputation: 0
Any program automatically convert .deb to .pkg.tar.gz/xz


Hi all, I'm wondering whether there is a program in Arch Linux that can automatically convert .deb package into .pkg.tar.gz/xz, which can be conveniently installed by pacman.

I ask this because I use checkinstall to install binaries compiled from source. And checkinstall doesn't support .pkg.tar.gz/xz yet.

Thanks.
 
Old 07-19-2010, 10:44 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Aren't Arch packages pretty much the same as Slackware packages, with the possible exception of the .PKGINFO file on Arch vs the SlackDesc file on Slackware? Maybe someone can verify this.

If they are the same (or nearly the same) and there's not an Arch-specific tool to do the conversion, then have a look at the deb2tgz script here (there may be others): http://code.google.com/p/deb2tgz/downloads/list

Note that the slackware .tgz extension just indicates that it's a slackware package - the archive itself is still a .tar.gz inside.

A Slackware package is just a binary tar archive ready for installation, as is (AFAIK) a Arch package. You may need to fiddle with the script or tune it a bit to suit your needs, like maybe to alter the finished package extension, or add a .PGKINFO file, but it's close already.

P.S. - note that both Slackware and apparently Arch are using/moving to the XZ compression, so a particular version of the script may or may not create packages with one or the other extension.

Best of luck,

Last edited by GrapefruiTgirl; 07-19-2010 at 10:46 AM.
 
Old 07-19-2010, 11:59 PM   #3
cyker
LQ Newbie
 
Registered: Jul 2010
Location: Beijing
Distribution: Arch
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by GrapefruiTgirl View Post
A Slackware package is just a binary tar archive ready for installation, as is (AFAIK) a Arch package. You may need to fiddle with the script or tune it a bit to suit your needs, like maybe to alter the finished package extension, or add a .PGKINFO file, but it's close already.
I know little about Slackware package, but the Arch package is simple -- it's nothing but the binary files plus a .PKGINFO file.

Currently I just extract all the binary files in a .deb generated by checkinstall. And then I write a simple PKGBUILD and run makepkg to re-pack it into an Arch package. This works. But I don't want to do this manually every time I do an installation-from-source. And currently I don't quite care about the package information, which saves time but, is bad.

So I just wonder whether someone else has made such a tool to convert between different packages. That would save a lot of work, isn't it? Otherwise maybe I can write one myself.
 
Old 07-20-2010, 01:57 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
This works. But I don't want to do this manually every time I do an installation-from-source.
welcome to the world of Arch

" the Arch Way"
http://wiki.archlinux.org/index.php/The_Arch_Way
 
  


Reply



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
How to install .deb pkg, thru console, thats in current directory? linus72 Debian 1 08-25-2009 08:58 PM
trying to install a java .bin trouble creating deb pkg randell6564 Ubuntu 4 06-30-2006 09:04 PM
kernel: make deb-pkg coax1984 Linux - Software 0 10-27-2004 08:08 AM
How to convert .deb file to .tar file on redhat? zhu_liheng Linux - Newbie 1 01-15-2004 08:11 PM
deb vs tgz pkg kvikki Linux From Scratch 4 10-19-2003 01:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 08:11 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration