How To Install ruby-sprite-factory on Kali Linux
Introduction
In this tutorial we learn how to install ruby-sprite-factory
on Kali Linux.
What is ruby-sprite-factory
ruby-sprite-factory is:
The sprite factory is a ruby library that can be used to generate CSS sprites. It combines individual image files from a directory into a single unified sprite image and creates an appropriate CSS stylesheet for use in your web application.
The library provides:
- both a ruby API and a command line script.
- many customizable options.
- support for multiple layout algorithms - horizontal, vertical or packed.
- support for any stylesheet syntax, including CSS and Sass.
- support for any image library, including RMagick and ChunkyPNG.
- support for any css selector style, including :hover pseudo-class selectors.
- support for pngcrush’n the generated image file.
- compatible with Rails 3.1 asset pipeline.
There are three methods to install ruby-sprite-factory
on Kali Linux. 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-sprite-factory 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-sprite-factory
using apt-get
by running the following command:
sudo apt-get -y install ruby-sprite-factory
Install ruby-sprite-factory Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ruby-sprite-factory
using apt
by running the following command:
sudo apt -y install ruby-sprite-factory
Install ruby-sprite-factory Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install ruby-sprite-factory
using aptitude
by running the following command:
sudo aptitude -y install ruby-sprite-factory
How To Uninstall ruby-sprite-factory on Kali Linux
To uninstall only the ruby-sprite-factory
package we can use the following command:
sudo apt-get remove ruby-sprite-factory
Uninstall ruby-sprite-factory And Its Dependencies
To uninstall ruby-sprite-factory
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove ruby-sprite-factory
Remove ruby-sprite-factory Configurations and Data
To remove ruby-sprite-factory
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge ruby-sprite-factory
Remove ruby-sprite-factory configuration, data, and all of its dependencies
We can use the following command to remove ruby-sprite-factory
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-sprite-factory
Dependencies
ruby-sprite-factory have the following dependencies:
References
Summary
In this tutorial we learn how to install ruby-sprite-factory
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.