I think ... - RPMhttps://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 it?</p><p>[Please note that this post has been written quite a while ago. After that, it hasn’t been updated much.]</p>
<p>I failed to install UNAFold/mfold in Ubuntu 10.10 as the supplied binary package was in rpm (RedHat) format.</p>
<p><code>Ubuntu 10.10</code> can’t use rpm files to install software 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’t installed on Ubuntu by default. So I used the 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 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 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 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, 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>