Re: apt-get & packages marked as rc
On Sat, 2001-09-22 at 14:02, Rajesh Fowkar wrote:
> Vineet Kumar saw fit to inform me that:
> >* Rajesh Fowkar (hsejar@gmx.co.uk) [010921 07:23]:
> >> Hi,
> >>
> >> Is there any way to remove all the packages at a stretch using apt or dpkg
> >> ?
> >>
> >> When we do apt-get remove the configuration files are retained. Now say I
> >> want to remove all these packges permenantly along with the configuration
> >> files, How to do that ? At present I am doing dpkg --purge <all the
> >> packages>. Is there any better way ?
> >
> >are you looking for something like this?
> >
> >dpkg --get-selections | awk '/deinstall/ { print $1 "\tpurge"}' | dpkg --set-selections
>
> Thanks Vineet. But this is just one part of it. Now packages are marked as
> pc instead of rc ( i.e. purge candidates ). Now how can I remove with one
> command all these packages ?
dselect remove should do the trick.
--mike
Reply to: