Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Removing old binutlis
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
pa4wdh
l33t
l33t


Joined: 16 Dec 2005
Posts: 806

PostPosted: Sat Nov 13, 2021 8:37 am    Post subject: Removing old binutlis Reply with quote

Hi All,

I've always been a bit careful with removing old binutils versions. as a result i got quite a list now and it's time to clean up :)
The newest version is selected now and everything seems to work as it should. Is there anything special i should do before/after i remove old binutils versions?
_________________
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world

My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sat Nov 13, 2021 11:28 am    Post subject: Reply with quote

pa4wdh,

I use
Code:
emerge -c binutils:slot1  binutils:slot2 ...
to clean up binutils.

Likewise for gcc and the kernel as I like to keep at least two versions of each, just in case.
The above should be safe.

If you have anything installed that must have an old version, emerge will not remove it.
You would need to use
Code:
emerge -cv ...
to see what needed the old version.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pa4wdh
l33t
l33t


Joined: 16 Dec 2005
Posts: 806

PostPosted: Sat Nov 13, 2021 1:58 pm    Post subject: Reply with quote

Thanks for your answer NeddySeagoon.
To me this sounds like depclean will do the right thing? Keeping the ones that are needed as dependencies of other packages and removing the rest?
_________________
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world

My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sat Nov 13, 2021 3:43 pm    Post subject: Reply with quote

pa4wdh,

It should do. Trust but verify :)

I've never forgiven --depclean for ripping out glibc, many years ago.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pa4wdh
l33t
l33t


Joined: 16 Dec 2005
Posts: 806

PostPosted: Sat Nov 13, 2021 4:15 pm    Post subject: Reply with quote

Removing glibc is indeed a big mistake 8O

I'm always careful with depclean but thanks for the warning :D
_________________
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world

My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2913
Location: Edge of marsh USA

PostPosted: Sun Nov 14, 2021 1:51 am    Post subject: Reply with quote

depclean has become so much smarter in this age. I'm finding I can actually trust it, as long as I read the output and adjust accordingly.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/17.1/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20054

PostPosted: Sun Nov 14, 2021 5:57 pm    Post subject: Reply with quote

NeddySeagoon wrote:
pa4wdh,

I use
Code:
emerge -c binutils:slot1  binutils:slot2 ...
to clean up binutils.

Likewise for gcc and the kernel as I like to keep at least two versions of each, just in case.
The above should be safe.

If you have anything installed that must have an old version, emerge will not remove it.
You would need to use
Code:
emerge -cv ...
to see what needed the old version.
What about programs in memory? Might they have issues if a version they used when started was removed? With the binutils post upgrade message to source /etc/profile and the package description -- Tools necessary to build programs -- I've never quite been sure what is going on and needs to happen.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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