How To Install ruby-omniauth-saml on Ubuntu 20.04
Introduction
In this tutorial we learn how to install ruby-omniauth-saml on Ubuntu 20.04.
What is ruby-omniauth-saml
ruby-omniauth-saml is:
This gem provides a strategy to use SAML with OmniAuth. Security Assertion Markup Language (SAML) is an XML-based, open-standard data format for exchanging authentication and authorization data between parties, in particular, between an identity provider and a service provider. Ruby-Versions: all
There are three methods to install ruby-omniauth-saml 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 ruby-omniauth-saml Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install ruby-omniauth-saml using apt-get by running the following command:
sudo apt-get -y install ruby-omniauth-saml
Install ruby-omniauth-saml Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install ruby-omniauth-saml using apt by running the following command:
sudo apt -y install ruby-omniauth-saml
Install ruby-omniauth-saml 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 ruby-omniauth-saml using aptitude by running the following command:
sudo aptitude -y install ruby-omniauth-saml
How To Uninstall ruby-omniauth-saml on Ubuntu 20.04
To uninstall only the ruby-omniauth-saml package we can use the following command:
sudo apt-get remove ruby-omniauth-saml
Uninstall ruby-omniauth-saml And Its Dependencies
To uninstall ruby-omniauth-saml and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove ruby-omniauth-saml
Remove ruby-omniauth-saml Configurations and Data
To remove ruby-omniauth-saml configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge ruby-omniauth-saml
Remove ruby-omniauth-saml configuration, data, and all of its dependencies
We can use the following command to remove ruby-omniauth-saml configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-omniauth-saml
References
Summary
In this tutorial we learn how to install ruby-omniauth-saml package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.