- 追加された行はこの色です。
- 削除された行はこの色です。
CONTENTS
#contents
----
Lastmodified &lastmod;
----
FreeBSD 10.2-RELEASE (GENERIC) #0
*pkg downgrade [#kd6544de]
参考:http://www.programming-knowledge.com/wiki/ports_tips
pkg upgrade があるんだから、pkg downgrade で簡単にダウングレード、ロールバックが簡単にできるとおもったけど、甘かった!?
portdwngrade を使うとのこと
*portdowngrade [#g3312fbc]
**portdowngrade [#g3312fbc]
portdowngradeをインストール
portinstall ports-mgmt/portdowngrade
portsのベースディレクトリへ移動
portsのdatabasesディレクトリへ移動
cd /usr/ports/
cd /usr/ports/databases
ダウングレードしたいリビジョンを確認
portdowngrade databases/phpmyadmin
目的のリビジョンをチェックアウトして書き換える
portdowngrade databases/phpmyadmin r397367
これで、/usr/ports/databases/phpmyadmin/ 以下が書き換わる。
root@p5k:/usr/ports/databases # portdowngrade databases/phpmyadmin r397367
C phpmyadmin/files
C phpmyadmin/Makefile
C phpmyadmin/distinfo
C phpmyadmin/pkg-descr
C phpmyadmin/pkg-plist-chunk
A phpmyadmin/files/config.inc.php.sample
A phpmyadmin/files/pkg-message.in
Checked out revision 397367.
Tree conflict on 'phpmyadmin/Makefile'
> local file unversioned, incoming file add upon update
Select: (r) mark resolved, (p) postpone, (q) quit resolution, (h) help: h
(r) - accept current working copy state
(p) - resolve the conflict later [postpone]
(q) - postpone all remaining conflicts
(h) - show this help (also '?')
Words in square brackets are the corresponding --accept option arguments.
Select: (r) mark resolved, (p) postpone, (q) quit resolution, (h) help: r
Resolved conflicted state of 'phpmyadmin/Makefile'
Tree conflict on 'phpmyadmin/distinfo'
> local file unversioned, incoming file add upon update
Select: (r) mark resolved, (p) postpone, (q) quit resolution, (h) help: r
Resolved conflicted state of 'phpmyadmin/distinfo'
Tree conflict on 'phpmyadmin/files'
> local dir unversioned, incoming dir add upon update
Select: (r) mark resolved, (p) postpone, (q) quit resolution, (h) help: r
Resolved conflicted state of 'phpmyadmin/files'
Tree conflict on 'phpmyadmin/pkg-descr'
> local file unversioned, incoming file add upon update
Select: (r) mark resolved, (p) postpone, (q) quit resolution, (h) help: r
Resolved conflicted state of 'phpmyadmin/pkg-descr'
Tree conflict on 'phpmyadmin/pkg-plist-chunk'
> local file unversioned, incoming file add upon update
Select: (r) mark resolved, (p) postpone, (q) quit resolution, (h) help: r
Resolved conflicted state of 'phpmyadmin/pkg-plist-chunk'
You should be done-- now cd into phpmyadmin and you can run
# make deinstall install clean
%%これで、/usr/ports/databases/phpmyadmin/ 以下が書き換わる。%%
書き換わっていないので、一つ上の階層/usr/ports/でチェックアウト。、/usr/ports/phpmyadmin が出来る。
もとからあった、/usr/ports/databases/phpmyadmin を phpadmin_bk などとして待避。
チェックアウトして出来たphpadminディレクトリを、/usr/ports/databases/phpmyadmin とした。Makefileは・・・
/usr/ports/databases/phpmyadmin/Makefile
# Created by: nbm
# $FreeBSD: head/databases/phpmyadmin/Makefile 397684 2015-09-24 09:20:56Z matthew $
PORTNAME= phpMyAdmin
DISTVERSION= 4.5.0.1
から、
# Created by: nbm
# $FreeBSD: head/databases/phpmyadmin/Makefile 397367 2015-09-20 13:01:28Z matthew $
PORTNAME= phpMyAdmin
DISTVERSION= 4.4.15
へ
なおこの段階では、
# portversion -vl'<'
[Reading data from pkg(8) ... - 407 packages found - done]
firebird25-client-2.5.3_3 < needs updating (port has 2.5.4)
phpMyAdmin-4.4.15 < needs updating (port has 4.5.0.1)
unixODBC-2.3.2_2 < needs updating (port has 2.3.4)
の様な出力となる
portsdb -Uu
してみる。
root@p5k:/usr/ports # portsdb -Uu
Updating the ports index ... Generating INDEX20150925-55703-1xrqi9u - please wait..--- describe.accessibility ---
--- describe.arabic ---
--- describe.archivers ---
--- describe.astro ---
--- describe.audio ---
--- describe.benchmarks ---
--- describe.biology ---
--- describe.cad ---
--- describe.chinese ---
--- describe.comms ---
--- describe.converters ---
--- describe.databases ---
--- describe.deskutils ---
--- describe.devel ---
--- describe.dns ---
--- describe.editors ---
--- describe.emulators ---
--- describe.finance ---
--- describe.french ---
--- describe.ftp ---
--- describe.games ---
--- describe.german ---
--- describe.graphics ---
--- describe.devel ---
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/soap.so' - /usr/local/lib/php/20100525/soap.so: Undefined symbol "ps_globals" in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/xsl.so' - /usr/local/lib/php/20100525/xsl.so: Undefined symbol "dom_node_class_entry" in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/wddx.so' - /usr/local/lib/php/20100525/wddx.so: Undefined symbol "ps_globals" in Unknown on line 0
PHP Warning: Module 'pdo_dblib' already loaded in Unknown on line 0
--- describe.hebrew ---
--- describe.hungarian ---
--- describe.irc ---
--- describe.japanese ---
--- describe.java ---
--- describe.korean ---
--- describe.lang ---
--- describe.mail ---
--- describe.math ---
--- describe.misc ---
--- describe.multimedia ---
--- describe.net ---
--- describe.net-im ---
--- describe.net-mgmt ---
--- describe.net-p2p ---
--- describe.news ---
--- describe.palm ---
--- describe.polish ---
--- describe.ports-mgmt ---
--- describe.portuguese ---
--- describe.print ---
--- describe.russian ---
--- describe.science ---
--- describe.security ---
--- describe.shells ---
--- describe.sysutils ---
--- describe.textproc ---
--- describe.ukrainian ---
--- describe.vietnamese ---
--- describe.www ---
--- describe.x11 ---
--- describe.x11-clocks ---
--- describe.x11-drivers ---
--- describe.x11-fm ---
--- describe.x11-fonts ---
--- describe.x11-servers ---
--- describe.x11-themes ---
--- describe.x11-toolkits ---
--- describe.x11-wm ---
Done.
done
[Updating the portsdb <format:bdb_btree> in /usr/ports ... - 25257 port entries found .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000.........17000.........18000.........19000.........20000.........21000.........22000.........23000.........24000.........25000.. ..... done]
root@p5k:/usr/ports # portversion -vl'<'
[Reading data from pkg(8) ... - 406 packages found - done]
firebird25-client-2.5.3_3 < needs updating (port has 2.5.4)
unixODBC-2.3.2_2 < needs updating (port has 2.3.4)
あれ?PHPがエラってる!?
ここでportsnap fetch update すると、
# portversion -vl'<'
[Reading data from pkg(8) ... - 407 packages found - done]
[Updating the portsdb <format:bdb_btree> in /usr/ports ... - 25260 port entries found .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000.........17000.........18000.........19000.........20000.........21000.........22000.........23000.........24000.........25000.. ..... done]
firebird25-client-2.5.3_3 < needs updating (port has 2.5.4)
p5-Archive-Zip-1.51 < needs updating (port has 1.53)
phpMyAdmin-4.4.15 < needs updating (port has 4.5.0.1)
unixODBC-2.3.2_2 < needs updating (port has 2.3.4)
あれ?変わってない???
へと表示が戻るが、/usr/ports/databases/phpmyadmin/Makefile はダウングレードのまま・・・
待避してあった phpadmin_bkを元へ戻して、ダウングレード版をphpmayadmin_444等としておく。
もう一回
portsdb -Uu
した
----
Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);