<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Kevin Deldycke &#187; dpkg</title> <atom:link href="http://kevin.deldycke.com/tag/dpkg/feed/" rel="self" type="application/rss+xml" /><link>http://kevin.deldycke.com</link> <description>Free software engineer &#38; wannabe videomaker</description> <lastBuildDate>Fri, 03 Feb 2012 19:08:27 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Using latest stable Kdenlive with a development version of MLT</title><link>http://kevin.deldycke.com/2010/11/latest-stable-kdenlive-development-version-mlt/</link> <comments>http://kevin.deldycke.com/2010/11/latest-stable-kdenlive-development-version-mlt/#comments</comments> <pubDate>Tue, 23 Nov 2010 11:12:53 +0000</pubDate> <dc:creator>Kev</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[apt-get]]></category> <category><![CDATA[aptitude]]></category> <category><![CDATA[dpkg]]></category> <category><![CDATA[Git]]></category> <category><![CDATA[kdenlive]]></category> <category><![CDATA[kubuntu]]></category> <category><![CDATA[mlt]]></category> <category><![CDATA[Video]]></category><guid isPermaLink="false">http://kevin.deldycke.com/?p=2217</guid> <description><![CDATA[Today I stumble upon a bug in the Kdenlive 0.7.8 running on my Kubuntu 10.10: the crop filter was messing with the display ratio of my video clips. Digging the web I found a bug report that was really close &#8230; <a href="http://kevin.deldycke.com/2010/11/latest-stable-kdenlive-development-version-mlt/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Today I stumble upon a bug in the Kdenlive 0.7.8 running on my Kubuntu 10.10: the crop filter was messing with the display ratio of my video clips. Digging the web I <a href="http://www.kdenlive.org/mantis/view.php?id=1814">found a bug report</a> that was really close to my problem. According to the comments, this issue was fixed in the upcoming version of MLT. Is that bug the one I encountered ? The only way to find out was to install the development version of MLT. Here is how I did it&#8230;</p><p>First, make sure to <a href="http://www.kdenlive.org/download-kdenlive-0">use the latest stable Kdenlive stack</a> for you system. For me, the <a href="https://launchpad.net/~sunab/+archive/kdenlive-release/?field.series_filter=maverick">Sunab&#8217;s alternative repository for Kubuntu 10.10</a> was the ultimate source:</p><pre class="brush: bash; title: ; notranslate">
sudo apt-get update &amp;&amp; sudo apt-get install kdenlive
</pre><p>The idea is to keep the version of Kdenlive installed above, and replace the pre-packaged MLT on our system with a custom development version of our choice.</p><p>But first, we&#8217;ll install all the libraries required to build MLT from sources:</p><pre class="brush: bash; title: ; notranslate">
sudo apt-get install libavdevice-dev libswscale-dev libvorbis-dev libsox-dev libsamplerate-dev frei0r-plugins-dev libdv-dev libavformat-dev libquicktime-dev libxml2-dev libsdl-dev libsdl-image1.2-dev
</pre><p>Let&#8217;s now remove the installed MLT. If we use <code>apt-get</code> or KPackageKit, this will remove Kdenlive. So we&#8217;ll use the following command to remove MLT while ignoring all the dependencies:</p><pre class="brush: bash; title: ; notranslate">
sudo dpkg --remove --force-depends libmlt2 libmlt++3 libmlt-data melt
</pre><p>At this point, and every time we try to use it, <code>apt</code> will complain of broken Kdenlive dependencies, and will try to remove it. This mean we can&#8217;t upgrade other packages on the system.</p><p>To avoid this issue, I tried to freeze the state in which Kdenlive and MLT are, by setting the <code>hold</code> flag on <code>kdenlive</code>, <code>kdenlive-data</code>, <code>libmlt2</code>, <code>libmlt++3</code>, <code>libmlt-data</code> and <code>melt</code> packages. I tried with both <code>dpkg</code> and <code>aptitude</code>, but unfortunately it doesn&#8217;t work as expected. So we&#8217;ll continue our hack anyway&#8230;</p><p>Let&#8217;s get MLT sources:</p><pre class="brush: bash; title: ; notranslate">
git clone git://mltframework.org/mlt.git
</pre><p>The command above will give you the latest development version. But if you target a particular revision (like <a href="http://mltframework.org/gitweb/mlt.git?p=mltframework.org/mlt.git;a=commit;h=21a3f68d56ce1237eb6510cdf03ebfc40b5641c2">commit 21a3f68</a> in my case), you have to use this additional command:</p><pre class="brush: bash; title: ; notranslate">
git checkout 21a3f68
</pre><p>We can now follow the <a href="http://www.kdenlive.org/user-manual/downloading-and-installing-kdenlive/installing-source/installing-mlt-rendering-engine">procedure detailed in the Kdenlive manual</a>:</p><pre class="brush: bash; title: ; notranslate">
cd mlt
./configure --prefix=/usr --enable-gpl
make clean
make
sudo make install
</pre><p>That&#8217;s it ! Now you can launch Kdenlive, and if you run the wizard, you&#8217;ll see that the MLT version on your system is the latest:<br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2010/10/kdenlive-with-mlt-dev.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/10/kdenlive-with-mlt-dev-300x195.png" alt="" title="kdenlive-with-mlt-dev" width="300" height="195" class="aligncenter size-medium wp-image-2219" /></a></p><p>Oh, and by the way, it <a href="http://mltframework.org/gitweb/mlt.git?p=mltframework.org/mlt.git;a=commitdiff;h=21a3f68d56ce1237eb6510cdf03ebfc40b5641c2">fixed my problem with the crop filter</a> ! <img src='http://kevin.deldycke.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>Finally, if you want to revert the mess we created on the system, you have to remove the MLT we built in place:</p><pre class="brush: bash; title: ; notranslate">
sudo rm -rf /usr/lib/libmlt*
sudo rm -rf /usr/lib/mlt*
sudo rm -rf /usr/lib/pkgconfig/mlt*
sudo rm -rf /usr/include/mlt*
sudo rm -rf /usr/share/mlt*
</pre><p>I came with the list above by searching my system with the following command:</p><pre class="brush: bash; title: ; notranslate">
sudo find / -path &quot;/home&quot; -prune -or -iname &quot;*mlt*&quot; -print -or -iname &quot;*melt*&quot; -print
</pre><p>Then, we can let <code>apt</code> handle Kdenlive and MLT properly and get back to the pre-packaged binaries:</p><pre class="brush: bash; title: ; notranslate">
sudo apt-get remove kdenlive &amp;&amp; sudo apt-get update &amp;&amp; sudo apt-get install kdenlive
</pre>]]></content:encoded> <wfw:commentRss>http://kevin.deldycke.com/2010/11/latest-stable-kdenlive-development-version-mlt/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>dpkg, APT &amp; Aptitude commands</title><link>http://kevin.deldycke.com/2008/12/dpkg-apt-aptitude-commands/</link> <comments>http://kevin.deldycke.com/2008/12/dpkg-apt-aptitude-commands/#comments</comments> <pubDate>Sun, 28 Dec 2008 17:25:36 +0000</pubDate> <dc:creator>Kev</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[apt]]></category> <category><![CDATA[aptitude]]></category> <category><![CDATA[backport]]></category> <category><![CDATA[CLI]]></category> <category><![CDATA[Deb]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[dpkg]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[ubuntu]]></category><guid isPermaLink="false">http://kevin.deldycke.com/?p=460</guid> <description><![CDATA[List all installed packages: List all recently installed packages: Install a package from a lower-priority repository, like the backport repository: Force reinstallation of a package: Clean aptitude local cache: Uninstall a package throughly (both program files and configuration): Force removal &#8230; <a href="http://kevin.deldycke.com/2008/12/dpkg-apt-aptitude-commands/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<ul><li>List all installed packages:<pre class="brush: bash; title: ; notranslate">
dpkg -l
</pre></li><li>List all recently installed packages:<pre class="brush: bash; title: ; notranslate">
zcat -f /var/log/dpkg.log* | grep &quot;\ install\ &quot; | sort
</pre></li><li>Install a package from a lower-priority repository, like the backport repository:<pre class="brush: bash; title: ; notranslate">
apt-get -t squeeze-backports install my-package
</pre></li><li>Force reinstallation of a package:<pre class="brush: bash; title: ; notranslate">
apt-get -d --reinstall install my-package
dpkg --install --force-confmiss /var/cache/apt/archives/my-package.deb
</pre></li><li>Clean aptitude local cache:<pre class="brush: bash; title: ; notranslate">
apt-get clean
</pre></li><li>Uninstall a package throughly (both program files and configuration):<pre class="brush: bash; title: ; notranslate">
apt-get remove --purge my_package
</pre></li><li>Force removal of a package while ignoring all dependencies:<pre class="brush: bash; title: ; notranslate">
dpkg --remove --force-depends libsomething
</pre></li><li>Remove orphaned pakages:<pre class="brush: bash; title: ; notranslate">
deborphan | xargs apt-get -y remove --purge
</pre></li><li>Show the changelog of a package (here, the linux kernel of Ubuntu):<pre class="brush: bash; title: ; notranslate">
aptitude changelog linux-generic
</pre></li><li>Which package contain a given file:<pre class="brush: bash; title: ; notranslate">
apt-file search file_to_search
</pre></li><li>Get the list of files of a package:<pre class="brush: bash; title: ; notranslate">
apt-file list package_name
</pre></li><li>Remove <code>dpkg</code> lock file:<pre class="brush: bash; title: ; notranslate">
rm /var/lib/dpkg/lock
</pre></li><li>Hold a package with either <code>dpkg</code> or <code>aptitude</code>:<pre class="brush: bash; title: ; notranslate">
echo &quot;kdenlive hold&quot; | dpkg --set-selections
</pre><pre class="brush: bash; title: ; notranslate">
aptitude hold kdenlive
</pre></li><li>Unhold a package:<pre class="brush: bash; title: ; notranslate">
echo &quot;kdenlive install&quot; | dpkg --set-selections
</pre><pre class="brush: bash; title: ; notranslate">
aptitude unhold kdenlive
</pre></li><li>List holded packages:<pre class="brush: bash; title: ; notranslate">
dpkg --get-selections | grep hold
</pre></li></ul> ]]></content:encoded> <wfw:commentRss>http://kevin.deldycke.com/2008/12/dpkg-apt-aptitude-commands/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/8 queries in 0.004 seconds using apc
Object Caching 598/598 objects using apc

Served from: kevin.deldycke.com @ 2012-02-08 03:56:16 -->
