使用 portdowngrade 降級你的 ports

我一直是個還不會爬就想要飛的人,所以會一直碰釘子。我對我家的 Server也是一樣,所以它常常更新後某東西不能用,**然後我就藉機學東西**。但有些程式是現在的我還改不來的,所以這時候 portdowngrade 就很好用。

範例,回復已經更新的 libxslt:

portdowngrade -o -s :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs textproc/libxslt

以下是運行狀況:

portdowngrade 0.6 by Heiner Eichmann
Please note, that nothing is changed in the ports tree
unless it is explicitly permitted in step 6!

Seeking port textproc/libxslt ...

Found several matches:
1: textproc/libxslt
2: textproc/libxslt-reference

選擇要 downgrade 的套件:

Please choose one: 1

訊息繼續:

Downgrading port: textproc/libxslt
Logging in to :pserver:anoncvs@anoncvs.tw.freebsd.org:2401/home/ncvs

台灣機器,密碼請直接輸入 password:

CVS password:

訊息繼續:

Step 1: Checking out port from CVS repository
CVS root directory: :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs

Step 2: Reading the port history from the CVS repository
...
...
...
    <enter> : leave presentation and downdgrade if wanted
============================================================================================
number         date         portversion  comment
    1  2009/09/18 19:41:09  1.1.25       Update to 1.1.25, and use OPTIONS instead of pre-everything for crypto
    2  2009/01/06 13:01:11  1.1.24       - Bump PORTREVISION due to share library version bump in security/libgcrypt
    3  2008/09/04 20:51:09  1.1.24       Security fix libxslt heap overflow, bump the PORTREVISION.
    4  2008/05/24 05:27:36  1.1.24       Update to 1.1.24. As for the py-libxslt, get it able to find Python correct
    5  2008/04/06 16:14:26  1.1.22       Remove xmlsoft.org and use GNOME mirrors. The xmlsoft.org's tarballs are
    6  2008/02/28 21:47:05  1.1.22       Chase libgcrypt library version
    7  2007/09/07 15:57:42  1.1.22       Update to 1.1.22.
    8  2007/06/30 05:58:09  1.1.21       Update to 1.1.21.
    9  2007/01/25 18:10:46  1.1.20       Update to 1.1.20.
   10  2007/01/15 18:46:36  1.1.19       - Update to 1.1.19
   11  2006/11/05 03:55:07  1.1.17       INSTALLS_SHLIB -> USE_LDCONFIG.
   12  2006/06/07 19:27:27  1.1.17       Update to 1.1.17.
   13  2006/05/31 22:18:47  1.1.16       - Add header in these *-reference ports.
   14  2006/05/13 04:24:46  1.1.16       Remove USE_REINPLACE from categories starting with T

Total lines: 99. Command:

輸入你要的版本,按下 enter 繼續:

Enter version number to change port to (0: exit):2

然後等執行完,回到 ports 看看,你就會發現 ports 已經還原到你要的版本。接著你只要重新回去 make install 就好啦。

千萬注意,更新 ports 又執行 portupgrade,還是可以被蓋掉,所以如果你確定這個程式不要被 upgrade,記得加上 ports 更新時的設定。

上一個主題

使用 rdiff-backup 進行系統硬碟更換

下一個主題

FreeBSD chroot

本頁