[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Re: Total nOOb question: uninstalling software (Ben Russo)
- From: Alex RENE <alexr starhub net sg>
- To: redhat-list redhat com
- Subject: Re: Re: Total nOOb question: uninstalling software (Ben Russo)
- Date: Thu Dec 12 20:56:02 2002
Thanks Ben!! That little script idea will certainly come very handy!!
> Message: 1
> Subject: Re: Total nOOb question: uninstalling software
> From: Ben Russo <ben umialumni com>
> To: redhat-list redhat com
> Organization:
> Date: 12 Dec 2002 14:30:31 -0500
> Reply-To: redhat-list redhat com
>
> On Wed, 2002-12-11 at 11:27, Alex RENE wrote:
> > Hi all... I know, it's REALLY a nOOb type of question but... How do
> you
> > uninstall stuff you did not install by RPMs like from tar.gz and the
> > likes ... I have WAY too many browsers installed on my machine, and
> I d
> > like to get rid of a few other things too...
> >
> > --
> > Alex RENE <alexr starhub net sg>
>
> Another thing you can do,
> it takes a long time, but it does work.
>
> write a script that does the following
> as root, I am not testing these commands,
> so you might want to think about the gist of
> it and then rewrite it yourself.
>
> mkdir /tmp/FILES
> find / -type f > /tmp/FILES/filelist
> cd /tmp/FILES
> split --lines=50 filelist
> rm filelist
> for FILEBATCH in `find . -type f`
> do
> for AFILE in `cat $FILEBATCH`
> do
> rpm -qf $AFILE | grep -v "is not owned by any package" >>
> /tmp/FILES/not-owned-list.txt
> done
> done
>
> Then when you are done you will have a list of the files that
> are not owned by any RPMS.
>
> -Ben.
>
>
>
--
Alex RENE <alexr starhub net sg>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]