How To Install swftools on Ubuntu 18.04

In this tutorial we learn how to install swftools on Ubuntu 18.04. swftools is Collection of utilities for SWF file manipulation/creation

Introduction

In this tutorial we learn how to install swftools on Ubuntu 18.04.

What is swftools

swftools is:

SWF Tools is a collection of SWF (Flash) manipulation and creation utilities.

This package includes: as3compile, font2swf, gif2swf, jpeg2swf, png2swf, swfcombine, swfextract, swfdump, swfrender, swfstrings, swfbbox, swfc and wav2swf.

  • as3compile is a standalone ActionScript 3.0 compiler. Mostly compatible with Flex.
  • font2swf converts font files (TTF, Type1) into SWF.
  • gif2swf converts GIFs into SWF. It is also able to handle animated gifs.
  • jpeg2swf takes one or more JPEG pictures and generates an SWF slideshow.
  • png2swf takes one or more PNG pictures and generates an SWF slideshow.
  • swfcombine is a tool for inserting SWFs into Wrapper SWFs. (Templates) E.g. for including the pdf2swf SWFs into some sort of Browsing-SWF.
  • swfextract allows one to extract Movieclips, Sounds, Images etc. from SWF files.
  • swfdump prints out various information about SWFs.
  • swfrender converts a swf to an image.
  • swfstrings scans SWFs for text data.
  • swfbbox allows one to readjust SWF bounding boxes.
  • swfc is a tool for creating SWF files from simple script files.
  • wav2swf converts WAV files into SWF.

This package does not include pdf2swf and avi2swf.

There are three methods to install swftools on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install swftools Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install swftools using apt-get by running the following command:

sudo apt-get -y install swftools

Install swftools Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install swftools using apt by running the following command:

sudo apt -y install swftools

Install swftools Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install swftools using aptitude by running the following command:

sudo aptitude -y install swftools

How To Uninstall swftools on Ubuntu 18.04

To uninstall only the swftools package we can use the following command:

sudo apt-get remove swftools

Uninstall swftools And Its Dependencies

To uninstall swftools and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove swftools

Remove swftools Configurations and Data

To remove swftools configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge swftools

Remove swftools configuration, data, and all of its dependencies

We can use the following command to remove swftools configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge swftools

References

Summary

In this tutorial we learn how to install swftools package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.