23
Sat, Nov
1 New Articles

TechTip: Handling Archived and Zip File Formats the Open-Source Way

Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

Several open-source utilities are available to handle all your archival and zip file formatting needs on both Windows and Linux desktops and servers.

 

How do you commonly handle archived and zip file formats on your Windows and Linux systems? In this TechTip, I'll show you a few free and open-source utilities available to handle these tasks, plus remind you of a few native Linux system utilities.

A Little Bit of History

File compression and archival is nothing new. It dates back to the 1960s, when IBM had a utility called SQUOZE that was used to package programs. By the 1970s, file archival programs started to become mainstream and commonly came packaged as system utilities as part of the OS. The UNIX utility Tar (tape archive) is a perfect example of such a utility. Tar itself archives files, and combined with compression using Gzip or Bzip2, Tar can produce and extract compressed files commonly referred to as Tarballs.

 

 

The zip file is another format for archiving files and was invented by Phil Katz in the 1980s for a utility called PKZIP. He kept the format open, which allowed it to become the popular zip file format that we know today. These technologies and formats paved the way for many of the popular licensed and open-source utilities you can find today.

Windows Archival Tools

Two of the most common licensed non-free programs to handle archived and zipped files in Windows are WinZIP and WinRAR. Also, Windows XP comes with the ability to open and extract compressed files in the Explorer shell; however, you're very limited in options with the Windows tools. WinZIP and WinRAR are full-featured programs for handling files, but again, they're not open-source tools, and you must purchase a license after the trial period expires. Here's where a few open-source alternatives come into play.

 

7Zip

 

7Zip is a file archiver that runs on both 32- and 64-bit versions of the Windows operating systems. A great feature of 7Zip is that it's supported in virtually every instance of Windows known, including 98, ME, NT, 2000, XP, and Vista. The 7Zip utility is mostly licensed under the GNU LGPL, with the exception of the unRAR code being licensed under a combination of GNU LPGL and unRAR restrictions. The details can be found under the license description.

 

One of the enticing features of 7Zip is its ability to support 256-bit AES encryption in zip compression format, along with its own 7Z format. It also supports packing and unpacking files in 7Z, Zip, Gzip, Bzip2, and Tar formats, and it provides the ability to unpack files from over a dozen more compression formats. 7Zip claims to provide compression ratios that are superior to those of PKZip and WinZIP utilities, ranging from 2 percent to 10 percent better compression ratios. And finally, 7Zip provides a powerful command line interface alongside its GUI interface.

 

7Zip is powerful enough to open and extract many Windows .exe, .msi, and cabinet files if you need to examine the contents of normally inaccessible items. Figure 1 below shows 7Zip in action after extracting the contents of an .exe file on a Windows desktop.

 

 

040408Max7zip.png

Figure 1: 7Zip extracted a Windows executable file to a folder. (Click images to enlarge.)

 

 

This demonstrates only the simplest of what 7Zip is capable of doing for you. Visit the 7Zip Web site to read more details and download a copy to test out and use.

 

 

PeaZip

 

PeaZip is another utility very similar to 7Z for your archival needs. It's unique in that it's a cross-platform utility that will run on Windows 9x, 2000, XP, and Vista along with being able to run on Linux. PeaZip provides Debian and RPM packages, as well as source files for installing it on any Linux flavor you like. It also supports versions 1 and 2 of the Linux GTK graphical environment. If you don't want to install any software on the Linux system, you can use the standalone version, which unpacks everything you need to run PeaZip locally from a folder, instead of installing binaries on systems.

 

Just like 7Zip, PeaZip supports creating and extracting files in 7Z, Gzip, Bzip2, Tar, Zip, and many more. For extraction purposes only, PeaZip supports RAR, DEB, ISO, ACE, RAR, and many more archive types. Encryption is supported using the AES 256-bit algorithm. Figure 2 shows me adding directories and files in preparation to creating an archive. You can see the creation types supported.

 

040408Maxpeazip.png

Figure 2: Create an archived project using PeaZip's interface.

 

To obtain a copy of either the Windows or Linux version of PeaZip, visit the Sourceforge Web site.

Native Linux Tools

Although graphical tools, such as built-in Gnome and KDE package viewers and PeaZip's GUI, are useful on a Linux system, chances are you can manage archived files better and faster on a command line. Almost all Linux installations already come with many of the tools that you need to handle zipped files. I've yet to come across a Linux install that didn't have Tar installed. You can use Tar to handle common .tar and .tar.gz files. To read the Tar manual, type "man tar" at the command line.

 

The most common programs to handle zip files are already installed as well. Check out the command "unzip" to unpack zip files and the utility "zip" to create an archive. Others include bunzip2/bzip2 and gunzip/gzip2. If you're familiar with Linux in the least, chances are you already know about all of these commands. If you're not, remember that you can read the manual of virtually every Linux command by typing "man" followed by the command you want to investigate at a command line shell.

