官术网_书友最值得收藏!

Pinning publishers

It's not rare when the system has many configured publishers and it becomes necessary to ensure that a package that was installed from one publisher is not updated from another.

Personally, I've seen some situations where an installed package from a very reliable repository was corrupted by an update from another, not-so-reliable repository. That's funny. The same package exists, and it can be installed from two different repositories, but one of these repositories is less reliable, and eventually, it can offer a bad package. This is where pinning becomes useful. I guarantee that a package installed from a source (repository) will always be updated from the same repository. Let's learn how to do this.

Getting ready

To follow this recipe, it's necessary that we have a system (physical or virtual) running Oracle Solaris 11; we log in to the system as the root user and open a terminal. Access to the Internet is optional.

How to do it…

To pin a publisher, we type the following:

root@solaris11:~# pkg set-publisher --sticky solaris

Undoing the configuration is simple:

root@solaris11:~# pkg set-publisher --non-sticky solaris

Note

Any new publisher will be pinned by default.

From now on, every package will always be updated from its original repository even if an update is available from another one.

An overview of the recipe

This is an interesting situation. Usually, an administrator needs a package offered by two different publishers, each one with a determined level of reliability. In this case, we need to choose one of these and create a "sticky channel" to it.

主站蜘蛛池模板: 遂平县| 宁化县| 高台县| 蒙阴县| 界首市| 积石山| 南平市| 克拉玛依市| 苏尼特左旗| 东山县| 丰原市| 厦门市| 玛沁县| 扬州市| 盐边县| 孟州市| 曲阜市| 鄂伦春自治旗| 双柏县| 南部县| 曲松县| 冷水江市| 白山市| 滕州市| 德钦县| 区。| 博白县| 永年县| 沭阳县| 尼勒克县| 大港区| 合山市| 长武县| 永登县| 科技| 新田县| 德惠市| 诏安县| 三原县| 梧州市| 南昌县|