[EMAIL PROTECTED] wrote, On 06/18/08 00:42: >> If i have a local copy of the packages in pkg.opensolaris.org, I can >> install packages directly from a local disk, without needed to be >> connected to the internet (and this is fast). To make that I can do: >> pkg set-authority -P -O http://localhost:10000 localhost > > In this case, I'm assuming that you're running a package depot on your > local machine. Otherwise, this wouldn't work.
Yes, that's the case. >> Now I can choose in packagemanager between these two repositories. >> Let's assume I have a local copy of pkg-x.y.z-timestamp1 and this >> package is now called pkg-x.y.z-timestamp2. If I install >> pkg-x.y.z-timestamp2 from the localhost repository, it never tells me >> later on when on pkg.opensolaris.org will be a newer version of pkg. > > That's because the depot on localhost isn't talking to the depot on > pkg.opensolaris.org. Your client [pkg(1)] can look at both > repositories; however, I have no idea how the GUI works. > >> Also if I choose the pkg.opensolaris.org repository and select the >> pkg-x.y.z-timestamp1 it do not tells me that there is already a version >> of that. > > What do you mean by "already a version of that"? The packagemanager shows for each package in different colums: "Installed Version" and "Latest Version" So for my local installed packages it would be good to see them also as "Installed Version" if I choose opensolaris.org as repository (Because it's the same package name, but from a different authority). But yes, your next comment explains, why not. > >> I assume the reason for that is because the packages are called the >> same, but comming from different authorities. > > Potentially. We have some additional design issues to iron out with the > package namespace and multiple authorities. The existing code was > written with one set of assumptions, while the namespace design doc was > written differently. We need to make the two match, but that hasn't > happened yet. > >> Is that in any case possible (or will be) that I can install from >> localhost-repository, but it is seen from packagemanager as coming from >> a different (origin) authority to get newer version from this remote site ? > > Maybe, but this question is unclear. Once we have a unified namespace, > some of these issues will go away. It also sounds like you're > asking for depot replication. This is done manually today. It may be a > while before we decide to write any code to perform more complicated > replica operations. Yeah, local replication is maybe that what comes close. So I have done this with a combination of pkgrecv + pkgsend. So I get identical packages but in different authorities. It's not an issue today, but if someone wants to upgrade the local provided packages with newer packages coming from opensolaris.org, he would never see that there is an update for his installed package :-( Detlef _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
