How To Install flasm on Ubuntu 20.04

In this tutorial we learn how to install flasm on Ubuntu 20.04. flasm is assembler and disassembler for Flash (SWF) bytecode

Introduction

In this tutorial we learn how to install flasm on Ubuntu 20.04.

What is flasm

flasm is:

Flasm disassembles your entire SWF including all the timelines and events. Looking at disassembly, you learn how the Flash compiler works. You can also do some optimization on the disassembled code by hand or adjust the code as you wish. Flasm can then re-assemble the bytecode into a new SWF.

It is also possible to embed Flasm actions in your ActionScript, making optimization of large projects more comfortable.

Flasm is not a decompiler. What you get is the human readable representation of SWF bytecode, not ActionScript source.

Flasm can also compress and decompress SWF files.

Flasm does not and may never work with Flash 9 files since Flash 9 is a new virtual machine and support for it would mean a full rewrite.

There are three methods to install flasm on Ubuntu 20.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 flasm Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install flasm

Install flasm Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install flasm

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

sudo aptitude -y install flasm

How To Uninstall flasm on Ubuntu 20.04

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

sudo apt-get remove flasm

Uninstall flasm And Its Dependencies

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

sudo apt-get -y autoremove flasm

Remove flasm Configurations and Data

To remove flasm configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge flasm

Remove flasm configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge flasm

References

Summary

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