Ways to Install or Uninstall a2ps on Ubuntu 22.04

Updated: August 31, 2022

GNU a2ps converts files into PostScript for printing or viewing. It uses a nice default format, usually two pages on each physical page, borders surrounding pages, headers with useful information (page number, printing date, file name or supplied header), line numbering, symbol substitution as well as pretty printing for a wide range of programming languages. In this tutorial, I will show you how to install a2ps on Ubuntu 22.04.

Software Requirement

  • Operating system: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Verify that you can execute the sudo commands line.

Prerequisites to install a2ps on Ubuntu 22.04

Install a2ps Ubuntu 22.04

a2ps is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.

Install a2ps using APT

This is a popular method for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to get a2ps on your Ubuntu 22.04.

Step 1: Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing this Linux command:

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. You can now install a2ps Ubuntu by executing this command in the terminal.

sudo apt-get install a2ps

Install a2ps using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt install aptitude

Then, you can now install a2ps by following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt-get -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install a2ps Ubuntu by pasting this command into the terminal and pressing Enter.

sudo aptitude install a2ps

Uninstall a2ps on Ubuntu 22.04

Have you ever thought about how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone can easily uninstall any program, not just a package.

You can uninstall a2ps Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove a2ps

If you want to uninstall a2ps and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge a2ps


In this tutorial, I showed you ways to install a2ps on Ubuntu 22.04 and ways to uninstall a2ps too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.