How to install Debian packages on Vyatta

Vyatta is a software-based router OS, built on Debian-based Linux distribution. As such, you can install many standard Debian software packages on a Vyatta-powered router. For example, I wanted to install dhcpdump on my Vyatta router to monitor DHCP traffic.

In order to install a Debian package on Vyatta, first check the version of Vyatta that you are running.

$ show version
Version:      VC6.4-2012.05.31
Description:  Vyatta Core 6.4 2012.05.31
.....

For Vyatta with version 6.0 or above, you should use Debian Squeeze (6.0) repositories to install packages from. The rest of the guide assumes that your Vyatta has version 6.0 and higher.

To set up Debian Squeeze repository on Vyatta:

$ configure
$ set system package repository squeeze components 'main contrib non-free'
$ set system package repository squeeze distribution 'squeeze'
$ set system package repository squeeze url 'http://mirrors.kernel.org/debian'
$ commit
$ save
$ exit

Optionally, if your Vyatta router is connected behind an http proxy, you need to configure proxy setting on Vyatta in order to be able to install packages via the proxy. To do that:

$ sudo vi /etc/apt/apt.conf
Acquire::http::proxy "http://your_proxy.com:port_number/";
Acquire::https::proxy "http://your_proxy.com:port_number/";

Now you can use apt-get command to install Debian packages on Vyatta.

$ sudo apt-get update
$ sudo apt-get install dhcpdump

Subscribe to Xmodulo

Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.


Support Xmodulo

Did you find this tutorial helpful? Then please be generous and support Xmodulo!

The following two tabs change content below.
Dan Nanni is the founder and also a regular contributor of Xmodulo.com. He is a Linux/FOSS enthusiast who loves to get his hands dirty with his Linux box. He likes to procrastinate when he is supposed to be busy and productive. When he is otherwise free, he likes to watch movies and shop for the coolest gadgets.

Leave a comment

Your email address will not be published. Required fields are marked *