How To Install libjs-swfobject on Ubuntu 18.04

In this tutorial we learn how to install libjs-swfobject on Ubuntu 18.04. libjs-swfobject is tool to embed Flash content into webpages

Introduction

In this tutorial we learn how to install libjs-swfobject on Ubuntu 18.04.

What is libjs-swfobject

libjs-swfobject is:

SWFObject is an easy-to-use and standards-friendly method to embed Flash content, which utilizes one small JavaScript file.

  • it offers two optimized Flash Player embed methods; a markup based approach and a method that relies on JavaScript
  • it offers a JavaScript API that aims to provide a complete tool set for embedding SWF files and retrieving Flash Player related information
  • it utilizes only one small JavaScript file (10Kb / GZIPed: 3.9Kb)
  • it is the successor of SWFObject 1.5, UFO and the Adobe Flash Player Detection Kit
  • it intends to unify all existing Flash Player embed methods and provide a new standard for embedding Adobe Flash Player content

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

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

sudo apt-get update

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

sudo apt-get -y install libjs-swfobject

Install libjs-swfobject Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libjs-swfobject

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

sudo aptitude -y install libjs-swfobject

How To Uninstall libjs-swfobject on Ubuntu 18.04

To uninstall only the libjs-swfobject package we can use the following command:

sudo apt-get remove libjs-swfobject

Uninstall libjs-swfobject And Its Dependencies

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

sudo apt-get -y autoremove libjs-swfobject

Remove libjs-swfobject Configurations and Data

To remove libjs-swfobject configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libjs-swfobject

Remove libjs-swfobject configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libjs-swfobject

References

Summary

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