View previous topic :: View next topic |
Author |
Message |
ianw1974 Guru
Joined: 18 Oct 2006 Posts: 387 Location: UK and Poland
|
Posted: Mon Oct 06, 2008 9:26 am Post subject: How to exclude a package from depclean [solved] |
|
|
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 |
|
|
alex.blackbit Advocate
Joined: 26 Jul 2005 Posts: 2397
|
Posted: Mon Oct 06, 2008 10:51 am Post subject: |
|
|
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 |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9537 Location: beyond the rim
|
Posted: Mon Oct 06, 2008 11:41 am Post subject: |
|
|
Code: | emerge --noreplace gentoo-sources:2.6.24-r8 |
should do it. |
|
Back to top |
|
|
ianw1974 Guru
Joined: 18 Oct 2006 Posts: 387 Location: UK and Poland
|
Posted: Mon Oct 06, 2008 12:44 pm Post subject: |
|
|
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 |
|
|
alex.blackbit Advocate
Joined: 26 Jul 2005 Posts: 2397
|
Posted: Mon Oct 06, 2008 8:27 pm Post subject: |
|
|
of course. i forget about --noreplace. |
|
Back to top |
|
|
|