Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to exclude a package from depclean [solved]
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
ianw1974
Guru
Guru


Joined: 18 Oct 2006
Posts: 387
Location: UK and Poland

PostPosted: Mon Oct 06, 2008 9:26 am    Post subject: How to exclude a package from depclean [solved] Reply with quote

I've just ran emerge --depclean on my system and it wants to remove the following packages:

Code:
 sys-apps/hdparm
    selected: 8.6
   protected: none
     omitted: none

 sys-libs/db
    selected: 4.3.29-r2
   protected: none
     omitted: 4.5.20_p2-r1

 dev-lang/python
    selected: 2.4.4-r13
   protected: none
     omitted: 2.5.2-r7

 sys-kernel/gentoo-sources
    selected: 2.6.24-r8
   protected: none
     omitted: 2.6.25-r8

 www-apps/joomla
    selected: 1.5.5 1.5.6
   protected: none
     omitted: 1.5.7


I particularly want to exclude the gentoo-sources from being removed for my currently installed kernel. Is there any way I can exclude it so that it's not removed as part of depclean?
_________________
Ian Walker

Light travels faster than sound. This is why some people appear bright until you hear them speak.........

Linux Systems Limited | Masternode Monitoring


Last edited by ianw1974 on Mon Oct 06, 2008 1:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Mon Oct 06, 2008 10:51 am    Post subject: Reply with quote

if --depclean wants to remove a package, then it is not a dependency of an explicitly installed package or a explicitly installed package itself.
so, explicitly emerge this exact version, and --depclean won't remove it.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9537
Location: beyond the rim

PostPosted: Mon Oct 06, 2008 11:41 am    Post subject: Reply with quote

Code:
emerge --noreplace gentoo-sources:2.6.24-r8

should do it.
Back to top
View user's profile Send private message
ianw1974
Guru
Guru


Joined: 18 Oct 2006
Posts: 387
Location: UK and Poland

PostPosted: Mon Oct 06, 2008 12:44 pm    Post subject: Reply with quote

Not sure I understand, but when I do:

Code:
emerge --depclean --noreplace gentoo-sources:2.6.24-r8 -pv


it then omits the other packages and wants to remove this one. I also tried it without the --noreplace as well. This is the package I want to keep, and remove the others.

EDIT:

Never mind me :)

I did the --noreplace first now, followed by the depclean as two separate commands, and it worked how it should do.
_________________
Ian Walker

Light travels faster than sound. This is why some people appear bright until you hear them speak.........

Linux Systems Limited | Masternode Monitoring
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Mon Oct 06, 2008 8:27 pm    Post subject: Reply with quote

of course. i forget about --noreplace.
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