babluboy / bookworm

A simple ebook reader for Elementary OS
GNU General Public License v3.0
1.32k stars 101 forks source link

Urgent! Problem uninstalling bookworm when i installed it from source code following the steps recommended here. #310

Open tomu123 opened 4 years ago

tomu123 commented 4 years ago

Please help @babluboy !, I am a new Linux user and i can't uninstall bookworm , i installed it following the steps recommended here to install from source.

Run the command below to install the above on Ubuntu and Debian distros: sudo apt-get install unzip poppler-utils unar html2text python2.7 libgtk-3-dev libgee-0.8-dev libgranite-dev libsqlite3-dev libxml2-dev webkit2gtk-4.0 libwebkit2gtk-4.0-37 libpoppler-glib-dev meson valac gettext curl ninja-build appstream git

Run git clone to download the source code, meson build to configure the build environment and run ninja test to build git clone https://github.com/babluboy/bookworm.git cd bookworm meson build --prefix=/usr mkdir -p build && cd build ninja

To install, use ninja install, then execute with com.github.babluboy.bookworm sudo ninja install com.github.babluboy.bookworm

Yeah i know that it was stupid of me to install from source when I'm a new user of Linux but i thought that it could be uninstalled with sudo apt-get --purge remove bookworm or that maybe if it didn't work your official GitHub or page would have a solution to it but i didn't find anything. Please i would like to have all the steps done through your recommendation reverted because i don't know if it will affect me in the future and i don't have any backups . Also I would like to say that your app is great and I don't want to uninstall it because I won't use it anymore but I would like to install it from an official repository where I can manage installing and uninstalling with a single command and without having to use ninja because I don't trust it, I didn't know I could install it from a repository the first time I did it. So I would like to revert all the actions done by the commands and install it again from zero.

babluboy commented 4 years ago

Thanks for logging this issue. Yes, installing it from a repository is better because you will have the stable version. Installing from source is for trying out the latest features before the same come out in a release. This is already covered as part of #207 but I thought I should set out the instructions again as the comp[onents might have changed since the other issue.

Here are the files/folders to be deleted if you used the default /usr prefix for installing. You would need to remove it with sudo command as the owner for these files will be root i.e. to remove the file /usr/bin/com.github.babluboy.bookworm the command will be sudo rm /usr/bin/com.github.babluboy.bookworm and to remove a folder i.e. /usr/share/com.github.babluboy.bookworm the command will be sudo rm -Rf /usr/share/com.github.babluboy.bookworm

Let me know how it goes and if you need further help.

  1. Executable:

    /usr/bin/com.github.babluboy.bookworm
    /usr/share/applications/com.github.babluboy.bookworm.desktop
    ~/.config/plank/dock1/launchers/com.github.babluboy.bookworm.dockitem
  2. Icons:

    /usr/share/icons/hicolor/48x48/apps/com.github.babluboy.bookworm.svg
    /usr/share/icons/hicolor/48x48@2/apps/com.github.babluboy.bookworm.svg
    /usr/share/icons/hicolor/64x64@2/apps/com.github.babluboy.bookworm.svg
    /usr/share/icons/hicolor/16x16/apps/com.github.babluboy.bookworm.svg
    /usr/share/icons/hicolor/128x128/apps/com.github.babluboy.bookworm.svg
    /usr/share/icons/hicolor/32x32@2/apps/com.github.babluboy.bookworm.svg
    /usr/share/icons/hicolor/64x64/apps/com.github.babluboy.bookworm.svg
    /usr/share/icons/hicolor/32x32/apps/com.github.babluboy.bookworm.svg
    /usr/share/icons/hicolor/24x24@2/apps/com.github.babluboy.bookworm.svg
    /usr/share/icons/hicolor/24x24/apps/com.github.babluboy.bookworm.svg
    /usr/share/icons/hicolor/128x128@2/apps/com.github.babluboy.bookworm.svg
    /usr/share/icons/hicolor/16x16@2/apps/com.github.babluboy.bookworm.svg
  3. Resources:

    /usr/share/metainfo/com.github.babluboy.bookworm.appdata.xml
    /usr/share/glib-2.0/schemas/com.github.babluboy.bookworm.gschema.xml
    /usr/share/com.github.babluboy.bookworm/
  4. library cache

    ~/.config/com.github.babluboy.bookworm
    ~/.cache/com.github.babluboy.bookworm
    ~/.local/share/com.github.babluboy.bookworm
tomu123 commented 4 years ago

Thank you so much @babluboy for your fast reply. I got to uninstall it all with the command sudo ninja uninstall when i was inside the build folder of bookworm and with this script. I will proceed to install it from an official repository. And thank you so much for your hard work .