How To Install dynagen on Ubuntu 18.04

In this tutorial we learn how to install dynagen on Ubuntu 18.04. dynagen is Cisco 7200 Router Emulator Command Line Interface

Introduction

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

What is dynagen

dynagen is:

Dynagen is a text-based front end for Dynamips, that uses the Hypervisor mode for communication with Dynamips. Dynagen simplifies building and working with virtual networks:

  • Uses a simple, easy to understand configuration file for specifying virtual router hardware configurations
  • Simple syntax for interconnecting routers, bridges, frame-relay and ATM switches. No need to deal with NetIOs
  • Can work in a client / server mode, with Dynagen running on your workstation communicating to Dynamips running on a back-end server. Dynagen can also control multiple Dynamips servers simultaneously for distributing large virtual networks across several machines.
  • Provides a management CLI for listing devices, starting, stopping, reloading, suspending, and resuming virtual routers.

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

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

sudo apt-get update

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

sudo apt-get -y install dynagen

Install dynagen Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install dynagen

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

sudo aptitude -y install dynagen

How To Uninstall dynagen on Ubuntu 18.04

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

sudo apt-get remove dynagen

Uninstall dynagen And Its Dependencies

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

sudo apt-get -y autoremove dynagen

Remove dynagen Configurations and Data

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

sudo apt-get -y purge dynagen

Remove dynagen configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge dynagen

References

Summary

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