How To Install frr on Ubuntu 20.04
Introduction
In this tutorial we learn how to install frr
on Ubuntu 20.04.
What is frr
frr is:
FRRouting implements the routing protocols commonly used in the internet and private networks to exchange information between routers. Both IP and IPv6 are supported, as are BGP, OSPF, IS-IS, BABEL, EIGRP, RIP, LDP, BFD, PIM and NHRP protocols.
These protocols are used to turn your system into a dynamic router, exchanging information about available connections with other routers in a standards-compliant way. The actual packet forwarding functionality is provided by the OS kernel.
FRRouting is a fork of Quagga with an open community model. The main git lives on https://github.com/frrouting/frr.git and the project name is commonly abbreviated as “FRR.”
There are three methods to install frr
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install frr Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install frr
using apt-get
by running the following command:
sudo apt-get -y install frr
Install frr Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install frr
using apt
by running the following command:
sudo apt -y install frr
Install frr Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install frr
using aptitude
by running the following command:
sudo aptitude -y install frr
How To Uninstall frr on Ubuntu 20.04
To uninstall only the frr
package we can use the following command:
sudo apt-get remove frr
Uninstall frr And Its Dependencies
To uninstall frr
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove frr
Remove frr Configurations and Data
To remove frr
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge frr
Remove frr configuration, data, and all of its dependencies
We can use the following command to remove frr
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge frr
References
Summary
In this tutorial we learn how to install frr
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.