Warning this article may contain opinions of the author that you and iTWire don't agree with.
Visit the last page to have your say forum.
PDFPrintE-mail

A spotter’s guide to open-source Linux package formats

Opinion and Analysis

Want to find open source tools? Linux distros have long had the tradition that software is bundled into easily-installed packages. Yet, finding packages can be less than intuitively obvious and even then they may not appear to be available for your flavour of choice. Here’s how to get the most out of Linux packages.

free hit counter
Actually, the first place to look is your very Linux distribution CD or DVD set. All Linux distros except those of the “damn small” variety ship with much more software on disc than is typically installed. When installing a distro you get a choice as to the kind of system you want often in the form of workstation vs server which installs different combinations of packages.

You can always add to the installed software by using a graphical tool to add (or remove) items, if your distro provides such. In some cases you might need to manually find the raw packages on the original disc but these will generally be located all in one folder with no clear organisation save for the name of the software. That’s fine, unless you only know the type of software you need, not the actual name of something that does it.

Here’s where the Internet always comes in handy. Check out great open source software sites like FreshMeat or Sourceforge. Check them out and search for interesting new apps.

It’s not plain sailing even once you’ve found something: check out MySource Classic for example. This sounds cool; it’s a powerful open source web site and intranet content management system. It is designed to enable technically unskilled users to build and maintain their own online solutions securely, professionally and inexpensively. It’s your classic LAMP app, written in PHP and using Apache and MySQL.

However, MySource Classic is available for download as a .zip file or a .tar.gz file. Both of these are archive formats. Most everyone knows what a zip file is, but .tar.gz – also represented as .tgz – is largely a Linux/UNIX specific format known as a tarball.

Tarballs are convenient formats for distributing source code; it’s pretty universal (harking back to “the old days”, the name tar actually deriving from “tape archive”) and easily transported. However, it’s different from a package format like the apps that come with your Linux distro. Packages contain executable binary files as well as any other configuration items or other files required, and the package manager puts everything in the right place without any effort on your part.

Call up a terminal console and use the tar command to inspect the archive; as with everything Linux there are a few options here.

You can uncompress the tarball using gunzip, namely

gunzip mysource-2.16.2.tar.gz

This leaves a new file called mysource-2.16.2.tar; inspect its contents via

tar –tvf mysource-2.16.2.tar | more

The contents now spill forth. Alternatively, you can examine the original tarball without compressing via a variant of the tar command, namely

tar –tzvf mysource-2.16.2.tar | more

Let’s delve further; we know what the archive contains so let’s crack it open.

CONTINUED





 



SPONSORED PRESS RELEASES

Websense Security Labs Reports ‘User Trust’ Targeted Attacks; Over 1 in 10 ‘Top Search’ Results Categorised as Malware; Increased Focus on Web 2.0
Websense, Inc. today revealed the findings from its bi-annual research report: Websense Security Labs, State of Internet Security, Q3-Q4 2009.

Featured IT jobs

A varied DBA role that involves multitasking in a dynamic software development environment dealing with challenging customer needs on a daily basis.
Skills Tags:   Linux  Oracle  UAT
A position has just become available for experienced Program/Project Manager to join a large organisation on a major Data Centre upgrade....
Skills Tags:   SAP
URGENT! Experienced BDM needed for senior sales role in Melbourne - must have ITSM consultancy sales experience.
Skills Tags:   C  Development  EDI  IT
CRITICAL INCIDENT COORDINATOR - 24 x 7 shifts - 3 month CONTRACT ONLY...
Skills Tags:   Excel  IT  ITIL  Management  Reporting

Editors Picks

Stories you may have missed 

What iTWire offers for free

E - mail News SMS Headlines Desktop Alerts News Feeds Job Alerts Technology Events Press-Releases