How to install Debian packages on Vyatta

Last updated on February 1, 2013 by Dan Nanni

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

Support Xmodulo

This website is made possible by minimal ads and your gracious donation via PayPal or credit card

Please note that this article is published by Xmodulo.com under a Creative Commons Attribution-ShareAlike 3.0 Unported License. If you would like to use the whole or any part of this article, you need to cite this web page at Xmodulo.com as the original source.

Xmodulo © 2021 ‒ AboutWrite for UsFeed ‒ Powered by DigitalOcean