Hi Expert,

I have a special requirement for pkg, can I install a package from repo
without refreshing catalog?

My system have an old repo:
opensolaris.org http://pkg.opensolaris.com/release

While I want to setup a new repo and install a driver from this new repo
but do not want to refresh my repo catalog.
These were what I did:
(1)setup a new repo from strongheart.sfbay
#pkg set-publisher --no-refresh -O http://strongheart.sfbay:10000
opensolaris.org
(2)install a foce driver from this new repo
#pkg install --no-refresh pkg://opensolaris.org/driver/network/foce

I thought these steps will did want I want, but since these steps did
not refresh catalog, then step2 give me these error:

pkg: The following pattern(s) did not match any packages in the current 
catalog.
Try relaxing the pattern, refreshing and/or examining the catalogs:
        pkg://opensolaris.org/driver/network/fcoe

I think this was because pkg still check my old catalog and can not
found foce driver on it. Actually this package is on my new repo
http://strongheart.sfbay:10000
 
How can I do it correctly?

I know these regular steps can do it just by removing --no-refresh
argument:
(1)setup a new repo from strongheart.sfbay
#pkg set-publisher -O http://strongheart.sfbay:10000 opensolaris.org
(2)install a foce driver from this new repo
#pkg install pkg://opensolaris.org/driver/network/foce

But my requirement is I hope i can do it without refreshing catalog.


Thank you!
Zhongyuan



_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to