Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Depclean wants to remove old kernel sources
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
qweb.ric
n00b
n00b


Joined: 15 Jan 2015
Posts: 29

PostPosted: Mon Dec 07, 2020 9:32 am    Post subject: Depclean wants to remove old kernel sources Reply with quote

I've just recently set up Gentoo on a new laptop but haven't had chance to keep things updated, so pulled a rather large world update last night.

Now --depclean wants to remove my currently used kernel sources, 5.4.66, but it's going to be a while before I get around to actually udating to a newer kernel so I'm trying to just --noreplace this version to protect it. It seems somebody has already dropped this version out of the Gentoo repository though so Portage can't see it:

Code:
asus-ux563f /home/ric # emerge --ask --noreplace sys-kernel/gentoo-sources-5.4.66
!!! 'sys-kernel/gentoo-sources-5.4.66' is not a valid package atom.
!!! Please check ebuild(5) for full details.
asus-ux563f /home/ric # equery l gentoo-sources
 * Searching for gentoo-sources ...
[I--] [??] sys-kernel/gentoo-sources-5.4.66:5.4.66
[IP-] [  ] sys-kernel/gentoo-sources-5.4.80-r1:5.4.80-r1


Am I going to need to manually find an ebuild and add it to a local overlay or is there a better way to do this?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31257
Location: here

PostPosted: Mon Dec 07, 2020 10:03 am    Post subject: Reply with quote

Try to mask version greater than 5.4.66 I'm not sure if work.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
qweb.ric
n00b
n00b


Joined: 15 Jan 2015
Posts: 29

PostPosted: Mon Dec 07, 2020 10:29 am    Post subject: Reply with quote

I'd rather not mask them as I'll then totally forget to ever update, but I could I suppose unmerge the newer version, do a --depclean, and then let the next world update bring it back in again for updating to...
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31257
Location: here

PostPosted: Mon Dec 07, 2020 10:31 am    Post subject: Reply with quote

You can try to add manually sys-kernel/gentoo-sources:5.4.66 entry in /var/lib/portage/world file (maybe backup it first)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3684

PostPosted: Mon Dec 07, 2020 10:41 am    Post subject: Re: Depclean wants to remove old kernel sources Reply with quote

qweb.ric wrote:
Code:
asus-ux563f /home/ric # emerge --ask --noreplace sys-kernel/gentoo-sources-5.4.66

Use either emerge --ask --noreplace gentoo-sources:5.4.66
or emerge --ask --noreplace =sys-kernel/gentoo-sources-5.4.66
Back to top
View user's profile Send private message
qweb.ric
n00b
n00b


Joined: 15 Jan 2015
Posts: 29

PostPosted: Mon Dec 07, 2020 10:44 am    Post subject: Re: Depclean wants to remove old kernel sources Reply with quote

charles17 wrote:
qweb.ric wrote:
Code:
asus-ux563f /home/ric # emerge --ask --noreplace sys-kernel/gentoo-sources-5.4.66

Use either emerge --ask --noreplace gentoo-sources:5.4.66
or emerge --ask --noreplace =sys-kernel/gentoo-sources-5.4.66


Oh bloody hell, now there's a schoolboy error if ever there was one!

Well spotted, thanks. Problem sorted =).
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2176

PostPosted: Mon Dec 07, 2020 5:44 pm    Post subject: Re: Depclean wants to remove old kernel sources Reply with quote

qweb.ric wrote:
I've just recently set up Gentoo on a new laptop but haven't had chance to keep things updated, so pulled a rather large world update last night.
Now --depclean wants to remove my currently used kernel sources, 5.4.66, but it's going to be a while before I get around to actually udating to a newer kernel so I'm trying to just --noreplace this version to protect it. ...

Another way is to train your fingers to always type "depclean --exclude gentoo-sources" - or use a script or alias...
_________________
Greybeard
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


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

PostPosted: Tue Dec 08, 2020 4:16 am    Post subject: Reply with quote

fedeliallalinea wrote:
You can try to add manually sys-kernel/gentoo-sources:5.4.66 entry in /var/lib/portage/world file (maybe backup it first)

Yes, just do that. I do that all the time. It's not rocket science, even if not officially recommended. This is the section from my current world file:
Code:
sys-kernel/gentoo-sources
sys-kernel/gentoo-sources:4.19.160
sys-kernel/gentoo-sources:4.19.152
sys-kernel/gentoo-sources:4.9.236
sys-kernel/gentoo-sources:4.9.240


Everything should always be backed up, all the time. If not, the user isn't taking this seriously.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
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