kpeeters / cadabra2

A field-theory motivated approach to computer algebra.
https://cadabra.science/
GNU General Public License v3.0
230 stars 37 forks source link

Provide uninstall instructions #30

Closed romanovzky closed 7 years ago

romanovzky commented 8 years ago

Hi, I'm using 2.0 and would like to upgrade to 2.2. The problem is, I don't know how to uninstall it (I've compiled from github)....

kpeeters commented 8 years ago

Don't; just install any new version on top of the old.

romanovzky commented 8 years ago

Would this also apply to the deb package?

On Fri, 14 Oct 2016 13:21 Kasper Peeters, notifications@github.com wrote:

Don't; just install any new version on top of the old.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kpeeters/cadabra2/issues/30#issuecomment-253784877, or mute the thread https://github.com/notifications/unsubscribe-auth/AHbvK40RVhj3v54YeyoiBZgfBL5Bv-K0ks5qz3PFgaJpZM4KW7tR .

kpeeters commented 8 years ago

Yes, you can install newer deb packages and they will remove files from older versions, but you can remove everything first using

dpkg -r cadabra2
romanovzky commented 8 years ago

Hi again, thank you for your quick reply, but I think I didn't make myself understood. What I meant was, is it ok to install 2.2 from a deb file even though my current installation was made by compiling and running sudo make install from a git source?

On Fri, 14 Oct 2016 13:39 Kasper Peeters, notifications@github.com wrote:

Yes, you can install newer deb packages and they will remove files from older versions, but you can remove everything first using

dpkg -r cadabra2

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kpeeters/cadabra2/issues/30#issuecomment-253788396, or mute the thread https://github.com/notifications/unsubscribe-auth/AHbvKxZJTCv8CE0yBawhKwetsUbJhKRbks5qz3gRgaJpZM4KW7tR .

kpeeters commented 8 years ago

Ah, that's not necessarily going to work. In doubt, do a 'sudo make install' again from the version you compiled yourself, take note of what goes where, and delete by hand. I think

sudo rm /usr/local/bin/cadabra2 /usr/local/bin/cadabra-gtk
sudo rm -Rf /usr/local/share/cadabra2
sudo rm /usr/local/lib/libcadabra*

should do the trick, but this depends a bit on whether you set a special installation prefix.

kpeeters commented 8 years ago

And for the record: there is no such thing as version 2.2; all .deb files are 2.0. You may want to check whether there actually is any newer .deb than what you have installed from source already.

I am not yet completely done with setting up automatic package builders here, so in general if you want to have the latest version just compile from source.

romanovzky commented 8 years ago

I see, thank for info! I misread it. So I'd still advise you to include the instructions you gave me somewhere in the instalation files (read me), or create a uninstall option in MakeFile.

Another suggestion I'd give you would be to provide the novel self-contained linux app files. There is stilll no default standard, but there are main three: snap (developed by canonical/ubuntu), flatpak (developed by fedora/red-hat), and appimage (developed by as an open-source project). Their idea is to have distro-agnostic applications that can run out-of-the-box, as they normally include the required libraries and runtimes. While this makes the installation of apps HD-space more intensive, at least it could simplify your options.

CHeers

On 14/10/16 14:46, Kasper Peeters wrote:

And for the record: there is no such thing as version 2.2; all .deb files are 2.0. You may want to check whether there actually is any newer .deb than what you have installed from source already.

I am not yet completely done with setting up automatic package builders here, so in general if you want to have the latest version just compile from source.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kpeeters/cadabra2/issues/30#issuecomment-253803022, or mute the thread https://github.com/notifications/unsubscribe-auth/AHbvKy6LGuFL7YgO5Md476QFonseYrosks5qz4ehgaJpZM4KW7tR.

kpeeters commented 8 years ago

'make uninstall' is on the todo list.

I am not convinced about the advantages of those self-contained app files at all. I have build bots setup to make packages for all major Linux distros, and will soon have those track github.

Having three different 'standards' for these app files seems almost as bad as having 5 different major distros, to be honest. It all reminds (once more) of https://xkcd.com/927/ ...

romanovzky commented 8 years ago

Ahahahah I remember that one! I just thought it could be something you'd value, but if you are setting up an automated thing then I take it back

On Sun, 16 Oct 2016 14:52 Kasper Peeters, notifications@github.com wrote:

'make uninstall' is on the todo list.

I am not convinced about the advantages of those self-contained app files at all. I have build bots setup to make packages for all major Linux distros, and will soon have those track github.

Having three different 'standards' for these app files seems almost as bad as having 5 different major distros, to be honest. It all reminds (once more) of https://xkcd.com/927/ ...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kpeeters/cadabra2/issues/30#issuecomment-254048225, or mute the thread https://github.com/notifications/unsubscribe-auth/AHbvKxD9Fwf8jWznanU_3tvTam3iy51Vks5q0iwygaJpZM4KW7tR .

kpeeters commented 7 years ago

There is now a 'make uninstall' target, which does what you'd expect.