Is there a way to tell portage that a package is already installed? I would like that a package from a dependency not to be installed and the easiest way could be to "pretend" it is already in the system.
"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin https://www.news.admin.ch/it/nsb?id=103968
package.provided has many drawbacks.
When I really needed this, I usually either created a dummy package in a local overlay or I have overridden the phases by dummy functions from /etc/protage/env/category/package.
The better alternative is to put the ebuild with the undesired dependency into your local overlay, removing that dependency.
The latter is much better, because if you "pretend" that a package is installed, nothing will warn you if some day you install/upgrade some other package which really needs this package and thus you might get a broken system for a hard-to-find reason.
Sorry to hijack here, but since the question is the same one anyway I want to know how to tell portage the package has been installed, given that it was already from another source. I opened another post but since the package.provided question seems rather less documented. I thought I would check. I too would like to tell Portage that a package is installed, and would like some help to make sure it gets into Portage the right way.
Given the options (would it be easiest) if I don't want to rebuild any packages to just add a list of packages that I have installed from source in my /opt folder. Can the file package.provided actually accept multiple versions (like slots in portage)?
Havin_it wrote:Has this functionality quietly died?
No, it still works. But my guess is that you used /etc/portage/package.provided rather than /etc/portage/profile/package.provided, see the aformentioned wiki link or portage(5) for details.
Gah! You are quite correct. I actually came from that very page and yet had completely mentally glossed over that extra dir level. There's no helping me but thank you for trying