View previous topic :: View next topic |
Author |
Message |
Palme Tux's lil' helper
Joined: 31 May 2014 Posts: 92
|
Posted: Tue Dec 05, 2017 11:51 am Post subject: Protect 'local overlay' packages from depclean |
|
|
Hi
I've installed several packages in /usr/local,
I would like to run "emerge --depclean". But "emerge -pv --depclean" says it wants to remove the packages in my Localoverlay in /usr/local.
Could some please provide advice on how to Protect my local overlay packages installed in /usr/local from being uninstalled by "emerge --depclean"?
Thanks |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Tue Dec 05, 2017 12:25 pm Post subject: |
|
|
Are those packages registerd in /var/lib/portage/world? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30838 Location: here
|
Posted: Tue Dec 05, 2017 12:26 pm Post subject: |
|
|
Usually depclean remove all dependencies that aren't used by anyone, then you should add this in world file (or in a set) with emerge --noreplace package. _________________ Questions are guaranteed in life; Answers aren't.
Last edited by fedeliallalinea on Tue Dec 05, 2017 12:27 pm; edited 1 time in total |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8933
|
Posted: Tue Dec 05, 2017 12:27 pm Post subject: |
|
|
That's not how it works - you can't protect the repository source from --depclean, nothing is cleaned up there anyway.
Packages that you don't want to have depcleaned should be registered in your world file or part of a local set. |
|
Back to top |
|
|
Palme Tux's lil' helper
Joined: 31 May 2014 Posts: 92
|
Posted: Wed Dec 06, 2017 10:00 am Post subject: |
|
|
Thank you very much! I understand now |
|
Back to top |
|
|
|