-   Slackware (
-   -   Best way to install .deb package in Slackware? (

D1ver 10-12-2011 04:19 AM

Best way to install .deb package in Slackware?
I've bought the latest Humble Bundle recently and one of the games is distributed only as a .deb file.

Whats the correct way to install this in Slackware?

sycamorex 10-12-2011 04:35 AM

You could use the deb2tgz tool to convert it.

fgcl2k 10-12-2011 04:42 AM

You could try using 'alien' to convert the package.

You can also extract directly the contents of the deb file with 'ar'.

D1ver 10-12-2011 04:55 AM

Thanks guys,
deb2pkg did the job very easily. Now I can play Space Chem :)

hitest 10-12-2011 08:11 AM

I've used gnashley's src2pkg utility to create slackware packages from .deb source files. I highly recommend src2pkg. :)

ottavio 10-12-2011 09:56 AM

Best way to install .deb package in Slackware?

I think the title is misleading, it should have been "install xyz.deb package in Slackware?".

As a general rule, one should not just install a package that was meant for another distribution if not in an emergency and if no other solutions exist. It's better to find the source and build a package with slackbuilds.

D1ver 10-12-2011 06:51 PM

@Hitest: Thanks! I already had src2pkg installed but I didn't think to check if could do the job. I assumed it was just for source archives.

@ottavio: I know it's generally a poor way to install software, but I was trying to install a closed source Linux game which was only distributed as a .deb package.

bonixavier 10-12-2011 08:11 PM

D1ver, HumbleBundle too?

BTW, you can manually make a Slack package out of most .deb files and it is not really complicated. .debs have one particular file you should be interested in: data.tar.gz. They keep their in another file called control.tar.gz which you should inspect and, if needed, incorporate into a post-install script.

In the case of SpaceChem, you can do the following:

mkdir -p work/pkg
cd work
ar -x /path/to/SpaceChem-i386.deb
cd pkg
tar xvf ../data.tar.gz
Then, as root, you run makepkg in the work/pkg directory, like
makepkg -l y -c n /tmp/SpaceChem-i386.txz

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