How To Install ruby-carrierwave on Debian 9
Introduction
In this tutorial we learn how to install ruby-carrierwave
on Debian 9.
What is ruby-carrierwave
ruby-carrierwave is:
Upload files in your Ruby applications, map them to a range of ORMs, store them on different backends.
This library provides a simple and extremely flexible way to upload files from Ruby applications. It works well with Rack based web applications, such as Ruby on Rails.
There are three methods to install ruby-carrierwave
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-carrierwave 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-carrierwave
using apt-get
by running the following command:
sudo apt-get -y install ruby-carrierwave
Install ruby-carrierwave Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ruby-carrierwave
using apt
by running the following command:
sudo apt -y install ruby-carrierwave
Install ruby-carrierwave 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-carrierwave
using aptitude
by running the following command:
sudo aptitude -y install ruby-carrierwave
How To Uninstall ruby-carrierwave on Debian 9
To uninstall only the ruby-carrierwave
package we can use the following command:
sudo apt-get remove ruby-carrierwave
Uninstall ruby-carrierwave And Its Dependencies
To uninstall ruby-carrierwave
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove ruby-carrierwave
Remove ruby-carrierwave Configurations and Data
To remove ruby-carrierwave
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge ruby-carrierwave
Remove ruby-carrierwave configuration, data, and all of its dependencies
We can use the following command to remove ruby-carrierwave
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-carrierwave
Dependencies
ruby-carrierwave have the following dependencies:
References
Summary
In this tutorial we learn how to install ruby-carrierwave
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.