How To Install svn-buildpackage on Debian 11

In this tutorial we learn how to install svn-buildpackage on Debian 11. svn-buildpackage is helper programs to maintain Debian packages with Subversion

Introduction

In this tutorial we learn how to install svn-buildpackage on Debian 11.

What is svn-buildpackage

svn-buildpackage is:

svn-buildpackage (formerly svn-devscripts) contains tools that help to automate the task of maintaining Debian packages inside of a Subversion repository. They are intended to be used by Debian maintainers to simplify the error-prone actions with the svn, devscripts, and dpkg-dev utilities.

  • svn-inject: creates the initial directory structure of a Debian-SVN repository and imports existing packages
  • svn-upgrade: imports upstream changes into the upstream branch and updates the Debian trunk directory, merging and tagging as needed
  • svn-buildpackage: wrapper around dpkg-buildpackage (or other builders), exporting/merging/tagging source as needed
  • svn-do: exports a source, runs a command inside the exported source and, if the command succeeds, copies back the debian/ tree
  • uclean: removes redundant files from upstream source packages

The package also includes a detailed HOWTO document.

There are three methods to install svn-buildpackage 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 svn-buildpackage Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install svn-buildpackage using apt-get by running the following command:

sudo apt-get -y install svn-buildpackage

Install svn-buildpackage Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install svn-buildpackage using apt by running the following command:

sudo apt -y install svn-buildpackage

Install svn-buildpackage 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 svn-buildpackage using aptitude by running the following command:

sudo aptitude -y install svn-buildpackage

How To Uninstall svn-buildpackage on Debian 11

To uninstall only the svn-buildpackage package we can use the following command:

sudo apt-get remove svn-buildpackage

Uninstall svn-buildpackage And Its Dependencies

To uninstall svn-buildpackage and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove svn-buildpackage

Remove svn-buildpackage Configurations and Data

To remove svn-buildpackage configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge svn-buildpackage

Remove svn-buildpackage configuration, data, and all of its dependencies

We can use the following command to remove svn-buildpackage configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge svn-buildpackage

Dependencies

svn-buildpackage have the following dependencies:

References

Summary

In this tutorial we learn how to install svn-buildpackage package on Debian 11 using different package management tools: apt, apt-get and aptitude.