LoginSignup
3
3

More than 5 years have passed since last update.

CentOS6のzshのsrpmからCentOS5のrpm作成手順

Last updated at Posted at 2014-09-07

preztoがzsh4.3以降対応。zsh_vcsも入っていなかった。
centos5のzshが4.2と古かったので4.3に上げたかった。

参考

CentOS 5でCentOS 6用のzshのSRPMをビルドする方法 - ククログ(2012-11-21)

手順

ビルド環境の準備
vagrant init chef/centos-5.10-i386
vagrant up
vagrant ssh
必要なパッケージをインストール
sudo yum install -y epel-release
sudo yum install -y rpmdevtools
sudo yum install -y libcap-devel texinfo tetex texi2html ncurses-devel
rpm作成準備
rpmdev-setuptree
# ~/rpmbuild/ が作られる。
wget http://vault.centos.org/6.5/os/Source/SPackages/zsh-4.3.10-7.el6.src.rpm
rpm --nomd5 -i zsh-4.3.10-7.el6.src.rpm
rpmbuild -bb ~/rpmbuild/SPECS/zsh.spec
  • ~/rpmbuild/RPMS/i386/zsh-4.3.10-7.i386.rpm

が出来上がる。

なおCentOS7のsrpmでCentOS5用のはできなかった。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3