pkg upgrade

Hello!

Question #1:
When you run pkg upgrade, how does FreeBSD know what packages to install, upgrade or reinstall? Where is the file or database that it reads in order to make the necessary changes?

Question #2:
Is there a way to change the dependency requirements for a package? For example, from PHP5.6 to PHP7.1?

Thank you!
Raz
 
1) It's stored in a database; /var/db/pkg/local.sqlite. Remote package repository information is typically cached in /var/db/pkg/<reponame>.sqlite.

2) No.
 
Actually... Although it's not possible to 'simply' change the dependencies for an existing package it is of course easily done to build a new packages which has the dependencies you require. So building a package using the Ports collection.
 
Back
Top