Zip-A-Dee-Doo-Dah, Zip-A-Dee-A

Whether you're using archived tar and zip files to easily package and transport resources across a LAN or email or you're using them for backup purposes, chances are you touch and maintain packaged files on a daily basis. Although it might be a common task, it's still important to have the right tools available at your disposal.

 

There are plenty of commercially available products to assist you with creating and unpacking archived files, but if you find any of these lacking, give these open-source alternatives a try on your systems. As always, if you find an open-source project useful, consider dropping a thank-you note to the maintainers. Often, this is far more meaningful to an open-source maintainer than anything else.

Max Hetrick

Max Hetrick is an Information Systems Assistant for an electric utility. He has experience with installation and maintenance of both Windows and Linux operating systems from the PC to server levels. Max is also an open-source software advocate. He welcomes all comments and can be reached at This email address is being protected from spambots. You need JavaScript enabled to view it..

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  • SB Profound WC 5536 Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. You can find Part 1 here. In Part 2 of our free Node.js Webinar Series, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Brian will briefly discuss the different tools available, and demonstrate his preferred setup for Node development on IBM i or any platform. Attend this webinar to learn:

  • SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation. Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects. The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the company are not aligned with the current IT environment.

  • SB HelpSystems ROBOT Generic IBM announced the E1080 servers using the latest Power10 processor in September 2021. The most powerful processor from IBM to date, Power10 is designed to handle the demands of doing business in today’s high-tech atmosphere, including running cloud applications, supporting big data, and managing AI workloads. But what does Power10 mean for your data center? In this recorded webinar, IBMers Dan Sundt and Dylan Boday join IBM Power Champion Tom Huntington for a discussion on why Power10 technology is the right strategic investment if you run IBM i, AIX, or Linux. In this action-packed hour, Tom will share trends from the IBM i and AIX user communities while Dan and Dylan dive into the tech specs for key hardware, including:

  • Magic MarkTRY the one package that solves all your document design and printing challenges on all your platforms. Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product. Make sure your data survives when catastrophe hits. Request your trial now!  Request Now.

  • SB HelpSystems ROBOT GenericForms of ransomware has been around for over 30 years, and with more and more organizations suffering attacks each year, it continues to endure. What has made ransomware such a durable threat and what is the best way to combat it? In order to prevent ransomware, organizations must first understand how it works.

  • SB HelpSystems ROBOT GenericIT security is a top priority for businesses around the world, but most IBM i pros don’t know where to begin—and most cybersecurity experts don’t know IBM i. In this session, Robin Tatam explores the business impact of lax IBM i security, the top vulnerabilities putting IBM i at risk, and the steps you can take to protect your organization. If you’re looking to avoid unexpected downtime or corrupted data, you don’t want to miss this session.

  • SB HelpSystems ROBOT GenericCan you trust all of your users all of the time? A typical end user receives 16 malicious emails each month, but only 17 percent of these phishing campaigns are reported to IT. Once an attack is underway, most organizations won’t discover the breach until six months later. A staggering amount of damage can occur in that time. Despite these risks, 93 percent of organizations are leaving their IBM i systems vulnerable to cybercrime. In this on-demand webinar, IBM i security experts Robin Tatam and Sandi Moore will reveal:

  • FORTRA Disaster protection is vital to every business. Yet, it often consists of patched together procedures that are prone to error. From automatic backups to data encryption to media management, Robot automates the routine (yet often complex) tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:

  • FORTRAManaging messages on your IBM i can be more than a full-time job if you have to do it manually. Messages need a response and resources must be monitored—often over multiple systems and across platforms. How can you be sure you won’t miss important system events? Automate your message center with the Robot Message Management Solution. Key features include:

  • FORTRAThe thought of printing, distributing, and storing iSeries reports manually may reduce you to tears. Paper and labor costs associated with report generation can spiral out of control. Mountains of paper threaten to swamp your files. Robot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing. Manage your reports with the Robot Report Management Solution. Key features include:

  • FORTRAFor over 30 years, Robot has been a leader in systems management for IBM i. With batch job creation and scheduling at its core, the Robot Job Scheduling Solution reduces the opportunity for human error and helps you maintain service levels, automating even the biggest, most complex runbooks. Manage your job schedule with the Robot Job Scheduling Solution. Key features include:

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed. Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

  • LANSASupply Chain is becoming increasingly complex and unpredictable. From raw materials for manufacturing to food supply chains, the journey from source to production to delivery to consumers is marred with inefficiencies, manual processes, shortages, recalls, counterfeits, and scandals. In this webinar, we discuss how:

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • Profound Logic Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: