Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Protect 'local overlay' packages from depclean
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
Palme
n00b
n00b


Joined: 31 May 2014
Posts: 50

PostPosted: Tue Dec 05, 2017 11:51 am    Post subject: Protect 'local overlay' packages from depclean Reply with quote

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
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2440

PostPosted: Tue Dec 05, 2017 12:25 pm    Post subject: Reply with quote

Are those packages registerd in /var/lib/portage/world?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16861
Location: here

PostPosted: Tue Dec 05, 2017 12:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 5561
Location: Austria

PostPosted: Tue Dec 05, 2017 12:27 pm    Post subject: Reply with quote

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.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
Palme
n00b
n00b


Joined: 31 May 2014
Posts: 50

PostPosted: Wed Dec 06, 2017 10:00 am    Post subject: Reply with quote

Thank you very much! I understand now :)
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