<?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=Analyze_SlackPkg.sh&amp;feed=atom&amp;action=history</id>
		<title>Analyze SlackPkg.sh - Cronologia</title>
		<link rel="self" type="application/atom+xml" href="http://www.slacky.eu/wikislack/index.php?title=Analyze_SlackPkg.sh&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://www.slacky.eu/wikislack/index.php?title=Analyze_SlackPkg.sh&amp;action=history"/>
		<updated>2013-05-19T23:27:09Z</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=Analyze_SlackPkg.sh&amp;diff=7265&amp;oldid=prev</id>
		<title>Targzeta: Caricato i file esterni all'interno di wikislacky</title>
		<link rel="alternate" type="text/html" href="http://www.slacky.eu/wikislack/index.php?title=Analyze_SlackPkg.sh&amp;diff=7265&amp;oldid=prev"/>
				<updated>2012-10-02T22:17:40Z</updated>
		
		<summary type="html">&lt;p&gt;Caricato i file esterni all&amp;#039;interno di wikislacky&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 22:17, 2 ott 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 54:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 54:&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;si nota che rispetto a prima, '''cairo''' non viene visualizzato.&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;si nota che rispetto a prima, '''cairo''' non viene visualizzato.&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;=Lo 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;=Lo 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;Dulcis in fundo, lo script potete trovarlo &lt;span class=&quot;diffchange diffchange-inline&quot;&gt;[http://www.slacky.eu/~targzeta/script/analyze_SlackPkg.sh qui].&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;Dulcis in fundo, lo script potete trovarlo &lt;span class=&quot;diffchange diffchange-inline&quot;&gt;[[Media:Analyze_SlackPkg.sh‎|qui]].&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;Autore (data dell'ultimo aggiornamento):&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;Autore (data dell'ultimo aggiornamento):&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Targzeta</name></author>	</entry>

	<entry>
		<id>http://www.slacky.eu/wikislack/index.php?title=Analyze_SlackPkg.sh&amp;diff=7257&amp;oldid=prev</id>
		<title>Targzeta: Cambiato nick</title>
		<link rel="alternate" type="text/html" href="http://www.slacky.eu/wikislack/index.php?title=Analyze_SlackPkg.sh&amp;diff=7257&amp;oldid=prev"/>
				<updated>2012-10-02T21:53:54Z</updated>
		
		<summary type="html">&lt;p&gt;Cambiato nick&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 21:53, 2 ott 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 54:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 54:&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;si nota che rispetto a prima, '''cairo''' non viene visualizzato.&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;si nota che rispetto a prima, '''cairo''' non viene visualizzato.&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;=Lo 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;=Lo 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;Dulcis in fundo, lo script potete trovarlo &lt;span class=&quot;diffchange diffchange-inline&quot;&gt;[http://www.slacky.eu/~spina/script/analyze_SlackPkg.sh &lt;/span&gt;qui].&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;Dulcis in fundo, lo script potete trovarlo &lt;span class=&quot;diffchange diffchange-inline&quot;&gt;[http://www.slacky.eu/~targzeta/script/analyze_SlackPkg.sh &lt;/span&gt;qui].&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;Autore (data dell'ultimo aggiornamento):&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;Autore (data dell'ultimo aggiornamento):&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;[[Utente:Spina|spina]] &lt;/span&gt;07:38, 28 ott 2010 (UTC)&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;[[Utente:targzeta|targzeta]] &lt;/span&gt;07:38, 28 ott 2010 (UTC)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Targzeta</name></author>	</entry>

	<entry>
		<id>http://www.slacky.eu/wikislack/index.php?title=Analyze_SlackPkg.sh&amp;diff=6110&amp;oldid=prev</id>
		<title>Targzeta: Inserito lo script come link esterno</title>
		<link rel="alternate" type="text/html" href="http://www.slacky.eu/wikislack/index.php?title=Analyze_SlackPkg.sh&amp;diff=6110&amp;oldid=prev"/>
				<updated>2010-10-28T07:38:26Z</updated>
		
		<summary type="html">&lt;p&gt;Inserito lo script come link esterno&lt;/p&gt;
&lt;a href=&quot;http://www.slacky.eu/wikislack/index.php?title=Analyze_SlackPkg.sh&amp;amp;diff=6110&amp;amp;oldid=6023&quot;&gt;Mostra cambiamenti&lt;/a&gt;</summary>
		<author><name>Targzeta</name></author>	</entry>

	<entry>
		<id>http://www.slacky.eu/wikislack/index.php?title=Analyze_SlackPkg.sh&amp;diff=6023&amp;oldid=prev</id>
		<title>Targzeta: L'output di '-s' è relativo al FILE_LIST e non più il solo nome del pacchetto in /var/log/packages</title>
		<link rel="alternate" type="text/html" href="http://www.slacky.eu/wikislack/index.php?title=Analyze_SlackPkg.sh&amp;diff=6023&amp;oldid=prev"/>
				<updated>2010-05-12T09:18:37Z</updated>
		
		<summary type="html">&lt;p&gt;L&amp;#039;output di &amp;#039;-s&amp;#039; è relativo al FILE_LIST e non più il solo nome del pacchetto in /var/log/packages&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 09:18, 12 mag 2010&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 58:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 58:&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 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;# Ultimo aggiornamento: &lt;span class=&quot;diffchange diffchange-inline&quot;&gt;04/05/2010&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;# Ultimo aggiornamento: &lt;span class=&quot;diffchange diffchange-inline&quot;&gt;12/05/2010&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;#&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 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;# Esegue un'analisi dei pacchetti installati sul PC a partire dal file FILE_LIST di un repository Slackware&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;# Esegue un'analisi dei pacchetti installati sul PC a partire dal file FILE_LIST di un repository Slackware&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 153:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 153:&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;# Valori di default per le opzioni&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;# Valori di default per le opzioni&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;FLAG_N=0   # &lt;span class=&quot;diffchange diffchange-inline&quot;&gt;Non &lt;/span&gt;stampa i pacchetti non installati&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;FLAG_N=0   # &lt;span class=&quot;diffchange diffchange-inline&quot;&gt;Se = 1, &lt;/span&gt;stampa i pacchetti non installati&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;FLAG_M=0   # &lt;span class=&quot;diffchange diffchange-inline&quot;&gt;Non &lt;/span&gt;stampa i pacchetti che non sono trovati nel file FILE_LIST (es: pacchetti di terze parti)&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;FLAG_M=0   # &lt;span class=&quot;diffchange diffchange-inline&quot;&gt;Se = 1, &lt;/span&gt;stampa i pacchetti che non sono trovati nel file FILE_LIST (es: pacchetti di terze parti)&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;FLAG_S=0   # &lt;span class=&quot;diffchange diffchange-inline&quot;&gt;Non &lt;/span&gt;stampa i pacchetti che non necessitano un aggiornamento&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;FLAG_S=0   # &lt;span class=&quot;diffchange diffchange-inline&quot;&gt;Se = 1, &lt;/span&gt;stampa i pacchetti che non necessitano un aggiornamento&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;FLAG_V=0   # &lt;span class=&quot;diffchange diffchange-inline&quot;&gt;Non &lt;/span&gt;stampa la versione dei pacchetti installati&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;FLAG_V=0   # &lt;span class=&quot;diffchange diffchange-inline&quot;&gt;Se = 1, &lt;/span&gt;stampa la versione dei pacchetti installati&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;while getopts hnmsv OPT; do&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;while getopts hnmsv OPT; do&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 251:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 251:&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;    if (( $FLAG_S == 1 )); then&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;    if (( $FLAG_S == 1 )); then&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;	if [[ $pack != &quot;&quot; ]] &amp;amp;&amp;amp; [[ ${pack##*/} == ${file}.t?z ]]; then&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;	if [[ $pack != &quot;&quot; ]] &amp;amp;&amp;amp; [[ ${pack##*/} == ${file}.t?z ]]; then&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;	    echo &lt;span class=&quot;diffchange diffchange-inline&quot;&gt;${file}&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;	    echo &lt;span class=&quot;diffchange diffchange-inline&quot;&gt;${pack}&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;	fi&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;	fi&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;    elif (( $FLAG_M == 1 )); then&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;    elif (( $FLAG_M == 1 )); then&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Targzeta</name></author>	</entry>

	<entry>
		<id>http://www.slacky.eu/wikislack/index.php?title=Analyze_SlackPkg.sh&amp;diff=6009&amp;oldid=prev</id>
		<title>Targzeta: Nuova pagina: &lt;!--Per www.slacky.eu --&gt; category:Script =Introduzione= Questo script visualizza alcune informazioni interessanti riguardanti i pacchetti Slackware installati e pu&amp;ograve; essere ...</title>
		<link rel="alternate" type="text/html" href="http://www.slacky.eu/wikislack/index.php?title=Analyze_SlackPkg.sh&amp;diff=6009&amp;oldid=prev"/>
				<updated>2010-05-04T16:09:54Z</updated>
		
		<summary type="html">&lt;p&gt;Nuova pagina: &amp;lt;!--Per www.slacky.eu --&amp;gt; &lt;a href=&quot;/slacky/Categoria:Script&quot; title=&quot;Categoria:Script&quot;&gt;category:Script&lt;/a&gt; =Introduzione= Questo script visualizza alcune informazioni interessanti riguardanti i pacchetti Slackware installati e può essere ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nuova pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!--Per www.slacky.eu --&amp;gt;&lt;br /&gt;
[[category:Script]]&lt;br /&gt;
=Introduzione=&lt;br /&gt;
Questo script visualizza alcune informazioni interessanti riguardanti i pacchetti Slackware installati e pu&amp;amp;ograve; essere usato per mantenere aggiornata una current. Lo script deve essere eseguito in una directory contenente il file FILE_LIST fornito dal CD/DVD.&lt;br /&gt;
=Cosa fa e come si usa=&lt;br /&gt;
==Senza opzioni==&lt;br /&gt;
Lo script, per ogni pacchetti installato va a controllare se &amp;amp;egrave; nominato nel file FILE_LIST controllandone la versione, dove per versione si intende sia la versione del software che la marca di compilazione. Se le due versioni differiscono allora lo script stampa a video il percorso dove poter trovare il pacchetto con la versione differente. Ad esempio sulla mia macchina:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$&amp;gt; analyze_SlackPkg.sh&lt;br /&gt;
./a/aaa_elflibs-13.013-x86_64-5.txz&lt;br /&gt;
./l/cairo-1.8.8-x86_64-3.txz&lt;br /&gt;
./n/stunnel-4.33-x86_64-1.txz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
questo vuol dire che nella mia Slackware sono installati i tre pacchetti elencati ma con versioni differenti, infatti ad esempio:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$&amp;gt; ls /var/log/packages/stunnel-*&lt;br /&gt;
/var/log/packages/stunnel-4.17-x86_64-1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Quindi se si ha a disposizione un repository locale della current si pu&amp;amp;ograve; aggiornare il PC semplicemente eseguendo:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for package in $(analyze_SlackPkg.sh)&lt;br /&gt;
  do&lt;br /&gt;
    upgradepkg $package&lt;br /&gt;
  done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Le opzioni==&lt;br /&gt;
===-h===&lt;br /&gt;
Mostra l'help dello script.&lt;br /&gt;
===-n===&lt;br /&gt;
Stampa l'elenco dei pacchetti nominati nel FILE_LIST, ma che non sono stati installati.&lt;br /&gt;
===-m===&lt;br /&gt;
Stampa l'elenco dei pacchetti che non sono stati trovati nel file FILE_LIST o che sono stati filtrati dal [[#Il file di filtraggio|file di filtro]]. Questi pacchetti generalmente sono i pacchetti di terze parti (ad esempio quelli di Slacky.eu) ed i pacchetti che sono stati rimossi dalla Slackware.&lt;br /&gt;
===-s===&lt;br /&gt;
Stampa l'elenco dei pacchetti che hanno la stessa versione di quelli trovati nel file FILE_LIST.&lt;br /&gt;
===-v===&lt;br /&gt;
A volte &amp;amp;egrave; utile sapere la versione attuale dei pacchetti installati, questa opzione oltre a visualizzare il percorso del pacchetto con la versione diversa, stampa anche la versione attualmente installata.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$&amp;gt;analyze_SlackPkg.sh -v&lt;br /&gt;
./a/aaa_elflibs-13.013-x86_64-5.txz the current version is aaa_elflibs-13.013-x86_64-4&lt;br /&gt;
./l/cairo-1.8.8-x86_64-3.txz the current version is cairo-1.8.10-x86_64-1&lt;br /&gt;
./n/stunnel-4.33-x86_64-1.txz the current version is stunnel-4.17-x86_64-1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Il file di filtraggio=&lt;br /&gt;
Pu&amp;amp;ograve; capitare che di alcuni software si voglia seguire una versione current e non quella fornita dalla Slackware, usando il ciclo for descritto precedentemente per aggiornare il PC evidentemente questi pacchetti risulteranno con una versione differente e saranno quindi aggiornati. Per evitare questo comportamento basta creare un file nella propria home chiamato ''.analyze_SlackPkg'' e inserirci al proprio interno il nome del software da saltare e quest'ultimo non sar&amp;amp;agrave; stampato in output. Ad esempio se inserisco nel mio file il software '''cairo''' e poi rieseguo lo script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$&amp;gt; echo 'cairo' &amp;gt;&amp;gt; ~/.analyze_SlackPkg&lt;br /&gt;
&lt;br /&gt;
$&amp;gt; analyze_SlackPkg.sh&lt;br /&gt;
./a/aaa_elflibs-13.013-x86_64-5.txz&lt;br /&gt;
./n/stunnel-4.33-x86_64-1.txz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
si nota che rispetto a prima, '''cairo''' non viene visualizzato.&lt;br /&gt;
=Lo script=&lt;br /&gt;
Dulcis in fundo ecco lo script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
# Ultimo aggiornamento: 04/05/2010&lt;br /&gt;
#&lt;br /&gt;
# Esegue un'analisi dei pacchetti installati sul PC a partire dal file FILE_LIST di un repository Slackware&lt;br /&gt;
#&lt;br /&gt;
# by Spina &amp;lt;spina80@gmail.com&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# -h per l'help&lt;br /&gt;
&lt;br /&gt;
SCRIPT_NAME=${0##*/} # Nome dello script&lt;br /&gt;
SCRIPT_AUTHOR=&amp;quot;Spina &amp;lt;spina80@gmail.com&amp;gt;&amp;quot; # Nome autore &amp;lt;email&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Esce eliminando la directory temporanea&lt;br /&gt;
function _exit&lt;br /&gt;
{&lt;br /&gt;
    rm -r $TMP_DIR&lt;br /&gt;
&lt;br /&gt;
    exit $1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# Stampa l'help dello script&lt;br /&gt;
function _help&lt;br /&gt;
{&lt;br /&gt;
    echo -e &amp;quot;Use: ${SCRIPT_NAME} [-h|-n|-m|-s|-v] [root_directory]\n\&lt;br /&gt;
For every package in ROOT_DIRECTORY/var/log/packages this script\n\&lt;br /&gt;
searches a corresponding package in the file ./FILE_LIST and\n\&lt;br /&gt;
prints out the name of the package on the standard output if it needs\n\&lt;br /&gt;
an upgrade (they have different version).\n\n\&lt;br /&gt;
OPTIONS:&lt;br /&gt;
   -h\tprint this help and exits\n\&lt;br /&gt;
   -n\tprint the name of packages not installed\n\&lt;br /&gt;
   -m\tprint the name of packages which are missing in ./FILE_LIST or\n\&lt;br /&gt;
     \tfiltered by ~/.analyze_SlackPkg file\n\&lt;br /&gt;
   -s\tprint the name of packages with same version\n\&lt;br /&gt;
   -v\tshow also current version of package\n\n\&lt;br /&gt;
ROOT_DIRECTORY is / by default, or the value of ROOT enviroment variable,\n\&lt;br /&gt;
or the value of root_directory passed in command line. If both variable ROOT\n\&lt;br /&gt;
and root_directory are set, root_directory is used.\n\n\&lt;br /&gt;
by ${SCRIPT_AUTHOR}&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# Controlla l'esistenza di tutti i programmi dati i loro nomi come argomento.&lt;br /&gt;
# Se un programma non viene trovato, allora, stampa il nome del o dei programmi mancanti ed esce.&lt;br /&gt;
# Si usa il programma which per controllare che esistono i programmi passati. Si assume che&lt;br /&gt;
# which sia in /bin/.&lt;br /&gt;
function _check_extern_program&lt;br /&gt;
{&lt;br /&gt;
    local error=0&lt;br /&gt;
    local string_error&lt;br /&gt;
&lt;br /&gt;
    if [ ! -x /bin/which ]&lt;br /&gt;
    then&lt;br /&gt;
	error=1&lt;br /&gt;
	string_error=&amp;quot;which : programma mancante.\n&amp;quot;;&lt;br /&gt;
    else&lt;br /&gt;
	for progr in $@&lt;br /&gt;
	do&lt;br /&gt;
	    if [[ $(which $progr 2&amp;gt;/dev/null) == &amp;quot;&amp;quot; ]]&lt;br /&gt;
	    then&lt;br /&gt;
		let ++error&lt;br /&gt;
		string_error=${string_error}&amp;quot;${progr} : programma mancante.\n&amp;quot;&lt;br /&gt;
	    fi&lt;br /&gt;
	done&lt;br /&gt;
    fi&lt;br /&gt;
&lt;br /&gt;
    if (( $error ))&lt;br /&gt;
    then&lt;br /&gt;
	if (( $error == 1 ))&lt;br /&gt;
	then&lt;br /&gt;
	    string_error=${string_error}&amp;quot;\nIl programma mancante è necessario &amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
	    string_error=${string_error}&amp;quot;\nI programmi mancanti sono necessari &amp;quot;&lt;br /&gt;
	fi&lt;br /&gt;
	string_error=${string_error}&amp;quot;per la corretta esecuzione dello script.&amp;quot;&lt;br /&gt;
	_exit &amp;quot;$string_error&amp;quot; 1&lt;br /&gt;
    fi&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# Restituisce il nome del software di un pacchetto Slackware&lt;br /&gt;
#&lt;br /&gt;
# $1: il nome di un pacchetto Slackware&lt;br /&gt;
function _get_software_name&lt;br /&gt;
{&lt;br /&gt;
    echo $1 | sed 's/-[^-]\+-[^-]\+-[^-]\+$//'&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# Controllo degli argomenti dello script in cerca di opzioni&lt;br /&gt;
enable getopts echo exit&lt;br /&gt;
&lt;br /&gt;
# Impostazione del separatore di campi al valore di default&lt;br /&gt;
IFS=$'\n\t '&lt;br /&gt;
&lt;br /&gt;
# Controllo dell'esistenza di tutti i programmi esterni ( quindi non comandi interni alla bash) usati&lt;br /&gt;
_check_extern_program bunzip2 grep mktemp rm sed tr&lt;br /&gt;
&lt;br /&gt;
# Valori di default per le opzioni&lt;br /&gt;
FLAG_N=0   # Non stampa i pacchetti non installati&lt;br /&gt;
FLAG_M=0   # Non stampa i pacchetti che non sono trovati nel file FILE_LIST (es: pacchetti di terze parti)&lt;br /&gt;
FLAG_S=0   # Non stampa i pacchetti che non necessitano un aggiornamento&lt;br /&gt;
FLAG_V=0   # Non stampa la versione dei pacchetti installati&lt;br /&gt;
&lt;br /&gt;
while getopts hnmsv OPT; do&lt;br /&gt;
    case $OPT in&lt;br /&gt;
	h)&lt;br /&gt;
	    _help&lt;br /&gt;
	    exit 0&lt;br /&gt;
	    ;;&lt;br /&gt;
	n)&lt;br /&gt;
	    FLAG_N=1&lt;br /&gt;
	    ;;&lt;br /&gt;
	m)&lt;br /&gt;
	    FLAG_M=1&lt;br /&gt;
	    ;;&lt;br /&gt;
	s)&lt;br /&gt;
	    FLAG_S=1&lt;br /&gt;
	    ;;&lt;br /&gt;
	v)&lt;br /&gt;
	    FLAG_V=1&lt;br /&gt;
	    ;;&lt;br /&gt;
	?)&lt;br /&gt;
	    exit 3&lt;br /&gt;
	    ;;&lt;br /&gt;
    esac&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
# Controllo sulle opzioni&lt;br /&gt;
if (( $FLAG_N + $FLAG_M + $FLAG_S + $FLAG_V &amp;gt; 1 )) ; then&lt;br /&gt;
    echo &amp;quot;Only one option between -n, -m, -s and -v must be set&amp;quot;&lt;br /&gt;
    exit 4&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
while (( $OPTIND != 1 )); do&lt;br /&gt;
    shift&lt;br /&gt;
    let OPTIND--&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
# Controllo l'esistenza del file FILE_LIST&lt;br /&gt;
if [ ! -f &amp;quot;FILE_LIST&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;FILE_LIST not found in current directory,&amp;quot;\&lt;br /&gt;
         &amp;quot;please enter in the directory where is located FILE_LIST&amp;quot;&lt;br /&gt;
    exit 2&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Setto e controllo la root directory&lt;br /&gt;
root=$1&lt;br /&gt;
root=${root:-$ROOT}&lt;br /&gt;
root=${root%/}&lt;br /&gt;
root=${root}/var/log/packages/&lt;br /&gt;
if [ ! -d $root ]; then&lt;br /&gt;
    echo &amp;quot;$root not found, $1 is not the root directory&amp;quot;&lt;br /&gt;
    exit 5&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Creo i file temporanei&lt;br /&gt;
TMP_DIR=$(mktemp -dt packages.XXXXXX)&lt;br /&gt;
PACKAGE_FROM_FILE_LIST=${TMP_DIR}/packages_from_file_list&lt;br /&gt;
PACKAGE_FROM_ROOT_DIR=${TMP_DIR}/packages_from_root_dir&lt;br /&gt;
sed -n '/t.z$/{s/.*\(\.\/.*\)/\1/;p;}' FILE_LIST &amp;gt; $PACKAGE_FROM_FILE_LIST # Elenco dei pacchetti in FILE_LIST&lt;br /&gt;
ls ${root} &amp;gt; $PACKAGE_FROM_ROOT_DIR                                        # Elenco dei pacchetti installati&lt;br /&gt;
&lt;br /&gt;
# Catturo il segnal SIGINT inviato dal ctrl-c&lt;br /&gt;
trap &amp;quot;_exit 3&amp;quot; SIGINT&lt;br /&gt;
&lt;br /&gt;
# File per il filtraggio dei pacchetti&lt;br /&gt;
FILTER_FILE=~/.analyze_SlackPkg # File di filtro&lt;br /&gt;
FLAG_FILTER=0  # Indica se il file di filtro esiste&lt;br /&gt;
[ -f $FILTER_FILE ] &amp;amp;&amp;amp; FLAG_FILTER=1&lt;br /&gt;
&lt;br /&gt;
# Modalità -n&lt;br /&gt;
if (( $FLAG_N == 1 )); then&lt;br /&gt;
    for file in $(&amp;lt; $PACKAGE_FROM_FILE_LIST); do&lt;br /&gt;
	software_name=$(_get_software_name ${file##*/})&lt;br /&gt;
	if ! grep -q &amp;quot;^${software_name}-[^-]\+-[^-]\+-[^-]\+$&amp;quot; $PACKAGE_FROM_ROOT_DIR; then&lt;br /&gt;
	    echo $file;&lt;br /&gt;
	fi&lt;br /&gt;
    done&lt;br /&gt;
&lt;br /&gt;
    _exit 0;&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Altre modalità&lt;br /&gt;
for file in $(&amp;lt; $PACKAGE_FROM_ROOT_DIR); do&lt;br /&gt;
    software_name=$(_get_software_name ${file})&lt;br /&gt;
    pack=$(grep &amp;quot;/${software_name}-[^-]\+-[^-]\+-[^-]\+$&amp;quot; $PACKAGE_FROM_FILE_LIST)&lt;br /&gt;
&lt;br /&gt;
    # Controllo se il pacchetto deve essere filtrato&lt;br /&gt;
    FILTERED=0&lt;br /&gt;
    if [[ $pack != &amp;quot;&amp;quot; ]] &amp;amp;&amp;amp; (( $FLAG_FILTER )) &amp;amp;&amp;amp; grep -q &amp;quot;${software_name}$&amp;quot; $FILTER_FILE; then&lt;br /&gt;
        FILTERED=1 # E' stato filtrato&lt;br /&gt;
	pack=&amp;quot;&amp;quot;    # Azzerando la variabile il pacchetto è filtrato&lt;br /&gt;
    fi&lt;br /&gt;
&lt;br /&gt;
    if (( $FLAG_S == 1 )); then&lt;br /&gt;
	if [[ $pack != &amp;quot;&amp;quot; ]] &amp;amp;&amp;amp; [[ ${pack##*/} == ${file}.t?z ]]; then&lt;br /&gt;
	    echo ${file}&lt;br /&gt;
	fi&lt;br /&gt;
    elif (( $FLAG_M == 1 )); then&lt;br /&gt;
	if [[ $pack == &amp;quot;&amp;quot; ]] &amp;amp;&amp;amp; (( $FILTERED == 0 )); then&lt;br /&gt;
	    echo ${file}&lt;br /&gt;
        elif [[ $pack == &amp;quot;&amp;quot; ]] &amp;amp;&amp;amp; (( $FILTERED == 1 )); then&lt;br /&gt;
            echo -e &amp;quot;${file##*/} \033[32;1mfiltered by \033[33;1m${FILTER_FILE}\033[0m&amp;quot;&lt;br /&gt;
        fi&lt;br /&gt;
    else&lt;br /&gt;
	if [[ $pack != &amp;quot;&amp;quot; ]] &amp;amp;&amp;amp; [[ ${pack##*/} != ${file}.t?z ]]; then&lt;br /&gt;
            if (( $FLAG_V == 1 )); then&lt;br /&gt;
		echo -e &amp;quot;$pack \033[32;1mthe current version is \033[33;1m${file##*/}\033[0m&amp;quot;&lt;br /&gt;
            else&lt;br /&gt;
                echo &amp;quot;$pack&amp;quot;&lt;br /&gt;
	    fi&lt;br /&gt;
	fi&lt;br /&gt;
    fi&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
_exit 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Autore (data dell'ultimo aggiornamento):&lt;br /&gt;
[[Utente:Spina|spina]] 16:09, 4 Mag 2010 (UTC)&lt;/div&gt;</summary>
		<author><name>Targzeta</name></author>	</entry>

	</feed>