LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-29-2015, 03:07 AM   #1
augustus_hill
LQ Newbie
 
Registered: Feb 2015
Posts: 2

Rep: Reputation: Disabled
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?
 
Old 03-29-2015, 03:13 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
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'.
 
1 members found this post helpful.
Old 03-29-2015, 03:38 AM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,819
Blog Entries: 1

Rep: Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209
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.
 
Old 03-29-2015, 04:36 AM   #4
goodhombre
Member
 
Registered: Mar 2010
Location: Ungheni, Rep. Moldova
Distribution: Ubuntu
Posts: 82

Rep: Reputation: 20
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"
. Also you can check software installation documentation for defaults installation paths.

Hopefully it was helpful , good luck.


Quote:
Originally Posted by augustus_hill View Post
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?
 
Old 03-29-2015, 03:47 PM   #5
joe_2000
Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 823

Rep: Reputation: 237Reputation: 237Reputation: 237
When compiling from source many packages will have a
Code:
make uninstall
target, which will cleanly remove the installed software.

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?
 
Old 03-29-2015, 09:19 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,140
Blog Entries: 14

Rep: Reputation: 3070Reputation: 3070Reputation: 3070Reputation: 3070Reputation: 3070Reputation: 3070Reputation: 3070Reputation: 3070Reputation: 3070Reputation: 3070Reputation: 3070
You can also try the locate command.

Code:
bash-4.3$ locate blackbox
/etc/X11/xinit/xinitrc.blackbox
/var/log/packages/blackbox-0.70.1-x86_64-7
/var/log/packages/kblackbox-4.10.5-x86_64-1
/var/log/scripts/blackbox-0.70.1-x86_64-7
/var/log/scripts/kblackbox-4.10.5-x86_64-1
/usr/lib64/python2.7/site-packages/hgext/blackbox.pyc
/usr/lib64/python2.7/site-packages/hgext/blackbox.py
(and so on)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding the parameters in configuration files praveen.amboji Linux - Server 2 06-27-2014 08:40 AM
Finding multiple files with ascending numerical files extensions unim21 Linux - Newbie 3 04-23-2009 07:50 PM
Autoconf not finding configuration script rfleming Linux - Software 0 02-21-2008 07:15 PM
Not finding X libraries in KVIrc configuration in Ubuntu 6.10 Peronthious Linux - Software 0 03-22-2007 08:57 PM
Finding files and then finding content within those files... Maeltor Linux - Software 5 03-13-2007 12:06 PM


All times are GMT -5. The time now is 11:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration