Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
preserve old kernel from removal
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
nanostallmann
n00b
n00b


Joined: 12 Oct 2014
Posts: 26

PostPosted: Fri Jan 30, 2015 6:49 pm    Post subject: preserve old kernel from removal Reply with quote

Hi all,
How can I prevent that portage remove old kernel sources (sys-kernel/gentoo-sources-3.16.5 with 3.17 for example ) when the new one was configured with kernel-config?

I tried writing /etc/portage/profile/package.provided & /etc/portage/profile/package.keep but ... nothing both strategies failed.
Any suggestion?

thanks,

regards
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Fri Jan 30, 2015 6:50 pm    Post subject: Reply with quote

emerge --noreplace =sys-kernel/gentoo-sources-3.16.5
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Fri Jan 30, 2015 6:59 pm    Post subject: Reply with quote

Portage will not remove older kernel sources during upgrades, you need to run emerge -a --depclean to have sources removed. To keep kernel sources during depclean exclude them: emerge -a --depclean --exclude gentoo-sources
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
nanostallmann
n00b
n00b


Joined: 12 Oct 2014
Posts: 26

PostPosted: Sun Feb 01, 2015 1:13 am    Post subject: Reply with quote

The Doctor wrote:
emerge --noreplace =sys-kernel/gentoo-sources-3.16.5


Ok, this works properly!
thank,

regards
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