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 02-18-2012, 09:29 PM   #1
tubb
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, 09:59 PM   #2
uhelp
Member
 
Registered: Nov 2011
Location: Germany, Bavaria, Nueremberg area
Distribution: openSUSE, Debian, LFS
Posts: 205

Rep: Reputation: 43
Code:
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...
 
  


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


All times are GMT -5. The time now is 06:28 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