Motion is a program that monitors the video signal from one or more cameras and is able to detect if a significant part of the picture has changed. Or in other words, it can detect motion. I will show you how to install motion on Ubuntu 22.04 in this guide.
Requirements to install
- OS: Ubuntu 22.04 or older Ubuntu versions
- Privileges: Verify that you can execute the sudo commands line.
Install motion Ubuntu 22.04
motion 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 motion using APT
This is a popular method for installing any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to get motion on your Ubuntu 22.04.
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 motion Ubuntu by pasting this command into the terminal and executing it.
Install motion using Aptitude
You must run this command to install Aptitude if you haven’t already done so on Ubuntu.
After that, you can now install motion by following these steps:
Step 1: Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing the following Linux command:
Step 2: Install the package on Ubuntu 22.04. After updating the system, you can install motion Ubuntu by pasting this command into the terminal and executing it.
Uninstall motion on Ubuntu 22.04
Have you ever considered how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone, not just package administrators, can easily uninstall any program.
This command can be used to uninstall motion from Ubuntu 22.04 if it was installed using APT or Aptitude.
You can also execute this command if you want to uninstall motion and remove its data and dependencies:
In this tutorial, I showed you ways to install motion on Ubuntu 22.04 and ways to uninstall motion too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.