I think ... - algorithmhttps://blog.kmonsoor.com/2011-02-17T00:00:00+06:00How to install and use `UNAFold` / `mfold` RPM package onĀ Ubuntu2011-02-17T00:00:00+06:002011-02-17T00:00:00+06:00Khaled Monsoortag:blog.kmonsoor.com,2011-02-17:/install-and-use-unafold-mfold-rpm-package-in-ubuntu/<p>I failed to install UNAFold/mfold in Ubuntu 10.10 as the supplied binary package was in rpm (RedHat) format. How to solve&nbsp;it?</p><p>[Please note that this post has been written quite a while ago. After that, it hasn&rsquo;t been updated&nbsp;much.]</p> <p>I failed to install UNAFold/mfold in Ubuntu 10.10 as the supplied binary package was in rpm (RedHat)&nbsp;format.</p> <p><code>Ubuntu 10.10</code> can&rsquo;t use rpm files to install software&nbsp;directly.</p> <p>After doing some digging, I found that it is possible to convert rpm files to deb(Debian) format by using another app, named <code>alien</code>.</p> <p>But <code>alien</code> isn&rsquo;t installed on Ubuntu by default. So I used the&nbsp;command,</p> <div class="highlight"><pre><span></span><code><span class="linenos" data-linenos="1 "></span><span class="gp">$ </span>sudo apt-get install alien </code></pre></div> <p>then check the&nbsp;installation:</p> <div class="highlight"><pre><span></span><code><span class="linenos" data-linenos="1 "></span><span class="gp">$ </span>alien </code></pre></div> <p>if it goes okay, now to simply convert the UNAFold&nbsp;package:</p> <div class="highlight"><pre><span></span><code><span class="linenos" data-linenos="1 "></span><span class="gp">$</span>sudo alien ~/Downloads/unafold-3.8-1.i386.rpm </code></pre></div> <p>the converted one is named like <code>unafold_3.8-2_i386.deb</code></p> <p>Now use this new package for&nbsp;installation</p> <div class="highlight"><pre><span></span><code><span class="linenos" data-linenos="1 "></span><span class="gp">$ </span>sudo dpkg -i unafold_3.8-2_i386.deb </code></pre></div> <p>after installation, you should be able to run the *.pl scripts with appropriate input,&nbsp;like:</p> <div class="highlight"><pre><span></span><code><span class="linenos" data-linenos="1 "></span><span class="gp">$ </span>perl /usr/bin/UNAFold.pl ~/s1.seq </code></pre></div>