Weblog entry #10 for eric

[Question] remove old configuration files (rc)?
Posted by eric on Sun 12 Nov 2006 at 18:08
Tags: none.
Hi,

I just want to know how simply remove old configuration files, from packages in rc states?
I normally --purge packages when removing them, but if I didn't do it how to remove them without reinstalling and removing+purging?

for example,

# dpkg -l |grep xen
[...]
rc xen-utils-3.0 3.0.2+hg9697-2 XEN administrative tools
[...]
I think these rc files are keeping a bad boot line in grub/menu.lst and I want to remove them.

thanks

 

Comments on this Entry

Posted by JulienV (90.6.xx.xx) on Sun 12 Nov 2006 at 19:53
[ Send Message | View Weblogs ]

I use a home-made script to that purpose: http://www.kirya.net/tips/purge-all-packages.

Usually, I call this script after using deborphan.

Cheers,
Julien

[ Parent | Reply to this comment ]

Posted by Anonymous (88.191.xx.xx) on Mon 13 Nov 2006 at 09:33
dpkg -P <package_name>

[ Parent | Reply to this comment ]

Posted by eric (82.248.xx.xx) on Mon 13 Nov 2006 at 14:36
[ Send Message | View Weblogs ]
ok, it's simple, I didn't checked well the manpages, thanks.

:eric:
http://blog.sietch-tabr.com

[ Parent | Reply to this comment ]

Posted by mvanbaak (213.154.xx.xx) on Mon 13 Nov 2006 at 10:45
[ Send Message ]
# aptitude purge $(deborphan --find-config)

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search