<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[BOL: Bash script to check installed bioinformatics program !]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/43096/bash-script-to-check-installed-bioinformatics-program?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/43096/bash-script-to-check-installed-bioinformatics-program?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/43096/bash-script-to-check-installed-bioinformatics-program</guid>
	<pubDate>Thu, 24 Jun 2021 04:21:26 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/43096/bash-script-to-check-installed-bioinformatics-program</link>
	<title><![CDATA[Bash script to check installed bioinformatics program !]]></title>
	<description><![CDATA[<code>allTools=(bwa mummer trimomatic)
decFlag=0;
for name in ${allTools[@]}; do
#echo &quot;enter your package name&quot;
#    read name

    dpkg -s $name &amp;&gt; /dev/null  

    if [ $? -ne 0 ]

        then
            echo &quot; $name not installed :: Try installing $name with conda first&quot;
            #sudo apt-get update
            #sudo apt-get install $name
            decFlag=1;
        else
            echo    &quot; $name installed&quot;
    fi
done

if [[ $decFlag -ne 0 ]]
        then
        echo &quot;Install all the missing sotware first&quot;
        exit
fi</code>]]></description>
	<dc:creator>Jit</dc:creator>
</item>

</channel>
</rss>