Look ports and packages up

Is it possble to find out which apps were installed by ports or packages?
I list installed apps using pkg info but I don't know which were installed by ports.
During upgrading pkg upgrade I can upgrade application installed before by ports as well. But there is a problem with additional dependencies. Using ports I manage these options, with packages I overwirte and install app with predefined dependencies other than expected.
 
Is it possble to find out which apps were installed by ports or packages?
I list installed apps using pkg info but I don't know which were installed by ports.
In essence there's no difference. Ports build packages and it's this package that gets installed. So in the end they're all packages.

I highly recommend not mixing ports and packages and use ports-mgmt/poudriere or ports-mgmt/synth to build your own repository. That way you can just blindly do a pkg-upgrade(8) without having to worry about it.
 
Ok. I used as below but I still do not know to whom repository app belongs.
Code:
user@www:~ % pkg which /usr/local/etc/rc.d/nginx
/usr/local/etc/rc.d/nginx was installed by package nginx-1.12.0_1,2
nginx has been installed via ports.
 
My first response was the wrong thing. I simply misunderstood what you were asking. Useful tool nonetheless but not what you're looking for.
 
Back
Top