<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.slacky.eu/wikislack/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="it">
		<id>http://www.slacky.eu/wikislack/index.php?title=Aboutpkg&amp;feed=atom&amp;action=history</id>
		<title>Aboutpkg - Cronologia</title>
		<link rel="self" type="application/atom+xml" href="http://www.slacky.eu/wikislack/index.php?title=Aboutpkg&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://www.slacky.eu/wikislack/index.php?title=Aboutpkg&amp;action=history"/>
		<updated>2013-05-22T12:44:53Z</updated>
		<subtitle>Cronologia della pagina su questo sito</subtitle>
		<generator>MediaWiki 1.20.3</generator>

	<entry>
		<id>http://www.slacky.eu/wikislack/index.php?title=Aboutpkg&amp;diff=6436&amp;oldid=prev</id>
		<title>Zoros: adattato a GeSHi syntax</title>
		<link rel="alternate" type="text/html" href="http://www.slacky.eu/wikislack/index.php?title=Aboutpkg&amp;diff=6436&amp;oldid=prev"/>
				<updated>2011-05-08T00:17:57Z</updated>
		
		<summary type="html">&lt;p&gt;adattato a GeSHi syntax&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Versione meno recente&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Versione delle 00:17, 8 mag 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 3:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 3:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Script molto comodo e utile, serve a controllare i pacchetti installati nel sistema e anche ad analizzarne il contenuto, veramente indispensabile.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Script molto comodo e utile, serve a controllare i pacchetti installati nel sistema e anche ad analizzarne il contenuto, veramente indispensabile.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;= Script =&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;= Script =&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;−&lt;/td&gt;
  &lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;span class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;pre&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;+&lt;/td&gt;
  &lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;span class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;source lang=&quot;bash&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#!/bin/bash&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#!/bin/bash&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 174:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 174:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;## EOF ##&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;## EOF ##&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;−&lt;/td&gt;
  &lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;span class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/pre&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;+&lt;/td&gt;
  &lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;span class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/source&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* Data:    	05 Oct 2006&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* Data:    	05 Oct 2006&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff:version:1.11a:oldid:2876:newid:6436 --&gt;
&lt;/table&gt;</summary>
		<author><name>Zoros</name></author>	</entry>

	<entry>
		<id>http://www.slacky.eu/wikislack/index.php?title=Aboutpkg&amp;diff=2876&amp;oldid=prev</id>
		<title>Gallows il 13:22, 5 ott 2006</title>
		<link rel="alternate" type="text/html" href="http://www.slacky.eu/wikislack/index.php?title=Aboutpkg&amp;diff=2876&amp;oldid=prev"/>
				<updated>2006-10-05T13:22:31Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;http://www.slacky.eu/wikislack/index.php?title=Aboutpkg&amp;amp;diff=2876&amp;amp;oldid=2433&quot;&gt;Mostra cambiamenti&lt;/a&gt;</summary>
		<author><name>Gallows</name></author>	</entry>

	<entry>
		<id>http://www.slacky.eu/wikislack/index.php?title=Aboutpkg&amp;diff=2433&amp;oldid=prev</id>
		<title>L1q1d il 09:38, 12 set 2006</title>
		<link rel="alternate" type="text/html" href="http://www.slacky.eu/wikislack/index.php?title=Aboutpkg&amp;diff=2433&amp;oldid=prev"/>
				<updated>2006-09-12T09:38:49Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nuova pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Script]]&lt;br /&gt;
