- How To Get Debian Med Packages
What about Derivatives?
- Q. What about Ubuntu?
- Q. What about other Linux distros?
- Q. I want a package that isn't in the Debian Archive, or a newer version of one that is. What can I do?
- Q. I'm running Debian Testing. How long do I have to wait for package X to be updated?
- Q. As a user, can I download anything directly from Debian Med?
- Q. What's the easiest way to build a Debian Med package from source myself?
- Q. I succeeded in making a package compile; how do I contribute my build for others to use?
- Q. How can I install packages from Bio-Linux PPA to a default Ubuntu trusty system?
- Q. How can I install packages from Debian Med PPA to a default Ubuntu trusty system?
- Q. How can I upload packages to Debian Med PPA?
- Q. How can I create packages on a Debian system for other distros?
1. How To Get Debian Med Packages
The main emphasis of the Debian Med web pages hosted on this site is to provide information for developers and packagers. If you are a user of Debian or Ubuntu and just want to make use of Debian Med packages then this page is for you.
1.1. Q. How do I find out what packages Debian-Med has available?
A. See the tasks page. This lists the existing packages, as well as work in progress and software that has been considered by Debian Med but not packaged for various reasons. Note that Debian Med does not have a monopoly on packaging biomedical software, and some tools are borderline as to the category they fit in and are in fact maintained by other individuals or teams, for example Debichem or Debian Science. To be sure, look up the package on qa.debian.org to see who is working on it.
1.2. Q. I can see package X listed on Debian Med. How do I install it?
A. apt-get install package-x Because Debian Med is a Debian Pure Blend it is generally expected that users will get the packages we make as part of the normal Debian distribution. Packages will be pushed to Sid as soon as possible when they are ready, and should then be automatically added to Testing around ten days later. New packages will not be pushed to Debian Stable until a new stable release is made.
1.3. Q. Can I just install tasks of Debian-Med in one go?
Yes. For instance apt-get install med-bio installs all applications relevant for Biology or apt-get install med-imaging-dev prepares the target machine for developing of medical imaging applications.
2. What about Derivatives?
2.1. Q. What about Ubuntu?
A. Despite the name, this project is not exclusively about producing packages for Debian, and many packagers are involved with both Debian and Ubuntu. Debian Med packages automatically become part of Ubuntu, but this process takes time so the Ubuntu package will often be behind the one you see in Debian Sid. As with Debian, new packages and non-critical updates are not added to an Ubuntu release after the release freeze (a month or so before the release date). And packages in the experimental section of Debian may not be acceptable for the Ubuntu main distributions.
The process for getting the packages into Ubuntu is the responsibility of the Ubuntu MOTO developers and follows a set procedure aided by the Merge-o-Matic system system. Critical updates applied to already-stable releases are added separately in Debian and Ubuntu by the relevant local maintainers, but these are fairly rare among the packages maintained by Debian Med.
To help the situation with Ubuntu packages being out-of-date, Debian Med uses a Personal Package Archive on Launchpad. This allows any Debian Med developer to backport packages to any release of Ubuntu, making use of the Launchpad build system. But this is not automated and is not a priority for most packagers. You may need to ask for a specific package on the mailing list.
2.2. Q. What about other Linux distros?
A. Due to fundamental technical differences between DEB packages and formats like RPM or Gentoo Ebuilds, the packaging work done by Debian Med does not translate easily to ?RedHat, Suse, CentOS, Scientific Linux, etc. Therefore the efforts of the Debian Med team are not likely to be useful to users of these systems. An exception is Linux Mint which takes the ?http://community.linuxmint.com/software/search directly from Ubuntu and therefore has all the same Debian Med software as the regular Ubuntu distribution. You can also add Debian Med PPA to a Linux Mint system [I need to check this is true - Tim].
2.3. Q. I want a package that isn't in the Debian Archive, or a newer version of one that is. What can I do?
A. Supporting backports (newer packages to work on an older Debian or Ubuntu base) is something we do not currently do, but we recognise that this is a common need, especially given the rate of development of many scientific applications and the understandable tendency of departments to run a Stable OS platform (either Debian Stable or Ubuntu LTS) as opposed to Debian Testing. There are various ways you might try to get newer packages on your system. These are not without their problems, and in many cases will be no easier than compiling from source, but may be useful for many people.
Install packages from the NEBC Bio-Linux project. Bio-Linux is a customised Ubuntu distribution produced by the NERC Environmental Bioinformatics Centre in the UK. Some of these packages are backported from Debian while others are manually compiled or prepared from pre-compiled downloads. Bio-Linux aims to have the most popular packages no more than a month out of date. (see below how exactly you can add packages from Bio-Linux to your Ubuntu system)
Try installing packages from the newer Debian or Ubuntu release directly. If the package installs cleanly then in theory it should work. Packages can be downloaded from packages.debian.org or packages.ubuntu.com respectively. The downside is that some packages will not install cleanly due to missing dependency requirements, and even if the package installs you will miss out on automatic updates.
For Ubuntu users, try Debian Med Launchpad PPA as mentioned above. You can also search Launchpad for packages of interest but be aware; they have no way to audit what gets uploaded on the site and so you should consider carefully before installing software from a PPA.
- Try doing the backport yourself, by building a source package into a binary DEB. See the next question.
2.4. Q. I'm running Debian Testing. How long do I have to wait for package X to be updated?
2.5. Q. As a user, can I download anything directly from Debian Med?
A. As stated above, Debian Med does not directly distribute any ready-to-run software, because Debian/Ubuntu/etc. are the distribution mechanisms. We make what are referred to as source packages, but these are in fact the instructions needed to automatically build the upstream source of an application into the DEB packages which you can install on your computer. We share these via SCM repositories like Subversion or Git (different developers prefer different SCM systems) and you can access these if you want to try building a DEB for yourself. All packaging work (not limited to Debian Med) can be browsed through the portal at http://anonscm.debian.org.
2.6. Q. What's the easiest way to build a Debian Med package from source myself?
A. If you are familiar with building applications from source (configure ; make ; make check ; sudo make install) then building .deb packages is fairly similar. In theory, the packages should all build by a standard process, but as code and dependencies change you may need to do some tweaking to make the build work. There is plenty of information on-line but by way of illustration here is a recipe to build Velvet 1.1.05 and make a .deb package on a fresh Ubuntu 11.04 box.
1 #Install essential tools 2 sudo apt-get install subversion devscripts quilt 3 4 #Make a work area 5 mkdir -p velvet-build/latest 6 cd velvet-build/latest 7 8 #Fetch build metadata from SVN and pull original tarball from upstream site using uscan, 9 #then unpack it. 10 svn co svn://svn.debian.org/svn/debian-med/trunk/packages/velvet/trunk/debian 11 uscan 12 tar --strip-components=1 -xvzf ../*.orig.tar.gz 13 14 #Check the version of the tarball you downloaded and set the version of this package appropriately. 15 #In this case I had velvet_1.1.05.tgz 16 dch -v 1.1.05-custom1 'Local build of new version' 17 18 #See what build dependencies are required and then install them manually 19 dpkg-checkbuilddeps 20 sudo apt-get install cdbs debhelper zlib1g-dev help2man 21 22 #Check patches. Sometimes, a patch fails and needs to be fixed manually. 23 export QUILT_PATCHES=debian/patches 24 quilt push -a #Try to apply all Debian-specific patches. If this works, skip to next part 25 quilt push -f #There is an error, so force the final patch 26 cat *.rej #Examine conflicts 27 nano Makefile #Manually fix missing -lm -lz in Makefile 28 quilt refresh #Commit new version 29 rm *.rej #And clean up rejects file 30 31 #Now you can build the whole thing to get your .deb 32 debuild -i -us -uc -b 33 34 #And it is ready to install 35 sudo dpkg -i ../velvet_1.1.05-custom1_amd64.deb
The above is the most direct route to building a fairly simple package for your own use, but if you want to get more involved in package building or contribute fixes back to Debian Med then it is suggested to read the available documentation, and especially the Debian Med group policy. This package happens to be in the Subversion repository but the package you want may be in Git, and also note that some tools may be part of a larger download and will be packaged under that name. The trickiest bit in the above build was that the final patch failed because the small issue it addressed had been fixed by the newer upstream but in a slightly different way. Sorting this out it required a little knowledge of the quilt patch system, Makefile syntax, and linking to standard shared libraries (libz, libm) in order to get a working Makefile. Quilt was then refreshed to capture the necessary modifications as a patch file. The aim is to get to the point where 'debuild' runs successfully as this does all the work to build the source and make the DEB, and will complain if there are outstanding dependency or patch issues.
If you attempt a package build and get compilation failures, even when all dependencies are satisfied, then people on the Debian Med mailing list should be able to help.
2.7. Q. I succeeded in making a package compile; how do I contribute my build for others to use?
A. Debian Med does not directly distribute binary packages, so if you wanted to share the binary .deb you would have to do so yourself. If you are an Ubuntu user the PPA facility on Launchpad may be what you are looking for.
If you have fixed an error with a package, for example to make it compatible with a new version of the upstream release, then the package maintainer will appreciate your help. In the example above I tested building a newer version of Velvet and fixed one of the patch files to work with this new version. I can generate a patch file that captures my updates like so:
1 ( cd debian && svn diff ) > /tmp/my_changes_to_velvet.patch
Now I can contact the maintainer of the package (as listed in the debian/control file or revealed by dpkg -s etc.) directly, copying the message to the mailing list. If I explain my changes clearly the maintainer will see that they are correct and a push the changes through to Debian. These can go into Debian Sid immediately filter through to Debian Testing and the Ubuntu development release in short order.
2.8. Q. How can I install packages from Bio-Linux PPA to a default Ubuntu trusty system?
- Create a file /etc/apt/sources.list.d/20-bio-linux-ppa.list with the following content
deb http://ppa.launchpad.net/nebc/bio-linux/ubuntu/ trusty main
- Import the signing key of "Launchpad PPA for NEBC Team" via
gpg --recv-keys 759A8E0E5BA15160 gpg -a --export 759A8E0E5BA15160 | sudo apt-key add -
2.9. Q. How can I install packages from Debian Med PPA to a default Ubuntu trusty system?
- Create a file /etc/apt/sources.list.d/20-debian-med-ppa.list with the following content
deb http://ppa.launchpad.net/debian-med/ppa/ubuntu trusty main deb-src http://ppa.launchpad.net/debian-med/ppa/ubuntu trusty main
- Import the signing key of "Launchpad PPA for Debian Med" via
gpg --recv-keys 5F8D4E5375DD1BE7 gpg -a --export 5F8D4E5375DD1BE7 | sudo apt-key add -
Here you can find a list of packages backported to trusty
2.10. Q. How can I upload packages to Debian Med PPA?
Ask for membership at Debian Med PPA
Make sure you have uploaded your fingerprint
- Create a dput config file "~/.dput.cf" containing
[debianmedppa] fqdn = ppa.launchpad.net method = ftp incoming = ~debian-med/ppa/ubuntu/ login = anonymous allow_unsigned_uploads = 0
- Only source packages can be uploaded to PPAs. The source package can be created for instance via
- The upload can be done via
dput debianmedppa *_source.changes
2.11. Q. How can I create packages on a Debian system for other distros?
You can setup a cowbuilder chroot. Here is an example for an Ubuntu trusty system which also includes the Debian Med PPA:
COMPONENTS="main universe" sudo cowbuilder --create --distribution trusty \ --basepath /var/cache/pbuilder/trusty.cow \ --mirror http://de.archive.ubuntu.com/ubuntu/ \ --othermirror "deb http://ppa.launchpad.net/debian-med/ppa/ubuntu trusty main" \ --debootstrapopts "--keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg"