How To Install prey on Ubuntu 18.04
Introduction
In this tutorial we learn how to install prey on Ubuntu 18.04.
What is prey
prey is:
Prey is a lightweight program to help track and recover a stolen laptop.
It comprises a shell script which calls out on a regular basis to either a server run by the Prey project, or a URL defined by the system administrator. A graphical configuration tool is also provided in order to maintain the simple config file.
There are three methods to install prey on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install prey Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install prey using apt-get by running the following command:
sudo apt-get -y install prey
Install prey Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install prey using apt by running the following command:
sudo apt -y install prey
Install prey 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 Ubuntu. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install prey using aptitude by running the following command:
sudo aptitude -y install prey
How To Uninstall prey on Ubuntu 18.04
To uninstall only the prey package we can use the following command:
sudo apt-get remove prey
Uninstall prey And Its Dependencies
To uninstall prey and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove prey
Remove prey Configurations and Data
To remove prey configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge prey
Remove prey configuration, data, and all of its dependencies
We can use the following command to remove prey configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge prey
References
Summary
In this tutorial we learn how to install prey package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.