[[FrontPage]]

#contents
*portinstall ports-mgmt/portdowngrade [#k49ac0e2]
http://ml37.exblog.jp/3447065/

http://www.kono.cis.iwate-u.ac.jp/~hiki/?portdowngrade
 theseus# portdowngrade -o -s:pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs databases/php5-mysql
 
 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 databases/php5-mysql ...
 
 Found several matches:
 1: databases/php5-mysql
 2: databases/php5-mysqli
 
 Please choose one: 1
 
 Downgrading port: databases/php5-mysql
 Logging in to :pserver:anoncvs@anoncvs.tw.freebsd.org:2401/home/ncvs
 CVS password:
 cvs login: warning: failed to open /root/.cvspass for reading: No such file or directory
 
 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
 
 Step 3: Analyzing the port history from the CVS repository
 
 Step 4: Load port version numbers and present results
 Keys: <space> : next page                      d : details
             p : previous page
       <enter> : leave presentation and downdgrade if wanted
 =======================================================================================================================
 number         date         portversion  comment
     1  2004/07/19 08:53:33  unknown      Add a new shared extension for PHP.
 
 
 
 Total lines: 1. Command:
 Enter version number to change port to (0: exit): 1
 
 
 Step 5: Checking out choosen date of the port from the CVS repository
 
 Step 6: Modifying the port
 Port: databases/php5-mysql
 at : 2004/07/19 08:53:33
 Type 'yes' to bring the port to the state of the date above
 or 'no' to exit without changing anything. Note, that this only changes
 the port, not the installed software! yes or no:yes
 
 The port has been set to the selected version. Install it if you wish.
 If you have portupgrade installed, you should run
 
 portsdb -Uu
 
 now, to see the changes in the ports database. In any case
 
 portupgrade -f php5-mysql
 
 will install the changed port. Note: if you run cvsup, the port
 is changed back to the choosen label!
 
 theseus# portsdb -Uu
 Updating the ports index ... portsdb: Can't chdir to '/usr/ports': No such file or directory - getcwd
 theseus# portupgrade -f php5-mysql
 Cannot locate current working directory: No such file or directory
 theseus# pwd
 pwd: .: No such file or directory
 theseus# cd /usr/ports
 theseus# portsdb -Uu
 Updating the ports index ... Generating INDEX.tmp - please wait..
 
 Updating the ports index ... Generating INDEX.tmp - please wait..Warning: Duplicate INDEX entry: py25-bsddb-2.5.4_2
 Warning: Duplicate INDEX entry: ap22-mod_rpaf-ap2-0.6
  Done.
 done
 [Updating the portsdb <format:bdb_btree> in /usr/ports ... - 22123 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. ..... done]
 theseus# portupgrade -f php5-mysql
 theseus#

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS