Memo/Linux

Redhat Enterprise Linux ES3

パッケージを更新する

  1. パッケージのアップグレード ライセンス済みのredhatでup2dateを実行し、ファイルを取得する。
    例:httpd、php、PostgreSQLをアップグレード
    # cd
    # mkdir updates
    # cd updates
    # up2date --showall \
    	| egrep "^(rh-postgresql|rhdb|httpd|php|mod_ssl)" \
    	| xargs up2date --get --tmpdir=/home/example/updates
    
    # 以下のようにファイルが取得できるはず
    	httpd-2.0.46-44.ent.i386.rpm
    	httpd-devel-2.0.46-44.ent.i386.rpm
    	mod_ssl-2.0.46-44.ent.i386.rpm
    	php-4.3.2-19.ent.i386.rpm
    	php-devel-4.3.2-19.ent.i386.rpm
    	php-imap-4.3.2-19.ent.i386.rpm
    	php-ldap-4.3.2-19.ent.i386.rpm
    	php-mysql-4.3.2-19.ent.i386.rpm
    	php-odbc-4.3.2-19.ent.i386.rpm
    	php-pgsql-4.3.2-19.ent.i386.rpm
    	postgresql-odbc-7.3-3.i386.rpm
    	redhat-config-httpd-1.1.0-4.noarch.rpm
    	rhdb-utils-2.0-1.i386.rpm
    	rh-postgresql-7.3.9-2.i386.rpm
    	rh-postgresql-contrib-7.3.9-2.i386.rpm
    	rh-postgresql-devel-7.3.9-2.i386.rpm
    	rh-postgresql-docs-7.3.9-2.i386.rpm
    	rh-postgresql-jdbc-7.3.9-2.i386.rpm
    	rh-postgresql-libs-7.3.9-2.i386.rpm
    	rh-postgresql-pl-7.3.9-2.i386.rpm
    	rh-postgresql-python-7.3.9-2.i386.rpm
    	rh-postgresql-server-7.3.9-2.i386.rpm
    	rh-postgresql-tcl-7.3.9-2.i386.rpm
    	rh-postgresql-test-7.3.9-2.i386.rpm
  2. アップグレード
    # rpm -Fvh *.rpm

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2018-09-15 (土) 07:31:38