LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   have long file list; want to find word matches(package deletion purposes) (http://www.linuxquestions.org/questions/linux-newbie-8/have-long-file-list%3B-want-to-find-word-matches-package-deletion-purposes-739662/)

lxquestions000019 07-13-2009 01:05 AM

have long file list; want to find word matches(package deletion purposes)
 
i listed all the packages on my debian system and downloaded a "kicklist.txt" from the internet. after i did the apt-get remove command on the kicklist.txt it didn't delete anything and stopped after saying 10 programs on the list weren't found.

since that didn't seem to work; i did a hpkg >> package.txt; so now im looking at a list of packages INSTALLED and a list of packages i want to DELETE and i just was wondering if i could do a simple diff or merge type command to find the matches, output to another txt and delete that list.

lxquestions000019 07-13-2009 01:13 AM

i think maybe the kicklist is outdated. does anyone know of a kicklist for knoppix 6 adriane?

Tinkster 07-13-2009 04:28 AM

Depending on what the kicklist looks like you could conceivably
feed it into a grep that you run against your list of installed
packages, e.g.:

grep -f kicklist packagelist


Cheers,
Tink


All times are GMT -5. The time now is 03:18 AM.