Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Proper use of depclean - help?
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
whitt
Apprentice
Apprentice


Joined: 28 Dec 2020
Posts: 152

PostPosted: Sat Mar 09, 2024 4:08 pm    Post subject: Proper use of depclean - help? Reply with quote

Hi - I ask a lot of dumb questions here, and I'm sure this will go on the growing pile...

I'm trying to better maintain my system, and am running updates every couple months now. I've fixed a handful of things, and am trying to be a better maintainer of my PC - I've gotten very sloppy over the years.
Anyway, I ran `emerge --depclean` this morning, and see it's trying to do some not great things. But rather than blame the tool, I'd like to know what I'm doing incorrectly.

For example, --depclean wants to remove grub. I boot with grub (or is it grub2 now?). I feel like that'd be a bad idea. It also wants to remove zen-sources 6.6.3 (I have installed 6.6.10 but no compiled / switched yet)... I checked eselect, and it shows 6.6.3 is currently selected... I will change that when I compile and boot 6.6.10, but for now I'd expect depclean to be happy leaving 6.6.3 alone...

I suspect there is a basic premise of gentoo system maintenance I'm not getting. So let's focus on grub and zen-sources for now - what am I doing wrong, or not doing right?
Thanks!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Mar 09, 2024 4:38 pm    Post subject: Reply with quote

whitt,

First run
Code:
--depclean -p

If there are things there that you want to keep permanently,
Code:
emerge --no-replace
them

For thing that you want to keep temporally, --exclude them.

Depclean keeps what it considers are the 'best' versions and removes the others, if you let it.

I like ta manage gcc and gentoo-sources by hand so I always
Code:
--exclude="gcc gentoo-sources"

_________________
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
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3858

PostPosted: Sat Mar 09, 2024 5:22 pm    Post subject: Reply with quote

NeddySeagoon wrote:
I like ta manage gcc and gentoo-sources by hand so I always
Code:
--exclude="gcc gentoo-sources"
Same here.
--exclude requirement avoided by slotted emerge:
Code:
emerge sys-devel/gcc:12
emerge sys-kernel/gentoo-sources:6.7.9

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
whitt
Apprentice
Apprentice


Joined: 28 Dec 2020
Posts: 152

PostPosted: Sat Mar 09, 2024 6:33 pm    Post subject: Reply with quote

I love these forums - NeddySeagoon, you've been answering my questions about Gentoo for 20 years... Thanks a lot!

All set - appreciate the help
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