How To Install ruby-asset-sync on Debian 11
Introduction
In this tutorial we learn how to install ruby-asset-sync
on Debian 11.
What is ruby-asset-sync
ruby-asset-sync is:
After you run assets:precompile your compiled assets will be synchronised with your Amazon S3/Cloudfront or Rackspace Cloudfiles.
Asset Sync is built to run with the new Rails Asset Pipeline feature introduced in Rails 3.1. After you run bundle exec rake assets:precompile your assets will be synchronised to your cloud account, optionally deleting unused files and only uploading the files it needs to.
There are three methods to install ruby-asset-sync
on Debian 11. 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-asset-sync 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-asset-sync
using apt-get
by running the following command:
sudo apt-get -y install ruby-asset-sync
Install ruby-asset-sync Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ruby-asset-sync
using apt
by running the following command:
sudo apt -y install ruby-asset-sync
Install ruby-asset-sync 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-asset-sync
using aptitude
by running the following command:
sudo aptitude -y install ruby-asset-sync
How To Uninstall ruby-asset-sync on Debian 11
To uninstall only the ruby-asset-sync
package we can use the following command:
sudo apt-get remove ruby-asset-sync
Uninstall ruby-asset-sync And Its Dependencies
To uninstall ruby-asset-sync
and its dependencies that are no longer needed by Debian 11, we can use the command below:
sudo apt-get -y autoremove ruby-asset-sync
Remove ruby-asset-sync Configurations and Data
To remove ruby-asset-sync
configuration and data from Debian 11 we can use the following command:
sudo apt-get -y purge ruby-asset-sync
Remove ruby-asset-sync configuration, data, and all of its dependencies
We can use the following command to remove ruby-asset-sync
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-asset-sync
Dependencies
ruby-asset-sync have the following dependencies:
References
Summary
In this tutorial we learn how to install ruby-asset-sync
package on Debian 11 using different package management tools: apt
, apt-get
and aptitude
.