How to Uninstall and Install facter Ubuntu 22.04

Updated: September 6, 2022

Facter is Puppet’s cross-platform system profiling library. It discovers and reports per-node facts, which are collected by the Puppet agent and are made available in Puppet manifests as variables. Facter comes with a number of built-in facts providing information about the operating system, hardware, SSH keys, etc., but is also easily extensible through the following interfaces: In this tutorial, I will show you ways to install facter Ubuntu 22.04.


  • Operating system: facter needs Ubuntu 22.04 to work
  • Privileges: Make sure you are able to execute sudo commands.

Prerequisites to install facter on Ubuntu 22.04

Install facter Ubuntu 22.04

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

Install facter using APT

This is one of the most popular methods for installing Ubuntu packages since it is simple to understand, even if you are a Linux novice. Following these instructions to install facter on your Ubuntu 22.04.

Step 1: Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt-get update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install facter Ubuntu by executing this command in the terminal.

sudo apt-get -y install facter

Install facter using Aptitude

You must run this command to install Aptitude if you haven’t already done so on Ubuntu.

sudo apt -y install aptitude

After installing it, you can now install facter by following these steps:

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Launching the terminal and entering the following Linux command:

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can install facter Ubuntu by pasting this command into the terminal and executing it.

sudo aptitude -y install facter

Uninstall facter on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a facter, can be easily uninstalled by anyone.

If you installed facter using APT or Aptitude, you could uninstall facter on Ubuntu by following this step:

sudo apt remove --auto-remove facter

To uninstall facter and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge facter


In this guide, I showed you ways to install facter on Ubuntu 22.04 and ways to uninstall facter too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.