Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Simplify emerge call
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
buywithcredit
n00b
n00b


Joined: 18 Mar 2008
Posts: 11

PostPosted: Wed Dec 20, 2017 4:14 am    Post subject: Simplify emerge call Reply with quote

Hi,

Is there a way to simplify this emerge call?

Code:
emerge --depclean gentoo-sources:4.1.15-r1 gentoo-sources:4.4.21 gentoo-sources:4.4.26 gentoo-sources:4.4.39 gentoo-sources:4.4.6


to something like

Code:
emerge --depclean <=gentoo-sources:4.9


My apologies if this question has already been answered before.
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2471

PostPosted: Wed Dec 20, 2017 4:21 am    Post subject: Reply with quote

Have you tried emerge --ask --depclean? It won't remove the most current version and will get rid of all the extra packages.

If a package appears on the list and is wanted then you need to do some of that maintenance stuff.
_________________
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
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5166

PostPosted: Wed Dec 20, 2017 4:49 am    Post subject: Reply with quote

If you want to keep something other than just the newest available version, add "sys-kernel/gentoo-sources:4.9" to your world file and depclean won't remove it.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 19441
Location: here

PostPosted: Wed Dec 20, 2017 6:55 am    Post subject: Reply with quote

Ant P. wrote:
If you want to keep something other than just the newest available version, add "sys-kernel/gentoo-sources:4.9" to your world file and depclean won't remove it.

You can add to world file with emerge command (emerge --noreplace sys-kernel/gentoo-sources:4.9)
_________________
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: 2576

PostPosted: Wed Dec 20, 2017 7:46 am    Post subject: Re: Simplify emerge call Reply with quote

buywithcredit wrote:
Is there a way to simplify this emerge call?
Did you try emerge --pretend --prune sys-kernel/gentoo-sources?
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