Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-18-2012, 08:29 PM   #1
LQ Newbie
Registered: Jan 2012
Posts: 6

Rep: Reputation: Disabled
How to remove residual config through the Terminal.

What is the correct command to remove residual config from the Terminal?

This is what I encounter:

$ sudo apt-get clean && sudo apt-get autoremove --purge -y $(dpkg -l | grep '^rc' | awk '{print $2}')
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
(list of packages)
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Old 02-18-2012, 08:59 PM   #2
Registered: Nov 2011
Location: Germany, Bavaria, Nueremberg area
Distribution: openSUSE, Debian, LFS
Posts: 205

Rep: Reputation: 43
aptitude -F %p search '~c' | xargs dpkg -P
something like this?
Be careful, I did NOT test this....

"xargs" introduces it's own problems, but should do in this case.
Be careful when using "xargs" in other contexts, it often dos not di, what you think...


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
Clear Memory of Residual Applications no longer Running johnmccarthy Linux - Newbie 3 11-08-2011 08:18 AM
why I am unable to uninstall residual broken package drpas2k Ubuntu 2 05-26-2007 07:36 AM
how to remove the Directory from terminal zameer_india Linux - Newbie 2 01-08-2005 02:35 AM
Residual hostname in Sendmail pauljtester Linux - Software 4 10-25-2004 01:54 PM
removing residual (useless) config files cadj Linux - Software 0 02-21-2004 11:20 PM > Forums > Linux Forums > Linux - Newbie

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

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