Alexander Sayapin Teacher's site

Graceful installation and uninstallation using make

Posted on Thu 21 May 2020

In Общие вопросы.

tags: setup make make install checkinstall


What for?

Often we install some software using make. It's not as convenient way of software installation as, say, apt-get, apt or dpkg. However, sometimes it's the only option.

And often after that we need to uninstall the software we just (or not just) installed. It's ok if the maintainer created a way to uninstall his or her piece of software like make unsinstall option, but...

But don't worry, there is a way!

The way is to use CheckInstall package.

Preparation

Before start installing new software from sources, install:

sudo apt install auto-apt
sudo apt-get install checkinstall

Of course, you need to do that just once.

Installation

Instead of installing software the usual way like

cd package_folder
./configure
make
sudo make install

you perform

cd package_folder
auto-apt run ./configure
make
sudo checkinstall

checkinstall automatically calls make install so don't worry about that.

Et voila, you've got your software installed!

Moreover, checkinstall will tell you the name of the package it created in case you'd like to uninstall the software.

And if you need to unsinsall it, then...

Uninstallation itself

sudo dpkg -r package_name

Quite simple, isn't it?


tags

алфавит (1) архитектура ЭВМ (4) asp.net (1) бгд (22) бисв (23) бкб (22) бме (22) бпэ (23) бпэз (4) бпэзу (1) бпм (20) бпм объявления (7) certbot (1) cheatsheet (1) checkinstall (1) csv (1) дискретная математика (25) экзамен (1) embedded rust (2) english (1) формальные грамматики (1) gdb (2) язык (1) исследование операций (1) jupyter (1) критерии (2) курсовая работа (2) lighttpd (2) low-latency (1) machine learning (3) make (1) make install (1) markdown (1) машинное обучение (1) математическая лингвистика (1) математическая логика (1) математическая статистика (2) Математические основы кмпьютерной графики (1) Математические основы компьютерного моделирования (1) Математические основы компьютерной графики (1) методы оптимизации (20) методы оптмимизации (1) методы принятия решений (1) миа (7) мии (8) мик (7) мим (8) миo (5) мип (9) мит (44) миу (14) миз (13) ml (1) mono (1) мпм (9) natural language processing (1) nlp (1) nucleo (2) объявления (31) оформление (2) openocd (2) openpgp (1) pandas (1) pgp (1) подтверждение вывода (1) programming (3) python (3) robot (1) robotics (2) setup (6) шпаргалка (1) системы компьютерной математики (1) smartcard (1) ssh (1) ssl (1) STM32 (2) streaming (1) строка (1) тб (21) teaching (1) teaching statement (1) Теоретические основы цифровой обработки изображений (2) тест (1) учебник (1) up board (1) video (1) вкр (2) xls (1)