Thursday, April 25, 2024
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1638  / 2 Years ago, thu, december 9, 2021, 8:02:09

I'm new to Ubuntu, I just installed 13.04 on a dedicated machine.



I want to update to the most recent versions of scientific software namely Bowtie, Tophat and Samtools but I can't figure out how since the newer versions are not available from the software centre. These software are command line only by the way.



I'll take Bowtie as an example. I installed it from the Ubuntu Software Centre but it is an old version. I therefore downloaded the latest version from the developer's website and unzipped the pre-compiled package in my home directory. Software centre installed the old version in /usr/bin/ and some files at other locations like /usr/share/doc/ and /usr/share/man/man1/. My understanding is that having the binary in /usr/bin/ makes it available to all users and allows calling it from the command line without having to type the complete path. So, to update the software, do I overwrite the binary in usr/bin/ and the other files elsewhere with the newer versions? That seems very awkward to me. I suspect there must be some Linux command to achieve this goal but I can't find it.



Thank you all for your help.


More From » installation

 Answers
6

You should never override files in /usr - they are managed by Ubuntu package manager and modifying files manually behind Ubuntu's back would lead to problems (for example, Ubuntu will override your changes when an updated version of the package appears in the repositories).



As Bruno Pereira says, the ways to install each application may be different, however, there are a few common locations:




  • you can install your custom application in /usr/local

  • you can install your application in a subdirectory of /opt - say, /opt/bowtie - and add the latter directory to PATH

  • if you only need the application for one user, you can keep it in your home directory - if you create a directory called bin in your home directory and put a symlink to the application's binary there you'll be able to run the app by simply typing the application name in the terminal



(you may also want to make sure you completely removed Ubuntu-provided versions of the application to minimize a chance of running the wrong version accidentally)


[#30473] Friday, December 10, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oargrou

Total Points: 336
Total Questions: 105
Total Answers: 113

Location: Vietnam
Member since Sun, Oct 18, 2020
4 Years ago
oargrou questions
Thu, May 13, 21, 16:38, 3 Years ago
Wed, Jul 21, 21, 01:38, 3 Years ago
Sat, May 15, 21, 17:39, 3 Years ago
Tue, May 24, 22, 14:58, 2 Years ago
Sat, Mar 19, 22, 05:22, 2 Years ago
;