Finding configuration files.
Using package manager to remove configuration files while uninstalling a software is easy but how to find and remove configuration files of software that you install from external sources? suppose i compiled from source of installed an external package, how to find and remove those configuration files that these programs created?
|
Usually configuration files are stored under /etc or a package specific sub-drectory.
For packages installed from source it will be installed as you specify it. For autoconf (./configure) based sources you can specify the directory for it. Read the ouput of './configure --help' for that particular source. It is usually './configure --sysconfdir=/etc'. |
Also, common places for local config files per user are:
~/.local/share/name_of_your_package or ~/.name_of_your_package Please note the . in the path. |
Hi augustus_hill,
It's usually different for each software. Some software provide uninstall scripts that will handle config files deletion for you. But in most of the cases you should search a config string that was used for software compilation. For example for php you can find it by running Code:
php -i | grep "Configure Command" Hopefully it was helpful , good luck. Quote:
|
When compiling from source many packages will have a
Code:
make uninstall There is an even better approach available on many distros: Rather tan directly installing with "make install" you can build a package and install it through the package manager. The advantage of that approach is that the package manager "knows" about the package, so that it can a) include it into dependency calculations b) remove it cleanly ... and probably more. The exact procedure depends on the distro / package manager you are using. Which distro are you on? |
You can also try the locate command.
Code:
bash-4.3$ locate blackbox |
All times are GMT -5. The time now is 05:35 PM. |