How To Install ruby-rails-admin on Debian 9
Introduction
In this tutorial we learn how to install ruby-rails-admin
on Debian 9.
What is ruby-rails-admin
ruby-rails-admin is:
RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data.
Features:
- CRUD any data with ease
- Custom actions
- Automatic form validation
- Search and filtering
- Export data to CSV/JSON/XML
- Authentication (via Devise)
- Authorization (via Cancan)
- User action history (via PaperTrail)
Supported ORMs:
- ActiveRecord
- Mongoid
There are three methods to install ruby-rails-admin
on Debian 9. 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-rails-admin 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-rails-admin
using apt-get
by running the following command:
sudo apt-get -y install ruby-rails-admin
Install ruby-rails-admin Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ruby-rails-admin
using apt
by running the following command:
sudo apt -y install ruby-rails-admin
Install ruby-rails-admin 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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install ruby-rails-admin
using aptitude
by running the following command:
sudo aptitude -y install ruby-rails-admin
How To Uninstall ruby-rails-admin on Debian 9
To uninstall only the ruby-rails-admin
package we can use the following command:
sudo apt-get remove ruby-rails-admin
Uninstall ruby-rails-admin And Its Dependencies
To uninstall ruby-rails-admin
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove ruby-rails-admin
Remove ruby-rails-admin Configurations and Data
To remove ruby-rails-admin
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge ruby-rails-admin
Remove ruby-rails-admin configuration, data, and all of its dependencies
We can use the following command to remove ruby-rails-admin
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-rails-admin
Dependencies
ruby-rails-admin have the following dependencies:
- ruby
- ruby-builder
- ruby-coffee-rails
- ruby-font-awesome-rails
- ruby-font-awesome-rails
- ruby-haml
- ruby-jquery-rails
- ruby-jquery-rails
- ruby-jquery-ui-rails
- ruby-kaminari
- ruby-nested-form
- ruby-rack-pjax
- ruby-rails
- ruby-remotipart
- ruby-safe-yaml
- ruby-sass-rails
- ruby-sass-rails
References
Summary
In this tutorial we learn how to install ruby-rails-admin
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.