430 CHAPTER 29 (Msn web hosting) INSTALLING SOFTWARE DECODING PACKAGE
Friday, March 14th, 2008430 CHAPTER 29 INSTALLING SOFTWARE DECODING PACKAGE FILENAMES Although the filenames of packages might seem like cryptic mumbo-jumbo, they actually tell you a great deal about the file. Let s take a look at the package file of the Eye of GNOME image viewer to explain this: eog_2.12.1-0ubuntu2_i386.deb The first element of the filename is the name of the program. In this case, Eye of GNOME has been abbreviated to eog. Abbreviations like this are quite common because they decrease the length of the filename. But it s important to note that they will be consistent. For as long as Eye of GNOME is supported as a package under Ubuntu, its package filename will always begin with eog. Following the name of the package is the version number of the program in question: 2.12.1-0. This is the version number that will appear if you click Help . About when the program is running, and is the version number decided on by the developer who created the software. After the version number is the word ubuntu, which indicates that this is a package that s been created specifically for the Ubuntu distribution of Linux. Then you see the build version number of the package: 2. This is Ubuntu s own version number, indicating how many times the package has been built (created) by the Ubuntu team. Sometimes, it s necessary to release an updated build of the same version of a program in order to correct an error that was accidentally introduced in the last build version. Sometimes, the program is patched by the Ubuntu team in order to support a new function. After the version numbers is the platform on which the package will run. In this case, i386 indicates that the package will run on all x86-based processors from the 80386 upwards (the 486, Pentium, Pentium II, AMD processors, and so on). Sometimes, you might see i686, which means that the package has been optimized for Pentium Pro chips and above (Pentium II, III, IV, and AMD s Athlon range of chips). If the package is created for 64-bit desktop processors, then amd64 will appear there. Optimized versions of packages for particular processors are used only when they might bring a performance boost. For example, there are i686 versions of the Linux kernel and the libc6 library. But it s rare for ordinary programs, like OpenOffice.org, to be optimized. This means the majority of packages that are used under Ubuntu have the i386 designation. Installing from Source Back in the old days of Unix, the only way to install software was from source code, a process known as compiling. This was because most people edited the source code themselves, or at least liked to have the option of doing so. Nowadays, innovations such as the Debian package- management system make compiling all but redundant for the average user. But knowing how to compile a program from source is still a good Linux skill to have. In some cases, it s your only option for installing certain programs because you may not be able to find a packaged binary. It goes without saying that program compilation is usually handled at the command prompt. It s not the kind of thing you would do via a GUI program. Installing the Compiler Tools Before you can compile from source, you need to install several items of software: the make program, which oversees the process of creating a new program, and the GNU Compiler Collection (GCC), which does the hard work of turning the source code into a binary. In addition,