How To Install install-mimic on Ubuntu 18.04

In this tutorial we learn how to install install-mimic on Ubuntu 18.04. install-mimic is overwrite files and preserve their ownership

Introduction

In this tutorial we learn how to install install-mimic on Ubuntu 18.04.

What is install-mimic

install-mimic is:

The install-mimic utility copies the specified files to the specified destination (file or directory) similarly to install(1), but it preserves the ownership and access mode of the destination files. This is useful when updating files that have already been installed with locally modified copies that may be owned by the current user and not by the desired owner of the destination file (e.g. root).

There are three methods to install install-mimic 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 install-mimic Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install install-mimic using apt-get by running the following command:

sudo apt-get -y install install-mimic

Install install-mimic Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install install-mimic using apt by running the following command:

sudo apt -y install install-mimic

Install install-mimic 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 install-mimic using aptitude by running the following command:

sudo aptitude -y install install-mimic

How To Uninstall install-mimic on Ubuntu 18.04

To uninstall only the install-mimic package we can use the following command:

sudo apt-get remove install-mimic

Uninstall install-mimic And Its Dependencies

To uninstall install-mimic and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove install-mimic

Remove install-mimic Configurations and Data

To remove install-mimic configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge install-mimic

Remove install-mimic configuration, data, and all of its dependencies

We can use the following command to remove install-mimic configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge install-mimic

References

Summary

In this tutorial we learn how to install install-mimic package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.