View previous topic :: View next topic |
Author |
Message |
qweb.ric n00b
Joined: 15 Jan 2015 Posts: 29
|
Posted: Mon Dec 07, 2020 9:32 am Post subject: Depclean wants to remove old kernel sources |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31274 Location: here
|
Posted: Mon Dec 07, 2020 10:03 am Post subject: |
|
|
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 |
|
|
qweb.ric n00b
Joined: 15 Jan 2015 Posts: 29
|
Posted: Mon Dec 07, 2020 10:29 am Post subject: |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31274 Location: here
|
Posted: Mon Dec 07, 2020 10:31 am Post subject: |
|
|
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 |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3684
|
Posted: Mon Dec 07, 2020 10:41 am Post subject: Re: Depclean wants to remove old kernel sources |
|
|
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 |
|
|
qweb.ric n00b
Joined: 15 Jan 2015 Posts: 29
|
Posted: Mon Dec 07, 2020 10:44 am Post subject: Re: Depclean wants to remove old kernel sources |
|
|
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 |
|
|
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2179
|
Posted: Mon Dec 07, 2020 5:44 pm Post subject: Re: Depclean wants to remove old kernel sources |
|
|
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 |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 3005 Location: Edge of marsh USA
|
Posted: Tue Dec 08, 2020 4:16 am Post subject: |
|
|
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 |
|
|
|