How To Install pristine-lfs on Ubuntu 22.04
Introduction
In this tutorial we learn how to install pristine-lfs
on Ubuntu 22.04.
What is pristine-lfs
pristine-lfs is:
pristine-lfs can store pristine upstream tarballs in Git leveraging Git LFS. Instead of storing the potentially large tarballs within the Git repository as blobs, Git LFS only stores specially prepared metadata in the repository, while storing the actual file contents out of band on a Git LFS server.
Using pristine-lfs allows Debian packages to be built entirely using sources in version control, without the need to keep copies of upstream tarballs.
An optional upstream signature may be attached to tarballs for verification by, for example, dpkg-source(1).
There are three methods to install pristine-lfs
on Ubuntu 22.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install pristine-lfs Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install pristine-lfs
using apt-get
by running the following command:
sudo apt-get -y install pristine-lfs
Install pristine-lfs Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install pristine-lfs
using apt
by running the following command:
sudo apt -y install pristine-lfs
Install pristine-lfs 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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install pristine-lfs
using aptitude
by running the following command:
sudo aptitude -y install pristine-lfs
How To Uninstall pristine-lfs on Ubuntu 22.04
To uninstall only the pristine-lfs
package we can use the following command:
sudo apt-get remove pristine-lfs
Uninstall pristine-lfs And Its Dependencies
To uninstall pristine-lfs
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove pristine-lfs
Remove pristine-lfs Configurations and Data
To remove pristine-lfs
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge pristine-lfs
Remove pristine-lfs configuration, data, and all of its dependencies
We can use the following command to remove pristine-lfs
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge pristine-lfs
References
Summary
In this tutorial we learn how to install pristine-lfs
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.