<?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; Deb</title> <atom:link href="http://kevin.deldycke.com/tag/deb/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>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/14 queries in 0.005 seconds using apc
Object Caching 522/539 objects using apc

Served from: kevin.deldycke.com @ 2012-02-08 03:40:58 -->
