Changes

Jump to navigation Jump to search
204 bytes added ,  01:04, 27 March 2015
Line 109: Line 109:  
echo foo
 
echo foo
 
</bash>
 
</bash>
 +
=== extras ===
 +
==== Check if a package is installed ====
 +
<source lang="bash">
 +
#!/bin/sh
 +
debInst() {
 +
    dpkg-query -Wf'${db:Status-abbrev}' "$1" 2>/dev/null | grep -q '^i'
 +
}
 +
 +
debInst terminator
 +
</source>

Navigation menu