How To Install golang-github-buengese-sgzip-dev on Debian 12
Introduction
In this tutorial we learn how to install golang-github-buengese-sgzip-dev
on Debian 12.
What is golang-github-buengese-sgzip-dev
golang-github-buengese-sgzip-dev is:
This is an experimental implementation of gzip that allows seeking in the compressed file. In normal gzip files that can only be achieved by decompressing from the start and discarding all data until the selected offset. This gzip implementation works around this by creating a special metadata file that maps uncompressed blocks to compressed blocks allowing it to only read the compressed blocks required.
Due to necessity of being able to start decompression from any block the dictionary is reset after every block. This somewhat negatively effects compression ratio but is a necessary tradeof in our use case. The gzip files created by this library are valid normal gzip files and can be decompressed by any other gzip implementation.
Warning
This library was purpose build for the rclone compression backend. If you are looking for a multithreaded golang gzip implementation you should be using klauspost/pgzip (https://github.com/klauspost/pgzip) which is the base for this library.
There are three methods to install golang-github-buengese-sgzip-dev
on Debian 12. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install golang-github-buengese-sgzip-dev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install golang-github-buengese-sgzip-dev
using apt-get
by running the following command:
sudo apt-get -y install golang-github-buengese-sgzip-dev
Install golang-github-buengese-sgzip-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install golang-github-buengese-sgzip-dev
using apt
by running the following command:
sudo apt -y install golang-github-buengese-sgzip-dev
Install golang-github-buengese-sgzip-dev 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 golang-github-buengese-sgzip-dev
using aptitude
by running the following command:
sudo aptitude -y install golang-github-buengese-sgzip-dev
How To Uninstall golang-github-buengese-sgzip-dev on Debian 12
To uninstall only the golang-github-buengese-sgzip-dev
package we can use the following command:
sudo apt-get remove golang-github-buengese-sgzip-dev
Uninstall golang-github-buengese-sgzip-dev And Its Dependencies
To uninstall golang-github-buengese-sgzip-dev
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove golang-github-buengese-sgzip-dev
Remove golang-github-buengese-sgzip-dev Configurations and Data
To remove golang-github-buengese-sgzip-dev
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge golang-github-buengese-sgzip-dev
Remove golang-github-buengese-sgzip-dev configuration, data, and all of its dependencies
We can use the following command to remove golang-github-buengese-sgzip-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge golang-github-buengese-sgzip-dev
Dependencies
golang-github-buengese-sgzip-dev have the following dependencies:
References
Summary
In this tutorial we learn how to install golang-github-buengese-sgzip-dev
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.