Remove built in packages

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Remove built in packages

rg66
This post was updated on .
Myself and some other puppy users have noticed that after you remove a package it still shows up in ppm as installed. The remove_builtin script removes the entry from woof_installed but leaves the entry  in DISTRO_PKGS_SPECS as "yes|packagename",  which is where I tracked the problem to. Adding the code below to remove_builtin after it sorts woof_installed out, seems to fix the problem. Someone with more experience can most likely do a better job of it. Depending on which puppy it is the petget /tmp files might have to be cleared first for it to work.

RMPKG=`grep "yes$aREGEX" /root/.packages/DISTRO_PKGS_SPECS`
   if [ "$RMPKG" != "" ]; then
   echo "$RMPKG" > /tmp/rmpkg
   sed -i 's/yes/no/' /tmp/rmpkg
   NEW=`cat /tmp/rmpkg`
   sed -i 's/'"$RMPKG"'/'"$NEW"'/' /root/.packages/DISTRO_PKGS_SPECS
   fi
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Remove built in packages

mavrothal
please provide a patch (if a pull request is out of question ;)
Loading...