Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot uninstall claws-mail [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jankom
Guru
Guru


Joined: 30 Aug 2021
Posts: 327
Location: USA

PostPosted: Mon May 13, 2024 7:31 pm    Post subject: Cannot uninstall claws-mail [SOLVED] Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21771

PostPosted: Mon May 13, 2024 8:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
jankom
Guru
Guru


Joined: 30 Aug 2021
Posts: 327
Location: USA

PostPosted: Mon May 13, 2024 9:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1566
Location: South America

PostPosted: Mon May 13, 2024 9:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
jankom
Guru
Guru


Joined: 30 Aug 2021
Posts: 327
Location: USA

PostPosted: Mon May 13, 2024 9:43 pm    Post subject: Solved Reply with quote

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
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1566
Location: South America

PostPosted: Mon May 13, 2024 9:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21771

PostPosted: Mon May 13, 2024 9:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1698

PostPosted: Mon May 13, 2024 10:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum