How to install Git on Vyos


#1

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


#2

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


#3

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 http://archive.debian.org/debian squeeze-lts main contrib non-free # squeeze-lts #

Must I add something else?

Thanks


#4

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.