読者です 読者をやめる 読者になる 読者になる

kopug memo

名古屋で働くとあるWebエンジニアの覚書。

yum で tracをインストール

サーバを管理していく上に問題となるのがパッケージの依存関係。
このパッケージの管理は各ディストリビューションで色々あるが、
せっかくCentOSを使っているならrpm(yum)で一元管理をしたい。

てことでtracyumで一発インストールする手順。

http://trac.edgewall.org/wiki/TracOnFedoraCoreThree
上記にやり方書いてあるんだけど、これはFedora用なので、
centosではこんな感じで。

$ sudo vi /etc/yum.repos.d/CentOS-Base.repo

下記を追加

[dag]
name=Dag RPM Repository for Redhat EL4
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

インストールはこれだけ。

$ sudo yum install trac

Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
    • > Populating transaction set with selected packages. Please wait.
      • > Downloading header for trac to pack into transaction set.
trac-0.10-1.el4.rf.noarch 100% |=========================| 41 kB 00:00
      • > Package trac.noarch 0:0.10-1.el4.rf set to be updated
    • > Running transaction check
    • > Processing Dependency: python-clearsilver >= 0.9.3 for package: trac
    • > Restarting Dependency Resolution with new changes.
    • > Populating transaction set with selected packages. Please wait.
python-clearsilver-0.10.1 100% |=========================| 2.6 kB 00:00 clearsilver-0.10.1-1.2.el 100% |=========================| 16 kB 00:00
    • > Running transaction check
Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: trac noarch 0.10-1.el4.rf dag 659 k Installing for dependencies: clearsilver i386 0.10.1-1.2.el4.rf dag 192 k python-clearsilver i386 0.10.1-1.2.el4.rf dag 181 k Transaction Summary ============================================================================= Install 3 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 1.0 M Is this ok [y/N]: y Downloading Packages: (1/3): trac-0.10-1.el4.rf 100% |=========================| 659 kB 00:04 (2/3): clearsilver-0.10.1 100% |=========================| 192 kB 00:01 (3/3): python-clearsilver 100% |=========================| 181 kB 00:02 warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 6b8d79e6 Public key for trac-0.10-1.el4.rf.noarch.rpm is not installed

centosRedhatの資源をそのまま使えるのがお得だなと。