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.
- Operating system: Ubuntu 22.04 or older versions with more than 2GB RAM
- Privileges: Verify that you can execute the sudo commands line.
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:
Step 2: Install the package on Ubuntu 22.04. You can now install a2ps Ubuntu by executing this command in the terminal.
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.
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:
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
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.
If you want to uninstall a2ps and delete its data and dependencies, you can also run the following command:
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.