<?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=PeterChubb</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=PeterChubb"/>
		<link rel="alternate" type="text/html" href="https://mail.knoppix.net/wiki/Special:Contributions/PeterChubb"/>
		<updated>2026-09-19T03:04:51Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.3</generator>

	<entry>
		<id>https://mail.knoppix.net/wiki/User:PeterChubb</id>
		<title>User:PeterChubb</title>
		<link rel="alternate" type="text/html" href="https://mail.knoppix.net/wiki/User:PeterChubb"/>
				<updated>2006-07-20T04:46:28Z</updated>
		
		<summary type="html">&lt;p&gt;PeterChubb: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See my home Wiki page at http://www.gelato.unsw.edu.au/IA64wiki/PeterChubb&lt;/div&gt;</summary>
		<author><name>PeterChubb</name></author>	</entry>

	<entry>
		<id>https://mail.knoppix.net/wiki/Whatpackage</id>
		<title>Whatpackage</title>
		<link rel="alternate" type="text/html" href="https://mail.knoppix.net/wiki/Whatpackage"/>
				<updated>2006-07-20T04:45:44Z</updated>
		
		<summary type="html">&lt;p&gt;PeterChubb: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To find what package a file belongs to I created the following script.&lt;br /&gt;
*There may be a quicker way to do this, please feel free to inform if you find it.&lt;br /&gt;
**There is: either use &lt;br /&gt;
    dpkg -S filename&lt;br /&gt;
or if you have it installed,&lt;br /&gt;
    dlocate filename&lt;br /&gt;
**-- [[User:PeterChubb|PeterChubb]]&lt;br /&gt;
&lt;br /&gt;
Ensure you are root, and run the following commands&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /usr/bin/whichpkg &amp;lt;&amp;lt; EOF&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 echo checking for $1&lt;br /&gt;
 &lt;br /&gt;
 for package in `dpkg -l | awk '{print $2}'`&lt;br /&gt;
 {&lt;br /&gt;
   for file in `dpkg --listfiles $package 2&amp;gt; /dev/null`&lt;br /&gt;
   {&lt;br /&gt;
     if echo $file | grep $1&lt;br /&gt;
     then&lt;br /&gt;
       echo The file is from $package&lt;br /&gt;
     fi&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
 EOF&lt;br /&gt;
 chmod 755 /usr/bin/whichpkg&lt;br /&gt;
&lt;br /&gt;
Now that the script is in place, to find the file simply use the command&lt;br /&gt;
&lt;br /&gt;
 whichpkg ''filename''&lt;br /&gt;
&lt;br /&gt;
For example, to find out whatpackage /etc/init.d/knoppix-autoconfig comes from you tupe&lt;br /&gt;
 whichpkg knoppix-autoconfig&lt;br /&gt;
&lt;br /&gt;
This takes some time as it searches everypackage for the result. &lt;br /&gt;
Hope this helps.&lt;br /&gt;
&lt;br /&gt;
[[User:SNIa|SNIa]] 03:34, 8 Jul 2006 (GMT)&lt;/div&gt;</summary>
		<author><name>PeterChubb</name></author>	</entry>

	<entry>
		<id>https://mail.knoppix.net/wiki/Whatpackage</id>
		<title>Whatpackage</title>
		<link rel="alternate" type="text/html" href="https://mail.knoppix.net/wiki/Whatpackage"/>
				<updated>2006-07-20T04:43:03Z</updated>
		
		<summary type="html">&lt;p&gt;PeterChubb: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To find what package a file belongs to I created the following script.&lt;br /&gt;
*There may be a quicker way to do this, please feel free to inform if you find it.&lt;br /&gt;
**There is: either use &lt;br /&gt;
    dpkg -S filename&lt;br /&gt;
or if you have it installed,&lt;br /&gt;
    dlocate filename&lt;br /&gt;
[[User:PeterChubb|PeterChubb]]&lt;br /&gt;
&lt;br /&gt;
Ensure you are root, and run the following commands&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /usr/bin/whichpkg &amp;lt;&amp;lt; EOF&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 echo checking for $1&lt;br /&gt;
 &lt;br /&gt;
 for package in `dpkg -l | awk '{print $2}'`&lt;br /&gt;
 {&lt;br /&gt;
   for file in `dpkg --listfiles $package 2&amp;gt; /dev/null`&lt;br /&gt;
   {&lt;br /&gt;
     if echo $file | grep $1&lt;br /&gt;
     then&lt;br /&gt;
       echo The file is from $package&lt;br /&gt;
     fi&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
 EOF&lt;br /&gt;
 chmod 755 /usr/bin/whichpkg&lt;br /&gt;
&lt;br /&gt;
Now that the script is in place, to find the file simply use the command&lt;br /&gt;
&lt;br /&gt;
 whichpkg ''filename''&lt;br /&gt;
&lt;br /&gt;
For example, to find out whatpackage /etc/init.d/knoppix-autoconfig comes from you tupe&lt;br /&gt;
 whichpkg knoppix-autoconfig&lt;br /&gt;
&lt;br /&gt;
This takes some time as it searches everypackage for the result. &lt;br /&gt;
Hope this helps.&lt;br /&gt;
&lt;br /&gt;
[[User:SNIa|SNIa]] 03:34, 8 Jul 2006 (GMT)&lt;/div&gt;</summary>
		<author><name>PeterChubb</name></author>	</entry>

	</feed>