How To Install swfmill on Ubuntu 18.04

In this tutorial we learn how to install swfmill on Ubuntu 18.04. swfmill is xml2swf and swf2xml processor

Introduction

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

What is swfmill

swfmill is:

swfmill is a tool to process Shockwave Flash(TM) (SWF) files. It can convert SWF from and to an XML-dialect called swfml, which is closely modeled after the SWF file format.

Apart from this xml2swf and swf2xml functionality, it also provides a libxslt-based XSL transformator that supports an extension (“swft”) which helps with generating IDs for SWF objects and can import an SWF as XML using an XPath command (swft:document()).

As a simple application of such functionality, swfmill can pack together a bunch of media files (currently JPGs, PNGs, TTFs and other SWFs) into an SWF as “library objects” for your attachMovie() pleasure.

There are three methods to install swfmill 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 swfmill Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install swfmill

Install swfmill Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install swfmill

Install swfmill 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 swfmill using aptitude by running the following command:

sudo aptitude -y install swfmill

How To Uninstall swfmill on Ubuntu 18.04

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

sudo apt-get remove swfmill

Uninstall swfmill And Its Dependencies

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

sudo apt-get -y autoremove swfmill

Remove swfmill Configurations and Data

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

sudo apt-get -y purge swfmill

Remove swfmill configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge swfmill

References

Summary

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