<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://mail.knoppix.net/wiki3/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://mail.knoppix.net/wiki3/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=82.159.136.215</id>
		<title>Knoppix Documentation Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://mail.knoppix.net/wiki3/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=82.159.136.215"/>
		<link rel="alternate" type="text/html" href="https://mail.knoppix.net/wiki/Special:Contributions/82.159.136.215"/>
		<updated>2026-09-19T00:06:20Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.3</generator>

	<entry>
		<id>https://mail.knoppix.net/wiki/Dpkg</id>
		<title>Dpkg</title>
		<link rel="alternate" type="text/html" href="https://mail.knoppix.net/wiki/Dpkg"/>
				<updated>2008-04-08T09:04:32Z</updated>
		
		<summary type="html">&lt;p&gt;82.159.136.215: /* '''To install a .deb package''' */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the &amp;quot;canonical&amp;quot; or &amp;quot;official&amp;quot; utility/command for managing [[Deb files or Debian Packages]].  It is one of several [[package]] management utilities available in Knoppix.  Dpkg can be used to install, uninstall or view information about .deb or Debian packages.  &lt;br /&gt;
&lt;br /&gt;
Instructions for using dpkg may be found by typing &amp;quot;man dpkg&amp;quot; at a console.  The manual can also be found online at various places such as: [http://http://linuxreviews.org/man/dpkg/ man dpkg].  Like any versatile Linux utility, the manual is very, very long, and dpkg has many, many options. The examples below show typical uses of dpkg within Knoppix.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=='''To install a .deb package'''==&lt;br /&gt;
&lt;br /&gt;
*To install a .deb package, superuser or root privileges are needed.  Open a Knoppix console and type either of the commands below:&lt;br /&gt;
&lt;br /&gt;
 sudo dpkg -i packagename&lt;br /&gt;
 sudo dpkg --install packagename&lt;br /&gt;
&lt;br /&gt;
*This next example shows a command to force an install, ignoring dependencies and other problems:&lt;br /&gt;
&lt;br /&gt;
 sudo dpkg --install --force-all packagename &lt;br /&gt;
&lt;br /&gt;
In this case, dpkg will install the package while printing a lot of error messages.    In general, forcing an install is not a wise thing to do.  A package which has been force-installed without its dependencies is said to be &amp;quot;broken&amp;quot;.  Broken packages may lead to instability. Package management tools such as [[synaptic]] will refuse to work further until they are allow to fix the broken package.  So why would you resort to a [[force-install]]?&lt;br /&gt;
&lt;br /&gt;
If you have Gebi in your system, you can install a package opening your file manage (i.e. Nautilus) and clicking in the *.deb file icon.&lt;br /&gt;
&lt;br /&gt;
=='''To unistall a .deb package'''==&lt;br /&gt;
&lt;br /&gt;
*To uninstall a .deb package, also needs superuser or root privileges. Open a console and type either of these commands:&lt;br /&gt;
&lt;br /&gt;
 su dpkg -r packagename&lt;br /&gt;
 su dpkg --remove packagename&lt;br /&gt;
&lt;br /&gt;
*The above leaves behind configuration files. To totally purge everything from your system including configuration files, use either of these commands:&lt;br /&gt;
&lt;br /&gt;
 su dpkg -P packagename&lt;br /&gt;
 su dpkg --purge packagename&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=='''Other uses of dpkg'''==&lt;br /&gt;
&lt;br /&gt;
*To list all the files in a [[package]]&lt;br /&gt;
 dpkg -L packagename&lt;br /&gt;
*To install a package of a particular release ( assuming it's in your sources.list ). &lt;br /&gt;
 apt-get install -t unstable packagename&lt;br /&gt;
*Tells the status (hold, purge etc..) of the package. &lt;br /&gt;
 dpkg --get-selections &amp;lt;package name&amp;gt;&lt;br /&gt;
*To show anything in database with the package name. &lt;br /&gt;
 dpkg -l ¦ grep &amp;lt;package name&amp;gt;&lt;br /&gt;
*To deinstall the package with all configuration files. &lt;br /&gt;
 dpkg --purge &amp;lt;package name&amp;gt;&lt;br /&gt;
*To save or edit your packages status use &lt;br /&gt;
 dpkg --get-selections &amp;gt; current''selections.txt &lt;br /&gt;
re-directs your packages to the file, to restore list &lt;br /&gt;
 dpkg --set-selections &amp;lt; current''selections.txt &lt;br /&gt;
then &lt;br /&gt;
 apt-get update &lt;br /&gt;
to refresh then &lt;br /&gt;
 apt-get upgrade &lt;br /&gt;
to make the changes , also can be used to keep your current settings on any install just restore the list to the new install and &lt;br /&gt;
 apt-get update &lt;br /&gt;
and upgrade or dist-upgrade and you will have the same software packages on the new install.&lt;br /&gt;
*To put a package on hold &lt;br /&gt;
 echo packagename hold | dpkg --set-selections&lt;br /&gt;
* To take a package off hold &lt;br /&gt;
 echo packagename install | dpkg --set-selections&lt;br /&gt;
*To list the version of an installed package&lt;br /&gt;
 apt-cache policy packagename | grep Installed&lt;br /&gt;
*To list packages containing a certain string in its package name, version or description&lt;br /&gt;
 COLUMNS=120 dpkg -l | grep string&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Useful Linux Commands]]&lt;/div&gt;</summary>
		<author><name>82.159.136.215</name></author>	</entry>

	</feed>