View Single Post
gnuite's Avatar
Posts: 1,245 | Thanked: 421 times | Joined on Dec 2005
#9
Originally Posted by oafbot
Hey, its great that you guys worked on the GUI install package.

I'm having problems running it through the extras menu though.
The debs seemed to install fine, and the app shows up on the extras menu, but it won't start up.

I had previously installed manaos through xterm, and it was working (granted, with much bugs, as I think I installed a very early version).

do I need to remove the old files? if so, which files in which directories do I have to remove ? (I would also like to rid of any deadweight on my limited storage space)
Yeah, you should probably uninstall all traces of any old versions of MANaOS you installed. If you used dpkg -x, then use dpkg -c on the same debs to see which files were installed and where. You can scrape together a script to automatically remove the files. Here's the one I use:

Code:
#!/bin/sh

BASE_DIR=/

DEB=$1

if [ "$1" = "" ]
then
        echo "USAGE: undpkg.sh [package.deb]"
        exit 1
fi

/usr/bin/dpkg -c $1 | sed "s/.*[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\} \(.*\)/\1/; s/\(.*\) -> .*/\1/" | sort -r | while read FILE
do
        FILE=$BASE_DIR/$FILE
        if [ -f "$FILE" ]
        then
                rm "$FILE"
        elif [ -d "$FILE" ]
        then
                rmdir "$FILE" 2>/dev/null
        fi
done
Just write that to an executable script file on your device and run it as root, passing it the .deb file whose contents you want to remove from your root file system.

(I take no responsibility for how that script is used.)