How to install Git on Vyos

Hi all,

I want to install Git on my Vyos router but I can’t. Do you know how can I process? I have configure Ip adresses in all interfaces, I have also configure the ip route and DNS servers. But I always have the following message:
root@:~# apt-get install git
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package git

Can you help me please?

Thanks

You need to setup your /etc/apt/sources.list, however be very careful you may brick your installation.

Thank you for your reply Hagbard.
I have the following lines in my /etc/apt/sources.list:
deb http://packages.vyos.net/vyos helium main # community #
deb Index of /debian squeeze-lts main contrib non-free # squeeze-lts #

Must I add something else?

Thanks

Yup, that should be it. apt-get update && apt-get install git should install git for you. Please keep in mind that this is not an official supported option in 1.1.x, so as long as you don’t do an apt-get upgrade, you should be fairly save. Also, backup your system first if it’s not a dev system or anything you can afford to brick.
Otherwise , good luck.