Program and files -> copyover...
Posted on 2004-10-18
I've got 2 identical servers. I installed a lot of different packages on server#1. On server#2, I simply copied all the packages over from server#1, and then did some SYM links to server1. I copied server1 using rsync into a directory on server2, then set a symlink like:
ln -s /server_1/usr/local /usr/local
(BTW - I renamed /usr/local to /usr/local.org)
Most packages are installed in /usr/local/ so I thought that a symlink to server_1 /usr/local would be sufficient.
And it works just fine. All packages are executing with not problems.
The main problem is that pkginfo -l obviously doesn't list the programs (and packages) installed because it was just copied...not "installed".
So...where is pkginfo -l pulling it's information? Does the system check for dependencies using the pkginfo command?
Now, I want to install a package on server_2 - to test before I install it on server_1. But it doesn't know that a DEPENDENCY package is installed...so it won't let me.
I'd like to know a little bit about the characteristics of the pkgadd -d and pkginfo -i command...is there a type of "registry" that it updates for this information? Can I edit that, and simply manually add the packages that I've copied over?
Show me the ERR of my ways. :)