LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-12-2011, 03:19 AM   #1
D1ver
Member
 
Registered: Jan 2010
Distribution: Slackware 13.37
Posts: 598
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Best way to install .deb package in Slackware?


Hello,
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?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 10-12-2011, 03:35 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
You could use the deb2tgz tool to convert it.
 
6 members found this post helpful.
Old 10-12-2011, 03:42 AM   #3
fgcl2k
Member
 
Registered: Jan 2011
Distribution: Slackware 14.1
Posts: 118

Rep: Reputation: 32
You could try using 'alien' to convert the package.

http://www.slacky.eu/asche/pkgs/index.php?ver=15&pkg=38

You can also extract directly the contents of the deb file with 'ar'.
 
1 members found this post helpful.
Old 10-12-2011, 03:55 AM   #4
D1ver
Member
 
Registered: Jan 2010
Distribution: Slackware 13.37
Posts: 598

Original Poster
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Thanks guys,
deb2pkg did the job very easily. Now I can play Space Chem
 
2 members found this post helpful.
Old 10-12-2011, 07:11 AM   #5
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
I've used gnashley's src2pkg utility to create slackware packages from .deb source files. I highly recommend src2pkg.
 
Old 10-12-2011, 08:56 AM   #6
ottavio
Member
 
Registered: Nov 2007
Posts: 312

Rep: Reputation: 46
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.
 
Old 10-12-2011, 05:51 PM   #7
D1ver
Member
 
Registered: Jan 2010
Distribution: Slackware 13.37
Posts: 598

Original Poster
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
@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.
 
Old 10-12-2011, 07:11 PM   #8
bonixavier
Member
 
Registered: Sep 2010
Distribution: Slackware
Posts: 320

Rep: Reputation: 69
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 doinst.sh 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:
Code:
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
 
7 members found this post helpful.
Old 01-27-2017, 08:32 PM   #9
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
src2pkg with .deb source

Quote:
Originally Posted by hitest View Post
I've used gnashley's src2pkg utility to create slackware packages from .deb source files. I highly recommend src2pkg.
Following the advice in this thread, I've installed src2pkg, but I can't seem to find any examples to convert a .deb to a Slackware package. It is as simple as `src2pkg xyz.deb`? I hesitate to experiment w/o some guidance.

bonixavier solution looks simple enough, but now that I've gone through the effort to install src2pkg I'd like to try it.
 
