![]() |
![]() |
Chapter 8: How do I get software for Linux?How software is packaged up in Linux Locating the software that came with your distribution Using rpmfind.net to get software Using Freshmeat and Sourceforge to get software The (tar)ball game, getting software that works for your distro Still can't find it? Use google! Okay, I got the software, Now how do I install it?!
How software is packaged up in Linux If you are a Windows or Mac user, you will be used to software being delivered to you in binary format, that is a program that is ready to run by double-clicking on it. A binary has already been compiled (a process done by the programmers of the software, to make it ready for your Operating System). Linux also uses binary format for most of the software you obtain, but because Linux software is made up of so much Open Source software, it can also comes in source code (programming language) format. If you wanted to, you could go in and edit the code to make it do anything you wanted it to, however most people are content with simply compiling it on their own PC and using the binaries that the compilation makes. Why would you want to compile source code applications? Linux is all about choice, so more often than not, you will be able to choose whether you want to install a source version of a given piece of software, or whether you wish to install a binary version of software. Why use binary at all if source code is so great? Software in Linux today is packaged up for easy installation in most cases. The most common formats are as follows:
The next section goes on to demonstrate where you can obtain software for your Linux sytem, in respect to each packaging system shown above.
![]() Locating the software that came with your distribution Linux has come a long way in recent years to make locating and installing software an easy process. Historically, Linux suffered from two things: Each distribution has it's own way of installing software, but thankfully they are generally straightforward and are centralised either around the RPM or DEB packaging system: The great thing about Linux today, is the stark contrast to the way users obtain software between operating systems like Mac OS or Windows. With Mac OS and Windows you have two choices when obtaining software:
2) Download it from the net Either way, you will need to go through a seperate installation process for each piece of software you purchase. This is not the case with most Linux distributions today. With specific regards to distributions such as Ubuntu and Linspire (Click-N-Run), you simply start up the Package Manager (eg: Synaptic, as shown above). Click on the title you wish to obtain, and it is downloaded from the net, installed and configured for you automatically. Just think - No going to the store, no InstallShield Wizards, No crazy config files, just click, and go! This almost sounds too good to be true, but it is almost a perfect system in a modern Linux distribution. Only a few exceptions exist; mainly with RPM-based distributions: For example, Fedora Core is a well organised distribution, notorious for it's long history in the Linux arena, as well as generally well-thought-out approach. However, Fedora and other similar RPM distributions suffer from the fact that if the software title you require is not provided on the CDs that came with the distribution, then you will have to obtain it from elsewhere. This can sometimes (but to a lesser extent these days) lead to the nasty situation of "Dependency Hell". Debian based distributions (Debian, Ubuntu, etc) generally have access to the Debian Universe & Multiverse, which put simply is a vast Internet repository of almost all of the Linux apps you could ever want. The best thing about this repository is the fact that it plugs in directly to the APT package system (which automatically downloads software and any other dependent software), and ultimately to your Package Manager, eg: Synaptic. It is for the reason that you may find yourself one day in a situation where you need to find software from an alternative source than from your distribution, that the rest of the chapter exists. The rest of this chapter discusses where you might obtain software in the .tar.gz and .rpm format, that should (but with no guarantees) work with your distribution. One final note which is very worthy if you are using Fedora Core, or similar is YUM. Yum is the Fedora equivalent of APT. Whilst it does not contain such a large software library as the Debian Universe/Multiverse, it will resolve problems with dependencies. Check out This Link for more information on YUM. ...About the ads on this site... Using rpmfind and RPMForge to get RPM packaged software RPMfind and RPMForge are just two of a number of good sites for all non-distribution specific RPM packages. If you use Red Hat Linux/Fedora Core, SuSE, Mandriva, Caldera, YellowDog, ASP Linux, Falsehope, Kondara Linux, Trustix and many many more RPM based linux distros, then these are great places for you to find software, however, be warned that you should use this software at your own risk, as it will likely not have been tested with your specific Linux distribution. As soon as you go to the RPMFind, you are presented with a search box. Type in the name of the rpm that you want and it generally returns a large amount of results. Pick an RPM from the list based for your distribution (if there is one), and download it. There is also a search by category, index, vendor and group search (amongst others). Some of these indexes are handy, but are quite big and can take quite a bit of going over. Obtaining software from Freshmeat.net and Sourceforge.net Both of these sites, part of the OSTG network, are open source havens for the Linux user, with hundreds (possibly thousands) of software titles being added or updated every single week.
The (tar)ball game of getting software Most of the time, you will find that the .tar or .tar.gz format is used to zip up source code format software, a .tar.gz file is often referred to as a tarball. Tarballs are usually double-zipped files. This means, that they're first archived with a tool called tar (the standard unix archiving tool), and then for best compressions sake, the tar file is then zipped up with gzip (the GNU Zip tool, which is akin to PKZIP).
Okay, I got the software, Now how do I install it?! A- ha! For that, you'll need to move on to Chapter 9: How do I install software? |