<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Deb on Details...</title>
    <link>https://www.deepreflect.net/tags/deb/</link>
    <description>Recent content in Deb on Details...</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>Copyright © 2003 - 2026 Leonardo Rizzi</copyright>
    <lastBuildDate>Tue, 30 Jun 2026 03:28:29 +0200</lastBuildDate>
    <atom:link href="https://www.deepreflect.net/tags/deb/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Extract files from DEB package</title>
      <link>https://www.deepreflect.net/2009/11/10/extract-file-from-deb-package/</link>
      <pubDate>Tue, 10 Nov 2009 06:00:17 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=744</guid> 
      <description>&lt;p&gt;Some day ago, I wrote about RPM extraction, today I need content of DEB packcage, on the contrary of rpm systems debian package manager allow to extract natively by this command:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;#dpkg-deb -x somepackage.i386.deb
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;But my problem is different, I not using Debian sytem, fortunately DEB files are &amp;ldquo;ar&amp;rdquo; archives, which contain three files:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;debian-binary&lt;/li&gt;
&lt;li&gt;control.tar.gz&lt;/li&gt;
&lt;li&gt;data.tar.gz&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;first, extract &amp;ldquo;ar&amp;rdquo; archive with this simple command:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# ar vx somepackage.i386.deb&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;then extract the contents of data.tar.gz using tar:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Some day ago, I wrote about RPM extraction, today I need content of DEB packcage, on the contrary of rpm systems debian package manager allow to extract natively by this command:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>#dpkg-deb -x somepackage.i386.deb
</span></span></code></pre></div><p>But my problem is different, I not using Debian sytem, fortunately DEB files are &ldquo;ar&rdquo; archives, which contain three files:</p>
<ul>
<li>debian-binary</li>
<li>control.tar.gz</li>
<li>data.tar.gz</li>
</ul>
<p>first, extract &ldquo;ar&rdquo; archive with this simple command:</p>
<p><code># ar vx somepackage.i386.deb</code></p>
<p>then extract the contents of data.tar.gz using tar:</p>
<p><code># tar -xzvf data.tar.gz</code></p>
<p>Or, if you want, you can made in one step:</p>
<p><code># ar p somepackage.i386.deb data.tar.gz | tar zx</code></p>
]]></content:encoded>
    </item>
  </channel>
</rss>