Old 01-28-2017, 09:37 AM   #10
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
mfoley, I have little experience with src2pkg, but there is a simple utility out there called deb2tgz that will do what it says, convert a .deb package to a Slackware tgz package (they also have deb2txz if you'd rather have the increased compression).

https://github.com/jbarrett/deb2tgz
 
1 members found this post helpful.
Old 01-28-2017, 10:36 AM   #11
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
OK, I'll try deb2tgz. But, sorry to be a complete idiot, the link I found to download this is https://sourceforge.net/projects/deb2tgz/. However, I cannot find a link or button anywhere on that page to dowwnload it. Can you straighten me out?

Later ... never mind this post. After more searching I found it at SlackBuilds. Unfortunately, it doesn't work on this particular .deb file

Last edited by mfoley; 01-28-2017 at 11:17 AM.
 
Old 01-28-2017, 10:41 AM   #12
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
Why not follow the link bassmadrigal gave you?
 
Old 01-28-2017, 10:42 AM   #13
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Just clone the repo I linked to and run the SlackBuild. It will produce a deb2tgz package that you can then install.

Code:
git clone https://github.com/jbarrett/deb2tgz.git
cd deb2tgz
sh deb2tgz.SlackBuild
installpkg /tmp/deb2tgz*
 
1 members found this post helpful.
Old 11-06-2022, 03:00 AM   #14
H1p8r10n
Member
 
Registered: Feb 2016
Location: on the border of milky way
Distribution: Slackware
Posts: 154

Rep: Reputation: Disabled
Hi,

Reanimating this old thread...

As long as the deb package is using same system libs & toolchain as your running Slackware : the best way to create a perfect Slackware package from a deb package : is using Zenwalk's "SlackBuild" tool.

All the best

Code:
bash-5.2# SlackBuild jellyfin-server-10.8.7.deb 
Extracting source jellyfin-server-10.8.7.deb 
./
./etc/
./etc/default/
./etc/default/jellyfin
./etc/init/
./etc/init/jellyfin.conf
./etc/init.d/
./etc/init.d/jellyfin
./etc/jellyfin/
./etc/jellyfin/logging.json
./etc/sudoers.d/
./etc/sudoers.d/jellyfin-sudoers
./etc/systemd/
./etc/systemd/system/
./etc/systemd/system/jellyfin.service.d/
./etc/systemd/system/jellyfin.service.d/jellyfin.service.conf
./lib/
./lib/systemd/
./lib/systemd/system/
./lib/systemd/system/jellyfin.service
./usr/
./usr/lib/
./usr/lib/jellyfin/
./usr/lib/jellyfin/bin/
./usr/lib/jellyfin/bin/BDInfo.dll
./usr/lib/jellyfin/bin/BlurHashSharp.SkiaSharp.dll
./usr/lib/jellyfin/bin/BlurHashSharp.dll
./usr/lib/jellyfin/bin/CommandLine.dll
./usr/lib/jellyfin/bin/DiscUtils.Core.dll
./usr/lib/jellyfin/bin/DiscUtils.Iso9660.dll
./usr/lib/jellyfin/bin/DiscUtils.Streams.dll
./usr/lib/jellyfin/bin/DiscUtils.Udf.dll
./usr/lib/jellyfin/bin/DotNet.Glob.dll
./usr/lib/jellyfin/bin/DvdLib.dll
./usr/lib/jellyfin/bin/DvdLib.xml
(...)
./usr/lib/jellyfin/bin/wwwroot/api-docs/
./usr/lib/jellyfin/bin/wwwroot/api-docs/banner-dark.svg
./usr/lib/jellyfin/bin/wwwroot/api-docs/redoc/
./usr/lib/jellyfin/bin/wwwroot/api-docs/redoc/custom.css
./usr/lib/jellyfin/bin/wwwroot/api-docs/swagger/
./usr/lib/jellyfin/bin/wwwroot/api-docs/swagger/custom.css
./usr/lib/jellyfin/bin/zlib.net.dll
./usr/lib/jellyfin/restart.sh
./usr/share/
./usr/share/doc/
./usr/share/doc/jellyfin-server/
./usr/share/doc/jellyfin-server/changelog.Debian.gz
./usr/share/doc/jellyfin-server/copyright
ls: cannot access '/zen/sources/jellyfin/tmp/*/': No such file or directory
Aplying patches 
ls: cannot access '/zen/sources/jellyfin/jellyfin-server-*.patch': No such file or directory
About to build jellyfin-server 
Using source jellyfin-server-10.8.7.deb 
output package will be /tmp/jellyfin-server-10.8.7-x86_64-221106.txz 
Executing build.sh 
Installing docs in /tmp/jellyfin-server-10.8.7-x86_64-221106/usr/doc/jellyfin-server-10.8.7 
Executing postbuild script
useradd: user 'jellyfin' already exists
looking up for existing slack-desc on Internet.....
Installing post-install script doinst.sh
Creating package...
chown: warning: '.' should be ':': ‘root.root’

Slackware package maker, version 3.14159265.

Searching for symbolic links:

No symbolic links were found, so we won't make an installation script.
You can make your own later in ./install/doinst.sh and rebuild the
package if you like.

This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!

Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? n

Creating Slackware package:  /tmp/jellyfin-server-10.8.7-x86_64-221106.txz

./
etc/
etc/jellyfin/
etc/jellyfin/logging.json.new
etc/rc.d/
etc/rc.d/rc.jellyfin.new
install/
install/doinst.sh
install/slack-desc
usr/
usr/bin/
usr/bin/jellyfin
usr/doc/
usr/doc/jellyfin-server-10.8.7/
usr/doc/jellyfin-server-10.8.7/build.sh
usr/doc/jellyfin-server-10.8.7/copyright
usr/doc/jellyfin-server-10.8.7/jellyfin-server-postbuild.sh
usr/doc/jellyfin-server-10.8.7/jellyfin-server.SlackBuild
usr/lib64/
usr/lib64/jellyfin/
usr/lib64/jellyfin/bin/
usr/lib64/jellyfin/bin/BDInfo.dll
usr/lib64/jellyfin/bin/BlurHashSharp.SkiaSharp.dll
usr/lib64/jellyfin/bin/BlurHashSharp.dll
usr/lib64/jellyfin/bin/CommandLine.dll
usr/lib64/jellyfin/bin/DiscUtils.Core.dll
usr/lib64/jellyfin/bin/DiscUtils.Iso9660.dll
usr/lib64/jellyfin/bin/DiscUtils.Streams.dll
usr/lib64/jellyfin/bin/DiscUtils.Udf.dll
usr/lib64/jellyfin/bin/DotNet.Glob.dll
usr/lib64/jellyfin/bin/DvdLib.dll
usr/lib64/jellyfin/bin/DvdLib.xml
usr/lib64/jellyfin/bin/Emby.Dlna.dll
usr/lib64/jellyfin/bin/Emby.Dlna.xml
usr/lib64/jellyfin/bin/Emby.Drawing.dll
usr/lib64/jellyfin/bin/Emby.Drawing.xml
usr/lib64/jellyfin/bin/Emby.Naming.dll
usr/lib64/jellyfin/bin/Emby.Naming.xml
(...)
usr/lib64/jellyfin/bin/System.Text.Json.dll
usr/lib64/jellyfin/bin/System.Text.RegularExpressions.dll
usr/lib64/jellyfin/bin/System.Threading.Channels.dll
usr/lib64/jellyfin/bin/System.Threading.Overlapped.dll
usr/lib64/jellyfin/bin/System.Threading.Tasks.Dataflow.dll
usr/lib64/jellyfin/bin/System.Threading.Tasks.Extensions.dll
usr/lib64/jellyfin/bin/System.Threading.Tasks.Parallel.dll
usr/lib64/jellyfin/bin/System.Threading.Tasks.dll
usr/lib64/jellyfin/bin/System.Threading.Thread.dll
usr/lib64/jellyfin/bin/System.Threading.ThreadPool.dll
usr/lib64/jellyfin/bin/System.Threading.Timer.dll
usr/lib64/jellyfin/bin/System.Threading.dll
usr/lib64/jellyfin/bin/System.Transactions.Local.dll
usr/lib64/jellyfin/bin/System.Transactions.dll
usr/lib64/jellyfin/bin/System.ValueTuple.dll
usr/lib64/jellyfin/bin/System.Web.HttpUtility.dll
usr/lib64/jellyfin/bin/System.Web.dll
usr/lib64/jellyfin/bin/System.Windows.dll
usr/lib64/jellyfin/bin/System.Xml.Linq.dll
usr/lib64/jellyfin/bin/System.Xml.ReaderWriter.dll
usr/lib64/jellyfin/bin/System.Xml.Serialization.dll
usr/lib64/jellyfin/bin/System.Xml.XDocument.dll
usr/lib64/jellyfin/bin/System.Xml.XPath.XDocument.dll
usr/lib64/jellyfin/bin/System.Xml.XPath.dll
usr/lib64/jellyfin/bin/System.Xml.XmlDocument.dll
usr/lib64/jellyfin/bin/System.Xml.XmlSerializer.dll
usr/lib64/jellyfin/bin/System.Xml.dll
usr/lib64/jellyfin/bin/System.dll
usr/lib64/jellyfin/bin/TMDbLib.dll
usr/lib64/jellyfin/bin/TagLibSharp.dll
usr/lib64/jellyfin/bin/UtfUnknown.dll
usr/lib64/jellyfin/bin/WindowsBase.dll
usr/lib64/jellyfin/bin/createdump
usr/lib64/jellyfin/bin/jellyfin
usr/lib64/jellyfin/bin/jellyfin.deps.json
usr/lib64/jellyfin/bin/jellyfin.dll
usr/lib64/jellyfin/bin/jellyfin.runtimeconfig.json
usr/lib64/jellyfin/bin/jellyfin.xml
usr/lib64/jellyfin/bin/libSkiaSharp.so
usr/lib64/jellyfin/bin/libSystem.Globalization.Native.so
usr/lib64/jellyfin/bin/libSystem.IO.Compression.Native.so
usr/lib64/jellyfin/bin/libSystem.Native.so
usr/lib64/jellyfin/bin/libSystem.Net.Security.Native.so
usr/lib64/jellyfin/bin/libSystem.Security.Cryptography.Native.OpenSsl.so
usr/lib64/jellyfin/bin/libclrjit.so
usr/lib64/jellyfin/bin/libcoreclr.so
usr/lib64/jellyfin/bin/libcoreclrtraceptprovider.so
usr/lib64/jellyfin/bin/libdbgshim.so
usr/lib64/jellyfin/bin/libe_sqlite3.so
usr/lib64/jellyfin/bin/libhostfxr.so
usr/lib64/jellyfin/bin/libhostpolicy.so
usr/lib64/jellyfin/bin/libmscordaccore.so
usr/lib64/jellyfin/bin/libmscordbi.so
usr/lib64/jellyfin/bin/libse.dll
usr/lib64/jellyfin/bin/mscorlib.dll
usr/lib64/jellyfin/bin/netstandard.dll
usr/lib64/jellyfin/bin/prometheus-net.DotNetRuntime.dll
usr/lib64/jellyfin/bin/wwwroot/
usr/lib64/jellyfin/bin/wwwroot/api-docs/
usr/lib64/jellyfin/bin/wwwroot/api-docs/banner-dark.svg
usr/lib64/jellyfin/bin/wwwroot/api-docs/redoc/
usr/lib64/jellyfin/bin/wwwroot/api-docs/redoc/custom.css
usr/lib64/jellyfin/bin/wwwroot/api-docs/swagger/
usr/lib64/jellyfin/bin/wwwroot/api-docs/swagger/custom.css
usr/lib64/jellyfin/bin/zlib.net.dll
usr/lib64/jellyfin/restart.sh
var/
var/cache/
var/cache/jellyfin/
var/lib/
var/lib/jellyfin/
var/log/
var/log/jellyfin/
WARNING:  zero length file usr/lib64/jellyfin/bin/wwwroot/api-docs/redoc/custom.css

Slackware package /tmp/jellyfin-server-10.8.7-x86_64-221106.txz created.

jellyfin-server: Zenwalk package for jellyfin-server 
jellyfin-server:
jellyfin-server: This jellyfin-server package was created for Zenwalk GNU Linux.  
jellyfin-server: It can be installed on any Slackware Linux system.
jellyfin-server: 
jellyfin-server: For more information, see:  http://www.zenwalk.org
jellyfin-server:
jellyfin-server:
jellyfin-server:
jellyfin-server:
jellyfin-server:

Last edited by H1p8r10n; 11-06-2022 at 03:15 AM.
 
1 members found this post helpful.
Old 11-06-2022, 06:22 AM   #15
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Quote:
Originally Posted by H1p8r10n View Post
Hi,

Reanimating this old thread...

As long as the deb package is using same system libs & toolchain as your running Slackware : the best way to create a perfect Slackware package from a deb package : is using Zenwalk's "SlackBuild" tool.

<<snip>>
H1p8r10n --

Very interesting !

Where does one find Zenwalk's SlackBuild tool ?

Thanks

-- kjh
 
  


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
install destination of deb package jeowu Linux - Software 7 07-02-2010 01:35 PM
Can't install .Deb file or (package) Xzibit Linux - Newbie 28 01-16-2010 02:58 PM
Is there any way to install .deb package to Fedora kartik_mistry Debian 5 06-18-2009 05:07 PM
How to install deb package tstrickland Linux - Newbie 10 07-21-2005 06:39 PM
Can I install a .deb package into Vector? Fritz_Monroe Linux - Newbie 2 05-31-2005 05:52 PM

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

All times are GMT -5. The time now is 12:40 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