= Descrizione =&lt;br /&gt;
Script molto comodo e utile, serve a controllare i pacchetti installati nel sistema e anche ad analizzarne il contenuto, veramente indispensabile.&lt;br /&gt;
= Script =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
# v. 0.0.3 - 14.08.05&lt;br /&gt;
#&lt;br /&gt;
# this script allows you to check (rapidly enough) the packages&lt;br /&gt;
# installed in your linux-box.&lt;br /&gt;
#&lt;br /&gt;
# (by gall0ws -at- tiscali -dot- it)&lt;br /&gt;
#&lt;br /&gt;
# suggestion: put this script in /usr/bin&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
# set some variables:&lt;br /&gt;
DIR=/var/log/packages	# packages directory&lt;br /&gt;
PAGER=/usr/bin/less	# set the default pager&lt;br /&gt;
&lt;br /&gt;
# set the functions:&lt;br /&gt;
function usage() {&lt;br /&gt;
  cat &amp;lt;&amp;lt; USAGE&lt;br /&gt;
eg:&lt;br /&gt;
aboutpkg [ -e ] packagename&lt;br /&gt;
&lt;br /&gt;
 -d, --desc		show package description (slack-desc)&lt;br /&gt;
 -e, --examine 		examine the content of the packages&lt;br /&gt;
 -l, --list 		show all packages installed &lt;br /&gt;
 -L, --list-tidy	show all packages by installation order&lt;br /&gt;
 -s, --search [string]	search the string in installed packages&lt;br /&gt;
 -h, --help 		display this help and exit&lt;br /&gt;
&lt;br /&gt;
USAGE&lt;br /&gt;
  exit 0&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function packsearch () {&lt;br /&gt;
  if [ -z &amp;quot;$ARG&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;which package are you searching for?&amp;quot;&lt;br /&gt;
    exit 1&lt;br /&gt;
  fi&lt;br /&gt;
  ls $DIR | grep -i $ARG&lt;br /&gt;
&lt;br /&gt;
  if [ -z &amp;quot;`ls $DIR | grep -i $ARG`&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;the package doesn't seem to be installed.&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
  exit 0&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function packdesc() {&lt;br /&gt;
  if [ -z &amp;quot;$ARG&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;which package are you searching for?&amp;quot;&lt;br /&gt;
    exit 1&lt;br /&gt;
  fi&lt;br /&gt;
&lt;br /&gt;
  PACK=`ls $DIR | grep -i $ARG`&lt;br /&gt;
  NAME=&amp;quot;`echo $PACK | cut -f1 -d -`:&amp;quot;  &lt;br /&gt;
&lt;br /&gt;
  if [ -z &amp;quot;$PACK&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;no package found&amp;quot;&lt;br /&gt;
    exit 0&lt;br /&gt;
  fi&lt;br /&gt;
&lt;br /&gt;
  cd $DIR&lt;br /&gt;
  grep -A 11 DESCRIP $PACK | cut -d : -f2 | more # more here is &lt;br /&gt;
  cd $OLDPWD 					 # just better than less&lt;br /&gt;
  exit 0&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function packexamine() {&lt;br /&gt;
  if [ -z &amp;quot;$ARG&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;which package are you searching for?&amp;quot;&lt;br /&gt;
    exit 1&lt;br /&gt;
  fi&lt;br /&gt;
&lt;br /&gt;
  PACK=`ls $DIR | grep -i $ARG`&lt;br /&gt;
  &lt;br /&gt;
  if [ -z &amp;quot;$PACK&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;no package found&amp;quot;&lt;br /&gt;
    exit 0&lt;br /&gt;
  fi&lt;br /&gt;
&lt;br /&gt;
  cd $DIR&lt;br /&gt;
  $PAGER $PACK&lt;br /&gt;
  cd $OLDPWD &lt;br /&gt;
  exit 0&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function packlist() {&lt;br /&gt;
for i in `ls $DIR`; do&lt;br /&gt;
  echo -ne &amp;quot;$i\n&amp;quot; &lt;br /&gt;
  echo -ne &amp;quot;\t`cat $DIR/$i | grep -A1 DESCRIP | tail -1 | cut -d : -f2`\n\n&amp;quot; &lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function secondlist () {&lt;br /&gt;
  ls -tr $DIR | $PAGER	# display the list of the installed packages &lt;br /&gt;
  exit 0                # (by installation order)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function stringsearch() {&lt;br /&gt;
  if [ -z &amp;quot;$ARG&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;which string are you searching for?&amp;quot;&lt;br /&gt;
    exit 1&lt;br /&gt;
  fi&lt;br /&gt;
&lt;br /&gt;
  grep $ARG $DIR/* | cut -c 19-&lt;br /&gt;
&lt;br /&gt;
  if [ -z &amp;quot;`grep $ARG $DIR/*`&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;no strings found.&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
  exit 0  &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# parser:&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;$1&amp;quot; == &amp;quot;-d&amp;quot; ] || [ &amp;quot;$1&amp;quot; == &amp;quot;--desc&amp;quot; ]; then&lt;br /&gt;
  ARG=&amp;quot;$2&amp;quot;&lt;br /&gt;
  packdesc&lt;br /&gt;
elif [ &amp;quot;$1&amp;quot; == &amp;quot;-e&amp;quot; ] || [ &amp;quot;$1&amp;quot; == &amp;quot;--examine&amp;quot; ]; then&lt;br /&gt;
  ARG=&amp;quot;$2&amp;quot;&lt;br /&gt;
  packexamine&lt;br /&gt;
elif [ &amp;quot;$1&amp;quot; == &amp;quot;-l&amp;quot; ] || [ &amp;quot;$1&amp;quot; == &amp;quot;--list&amp;quot; ]; then&lt;br /&gt;
  packlist | $PAGER&lt;br /&gt;
elif [ &amp;quot;$1&amp;quot; == &amp;quot;-L&amp;quot; ] || [ &amp;quot;$1&amp;quot; == &amp;quot;--list-tidy&amp;quot; ]; then&lt;br /&gt;
  secondlist | $PAGER&lt;br /&gt;
elif [ &amp;quot;$1&amp;quot; == &amp;quot;-s&amp;quot; ] || [ &amp;quot;$1&amp;quot; == &amp;quot;--search&amp;quot; ]; then&lt;br /&gt;
  ARG=&amp;quot;$2&amp;quot;&lt;br /&gt;
  stringsearch&lt;br /&gt;
elif [ &amp;quot;$1&amp;quot; == &amp;quot;-h&amp;quot; ] || [ &amp;quot;$1&amp;quot; == &amp;quot;--help&amp;quot; ]; then&lt;br /&gt;
  usage&lt;br /&gt;
elif [ &amp;quot;`expr substr $1 1 1`&amp;quot; == &amp;quot;-&amp;quot; ]; then&lt;br /&gt;
  echo &amp;quot;aboutpkg: invalid option $1&amp;quot;&lt;br /&gt;
  exit 1 &lt;br /&gt;
else&lt;br /&gt;
  ARG=&amp;quot;$1&amp;quot;&lt;br /&gt;
  packsearch&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
## EOF ##&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Data:    	03 Jun 2006&lt;br /&gt;
* Autore:    	Gallows&lt;br /&gt;
* Versione:    	0.0.3&lt;/div&gt;</summary>
		<author><name>L1q1d</name></author>	</entry>

	</feed>