Though you can usually install most programs in Linux comfortably with the package manager of you Linux distribution (rpm, deb, etc.), sometimes you need to compile something from source.
For example gnuplot in Debian/Ubuntu has the readline functionality not compiled in, which makes it rather hard to use. But I’m somewhat reluctant to install these programs with “make install” since they are somewhere copied into system and it’s practically not possible to remove them except with “make uninstall” – but this option is not always available and you have to keep the sources of the program you installed.
But don’t renounce yet. There is paco. This little gem allows one to log the “make install” process. paco is than able to remove all installed files if one decides so. Installing paco is easy.
- Download and untar it somewhere, cd into new directory
sudo apt-get install libgtk2.0-dev
(if you don’t have gtk devel installed) or sudo apt-get install libgtkmm-2.4-dev (if you install paco 2.0 or newer)
./configure --prefix=/usr/local
make
sudo make install
sudo make logme
paco is now installed, paco itself is also logged in its database. If you want now to install something if it should be logged with the name of the current directory as the name for the package replace the last “make install” command with
sudo paco -lD make install
to set the name of the package yourself, use
sudo paco -lp foo-1.0 "make -C src install"
In order to see what packages are installed or to remove a package use sudo gpaco
.