Linux

Installing ns2-examples on Ubuntu 17.04 LTS

Example of installing ns2-examples on Ubuntu 17.04 LTS using the command sudo apt-get install ns2-examples.

Quick installation of ns2-examples:

Step 1: Update system:

sudo apt-get update

Step 2: Install: ns2-examples

Ater updaing the OS run following command to install the packae:

sudo apt-get install ns2-examples

Package Details

Package:ns2-examples
Version:2.35+dfsg-2.1
Maintainer:Ubuntu Developers
Home page:http://www.isi.edu/nsnam/ns/
Description:examples of ns2 Provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks. Ns-2 is written in C++ and an Object oriented version of Tcl called OTcl. . Ns began as a variant of the REAL network simulator in 1989 and has evolved substantially over the past few years. In 1995 ns development was supported by DARPA through the VINT project at LBL, Xerox PARC, UCB, and USC/ISI. Currently ns development is support through DARPA with SAMAN and through NSF with CONSER, both in collaboration with other researchers including ACIRI. Ns has always included substantal contributions from other researchers, including wireless code from the UCB Daedelus and CMU Monarch projects and Sun Microsystems. . This package contains examples of ns2
Distro:Ubuntu 17.04
Release:
Repo/Section:universe/net

How to install ns2-examples on Ubuntu 17.04?

First of all update your system with the command:

sudo apt-get update

Above command will download the package lists for Ubuntu 17.04 on your system. This will update the list of newest versions of packages and its dependencies on your system.

After downloading the latest package list with the help of above you can run the installation process.

If ns2-examples is not installed on your compter then the command 'dpkg -L ns2-examples' will give followin error.

deepak@deepak-VirtualBox:~$ dpkg -L ns2-examples
dpkg-query: package 'ns2-examples' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
deepak@deepak-VirtualBox:~$ 

Installing ns2-examples:

After system update use the following command to install ns2-examples:

sudo apt-get install ns2-examples

Above command will confirm before installing the package on your Ubuntu 17.04 Operating System. If you are not already logged in as su, installer will ask you the root password. After completion of the installation you can use the package on your system.

How to uninstall/remove ns2-examples from Ubuntu 17.04?

Now we will see the commands for uninstalling the ns2-examples from Ubuntu 17.04. For uninstalling this package you can easily use the apt command and remove the package from Linux Operating System.

To remove the ns2-examples following command is used:

sudo apt-get remove  ns2-examples

Following command is used to remove the ns2-examples package along with its dependencies:

sudo apt-get remove --auto-remove ns2-examples

This will remove ns2-examples and all its dependent packages which is no longer needed in the system.

Completely removing ns2-examples with all configuration files:

Following command should be used with care as it deletes all the configuration files and data:

sudo apt-get purge ns2-examples

or you can use following command also:

sudo apt-get purge --auto-remove ns2-examples

Above command will remove all the configuration files and data associated with ns2-examples package. You can can't recover the delete data, so, use this command with care.

Get our newsletter

Categories