rpm の利点として、パッケージ間の依存関係を見てくれるとか、バージョンアップが容易とか、いろいろと見聞きするが、オレ的にはなんといっても綺麗サッパリとアンインストールできること、これが一番嬉しいね。 だってそうだろ? rpm コマンドがどうやって依存関係を見ているか、といえば、パッケージの作成者が「オマエは hogehoge に依存してるんだぞコラ」と指定しているに過ぎないのだから。例えば、A というパッケージが B というパッケージ(というより B に含まれている何らかのファイル)に依存しているとしよう。A のパッケージ作成時に B に対する依存関係を指定するのを忘れたらハイそれまでよ。A は B の有無に関わらずインストールできるだろう。だが B がインストールされていなければ、もちろん正常に動きはしない。 つまるとこ、rpm による依存関係の管理なんて、人為的なミスをいくらでも含ん
ソースファイルを手に入れて,一からRPMを作っていくのはかなり大変な作業だ。そこでまずは,.src.rpmで配布されているパッケージを利用してRPMの構造を知ることから始めよう。ここでは,Red Hat Linux 7.2を前提としてApache 1.3.22を使用した例を解説をしていく。 # wget ftp://updates.redhat.com/7.2/en/os/SRPMS/apache-1.3.22-2.src.rpm #rpm -i apache-1.3.22-2.src.rpm 上記のようにファイルをゲットしてrpmで指定(-i)をすると,「/usr/src/redhat/」ディレクトリ下に該当ファイルがインストールされる。このディレクトリ下には次のようなサブディレクトリがあり,それぞれの目的別に分類されるのだ。
1、インストールしたいソースをダウンロードする wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.gz 2、変換ソフトcheckinstallをインストールする yum --enablerepo=rpmforge install checkinstall * rpmforgeが見つからないエラー発生した場合: (1)wget http://dag.wieers.com/rpm/packages/rpmforge-release/xxxxx.rpm (2)sudo vi /etc/yum.repos.d/rpmforge.repo enabled = 1 ↓ enabled = 0 3、DLしたソースをコンパイルする tar xvzf ruby-1.9.1-p0.tar.gz cd ruby-1.9.1-p0 ./conf
rpmをtarボールから作成する場合は、specファイルを作成する必要があります。 最近のtarボールには、specファイルが含まれる物もありますが、ディストリビューションに依存する所もあるため、そのままではなかなか使えません。 そういうときは、specファイルを修正します。 1.rpm作成の環境整備 rpmの作成は、ディストリビューションにもよりますが、/usr/src/rpmや/var/src/rpmなどの場所で作成できます。が、ここは rootでの作業になるため、自分のhomeに環境を作成するのがいいでしょう。 で、まずはrpm作成用のディレクトリを作成します。 rpmの作成には、以下のディレクトリ構成が必要です。(ユーザー=builduserの場合) /home/builduser |------rpm |---BUILD |---RPMS | |-
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く