-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"To uninstall "AM" just run the command am -R am" but what about if some package maintainer pack it for some linux distribution? So, it will be an illegal way to uninstall? #830
Comments
Uhm... what about a rule? I don't know how a gentoo package works, but I think that if you put a configuration file that prevents the command |
"AM" is a third party package manager, after all, so it is ment to be also easily uninstalled like this. I think that a configuration file that has a rule to prevent AM removing itself if installed via "portage" would be enough for what you are looking at. |
Same for other options, for example, |
Ok, thanks, I will check the documentation about configuration file. |
I dont think a configuration file or even changes from our side are needed, I have an idea but Im on the phone, I will get back here later. |
I also have an idea: uninstalling AM, or any other app from AM, depends on the "remove" script. You can prevent the creation of /opt/am/remove |
I do not know what rule - usually people create patches that remove code about remove/update. |
Yep, but |
...if installed by apt, portage, or another system package manager. |
Tell me one thing, should a package of AM including also the modules? |
if yes, you can apply patches to remove these references. All package maintainers do it. |
Looks like yes, because, for example, |
also, AM is GPL3, you can fork it and apply the needed patches |
so you can remove, for example, the function that updates AM Line 765 in 4d30b36
|
Yes, looks like... Or maybe your CI/CD can build a special version for system package managers? |
or maybe you can comment this line Line 800 in 4d30b36
|
with "TAB" spaces, don't forget |
it is enough to add a post-installation script, also .deb packages have these |
Or maybe add checks to code - that will check, for example, that some file is exists? If that file exists - instead of AM removing - print a message like "For uninstalling of AM - please use your system package manager". |
@vitaly-zdanevich what AM has that prevents you to package it for gentoo? I'll write the shell commands for you to patch it, for a post installation script, if you need it |
I can create a dedicated directory in this repo with post installation scripts for gentoo or debian, if you want |
but I don't know nothing about Gentoo, I've only tried one time to install a no more maintained italian distro, Sabayon |
Is there something preventing the gentoo package of AM to replace the
That way AM can't remove itself, since the remove script is what removes it. When you try to remove am with |
Ok, I will write a patch for that - when will package for Gentoo. |
I have a fix at #894 |
For example in Ubuntu - user will need to use usual
apt
. So, what do you think about some conditional check?I want to package it for Gentoo Linux - and normal way no uninstall packages here is
# emerge --depclean <packagename>
The text was updated successfully, but these errors were encountered: