View previous topic :: View next topic |
Author |
Message |
jankom Guru
Joined: 30 Aug 2021 Posts: 327 Location: USA
|
Posted: Mon May 13, 2024 7:31 pm Post subject: Cannot uninstall claws-mail [SOLVED] |
|
|
Recently I did an eix-sync and performed all recommended steps for profile update. I have used claws-mail in the past, but then I replaced it with evolution mail client. The last step of the profile update was Code: | emerge --ask --emptytree @world | (975 items, compiled for 4 dasys), and one of the note had todo with claws-mail. I was surprised at that, since I did not have claws-mail before. So I tried Code: | emerge --deselect claws-mai | and the rest of the stuff (depleacn, emain -c all). Yet Code: | janos@andraslinux ~ $ eix-installed all | grep claws-mail
mail-client/claws-mail-4.1.1-r4
janos@andraslinux ~ $
| How come? Did I do something wrong? I just like to keep my system clean. Can anybody please offer some suggestion?
Thanks,
jankom
Last edited by jankom on Thu May 16, 2024 2:37 pm; edited 2 times in total |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21772
|
Posted: Mon May 13, 2024 8:14 pm Post subject: |
|
|
How did you determine that you cannot remove it? What is the output of emerge --pretend --verbose --depclean mail-client/claws-mail? |
|
Back to top |
|
|
jankom Guru
Joined: 30 Aug 2021 Posts: 327 Location: USA
|
Posted: Mon May 13, 2024 9:01 pm Post subject: |
|
|
Quote: | How did you determine that you cannot remove it? | by running the "eix-installed all | grep claws-mail" after deselecting and cleaning, but still showing claws-mail as installed.
Code: | janos@andraslinux ~ $ emerge --pretend --verbose --depclean mail-client/claws-mail
Calculating dependencies... done!
mail-client/claws-mail-4.1.1-r4 pulled in by:
mail-client/clawsker-1.3.4 requires mail-client/claws-mail
>>> No packages selected for removal by depclean
Packages installed: 975
Packages in world: 121
Packages in system: 49
Required packages: 975
Number to remove: 0
janos@andraslinux ~ $
| So why "eix-installed all" still has claws-mail? |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1566 Location: South America
|
Posted: Mon May 13, 2024 9:12 pm Post subject: |
|
|
It wasn't cleaned, because mail-client/clawsker needs it. _________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
|
|
Back to top |
|
|
jankom Guru
Joined: 30 Aug 2021 Posts: 327 Location: USA
|
Posted: Mon May 13, 2024 9:43 pm Post subject: Solved |
|
|
Thanks, I'm a slow learner.
Is the commend "emerge -cav <package2remove>" a better method for removing a package? It may be slow and perhaps tedious, but avoids the pitfalls of sinple "emerge --deselect <package2remove>" command.
Last edited by jankom on Thu May 16, 2024 2:38 pm; edited 1 time in total |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1566 Location: South America
|
Posted: Mon May 13, 2024 9:51 pm Post subject: |
|
|
emerge --depclean (a.k.a. emerge -c) is the command for uninstalling packages. emerge --deselect only removes packages from the @selected set, it doesn't uninstall anything. _________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
|
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21772
|
Posted: Mon May 13, 2024 9:59 pm Post subject: |
|
|
To elaborate, emerge --deselect tells Portage you will not mind if Portage removes the package in a later --depclean. --deselect never removes a package on its own, even one that is no longer needed on the system. |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1698
|
Posted: Mon May 13, 2024 10:25 pm Post subject: |
|
|
If speed matters, then --deselect <package> then a full depclean will be faster than 2 depcleans.
This is because --depclean <package> also requires a calculation. Then the follow up --depclean (without any packages) will need to redo the calculations all over again.
You will often end up at the same place, however. |
|
Back to top |
|
|
|