Hi,
I've probably done something really silly. After having done an incorrect cvsup sync (sending stuff to /var/db and to /home, copied a cvsup server config.) I tried to clean up the mess, in that process I've also deleted /var/db/ports.
Afterwards I found out this was the place where info on installed ports was located. Long story short, I'm trying to fix this issue.
Things I've tried was first manually installing a few applications that I've installed using this command:
[cmd=]# make FORCE_PKG_REGISTER=1 install clean[/cmd]
And from there, since I use portupgrade, I've tried running this command to update everything/reinstall (and configure) ports:
[cmd=]# portupgrade -arRCf[/cmd]
The problem however is that dependencies weren't "upgraded/reinstalled" which means that I have a relatively short list of ports when I check portversion.
An example is that I've installed Nagios which comes with Apache as dependency, in my list Apache isn't shown as an installed port while it has been installed on the system.
Because of that I'm currently hanging on a few choices:
Can anyone help me out with this choice? Is there a way to easily fix /var/db/ports or did I kind of break a few things that can't be fixed? Or will this fix itself over time?
Any insight would be much appreciated, thanks in advance.
Best regards,
Bart
p.s. I've learned my lesson and won't be doing this again, but I really hope theres a fix for this.
I've probably done something really silly. After having done an incorrect cvsup sync (sending stuff to /var/db and to /home, copied a cvsup server config.) I tried to clean up the mess, in that process I've also deleted /var/db/ports.
Afterwards I found out this was the place where info on installed ports was located. Long story short, I'm trying to fix this issue.
Things I've tried was first manually installing a few applications that I've installed using this command:
[cmd=]# make FORCE_PKG_REGISTER=1 install clean[/cmd]
And from there, since I use portupgrade, I've tried running this command to update everything/reinstall (and configure) ports:
[cmd=]# portupgrade -arRCf[/cmd]
The problem however is that dependencies weren't "upgraded/reinstalled" which means that I have a relatively short list of ports when I check portversion.
An example is that I've installed Nagios which comes with Apache as dependency, in my list Apache isn't shown as an installed port while it has been installed on the system.
Because of that I'm currently hanging on a few choices:
- Find a way to rebuild /var/db/ports with all dependencies included
- Reinstall the OS since I'm still at the beginning of configuring the server
- This problem will fix itself over time so just continue configuring the server
Can anyone help me out with this choice? Is there a way to easily fix /var/db/ports or did I kind of break a few things that can't be fixed? Or will this fix itself over time?
Any insight would be much appreciated, thanks in advance.
Best regards,
Bart
p.s. I've learned my lesson and won't be doing this again, but I really hope theres a fix for this.